diff options
author | Richard Braun <rbraun@sceen.net> | 2014-09-03 21:22:26 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-09-03 21:22:26 +0200 |
commit | eed59b8076e7668b5e0f874bd3ed28230f470bb1 (patch) | |
tree | d5b7ddf4c01d3c8b9bbcd4fe957c0b40522ac15b /kern/percpu.c | |
parent | 7fa931d4e56e8926058c0a2a10d731614dfd6f65 (diff) |
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
Diffstat (limited to 'kern/percpu.c')
-rw-r--r-- | kern/percpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |