X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch_x86.h;h=aad541e90e089edcb7f962e94a0c1ae58f7f5e5c;hb=05dd4b94f48c1717c18e0dcee88830394a5f171c;hp=64cc026f9cd46343cb977dc7b076bf9a7d70a317;hpb=dac93f5961f305a3bd08cd82f649a7a4dcf6e3eb;p=urcu.git diff --git a/urcu/arch_x86.h b/urcu/arch_x86.h index 64cc026..aad541e 100644 --- a/urcu/arch_x86.h +++ b/urcu/arch_x86.h @@ -5,13 +5,13 @@ * 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. -* + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -47,20 +47,6 @@ extern "C" { #define cpu_relax() asm volatile("rep; nop" : : : "memory"); -/* - * Serialize core instruction execution. Also acts as a compiler barrier. - * On PIC ebx cannot be clobbered - */ -#ifdef __PIC__ -#define sync_core() \ - asm volatile("push %%ebx; cpuid; pop %%ebx" \ - : : : "memory", "eax", "ecx", "edx"); -#endif -#ifndef __PIC__ -#define sync_core() \ - asm volatile("cpuid" : : : "memory", "eax", "ebx", "ecx", "edx"); -#endif - #define rdtscll(val) \ do { \ unsigned int __a, __d; \