From eed59b8076e7668b5e0f874bd3ed28230f470bb1 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 3 Sep 2014 21:22:26 +0200 Subject: x86/cpu: improve percpu support - declare CPU descriptors as percpu variables - make the percpu segment register point to the percpu area instead of the CPU descriptor - remove the ugly accessors for the local CPU descriptor, pmap and TCB and use percpu variables for them instead - implement the cpu_local accessors as described in the percpu documentation --- kern/percpu.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kern/percpu.c') diff --git a/kern/percpu.c b/kern/percpu.c index 99398e0a..aab9d064 100644 --- a/kern/percpu.c +++ b/kern/percpu.c @@ -59,6 +59,7 @@ percpu_setup(void) percpu_areas[0] = (void *)va; memcpy(percpu_area(0), &_percpu, percpu_size); + cpu_fixup_bsp_percpu_area(); } int __init -- cgit v1.2.3