From: Paul E. McKenney Date: Fri, 10 Apr 2009 16:41:19 +0000 (-0400) Subject: Split out architecture-dependent definitions into api.h and arch.h. X-Git-Tag: v0.1~259 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=2d6debff95ad695255d2ea9d590d1e418590b238;hp=2d6debff95ad695255d2ea9d590d1e418590b238;p=userspace-rcu.git Split out architecture-dependent definitions into api.h and arch.h. Break out architecture-specific definitions into api.h and arch.h. Modify Makefile to add pthreads-x86 and pthreads-ppc targets to adapt to either architecture. Create api_x86.h, api_ppc.h, arch_x86.h, and arch_ppc.h files. The api/arch distinction is historical in nature. In a perfect world, these would be merged. In reality, the __thread storage class does not adapt nicely to accessing one thread's variables from another thread, though sufficiently insane gcc hackery could probably make this work. In the event, arch.h manually constructs an array of pointers to the __thread variables that need cross-thread access, while api.h punts and uses an array for the per-thread variables themselves, paying a significant performance penalty for so doing. Signed-off-by: Paul E. McKenney Signed-off-by: Mathieu Desnoyers ---