X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch_x86.h;h=56250565e8001a08155f568148e1201f63324782;hb=2e6c64324e20fc31ccb6af3717e8d6b040869ed6;hp=c4674de0d35adfbe3eaa19560ba3a4750583fecb;hpb=e4d1eb09301904b56cdf22e1d6042df4492d57cb;p=urcu.git diff --git a/urcu/arch_x86.h b/urcu/arch_x86.h index c4674de..5625056 100644 --- a/urcu/arch_x86.h +++ b/urcu/arch_x86.h @@ -5,7 +5,7 @@ * arch_x86.h: trivial definitions for the x86 architecture. * * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. - * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Mathieu Desnoyers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -47,16 +47,6 @@ extern "C" { #define cpu_relax() asm volatile("rep; nop" : : : "memory"); -/* - * Serialize core instruction execution. Also acts as a compiler barrier. - * Cannot use cpuid on PIC because it clobbers the ebx register; - * error: PIC register 'ebx' clobbered in 'asm' - */ -#ifndef __PIC__ -#define sync_core() \ - asm volatile("cpuid" : : : "memory", "eax", "ebx", "ecx", "edx"); -#endif - #define rdtscll(val) \ do { \ unsigned int __a, __d; \