diff options
author | jake <jake@FreeBSD.org> | 2001-01-06 17:40:04 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-01-06 17:40:04 +0000 |
commit | 56e99b7d35d909eaef84dafc091867116a08e54f (patch) | |
tree | 20d39cad65f882504f37dd6b22616271e30bec7b /sys/dev | |
parent | c269c9fb36040d129558f61fa26bf3745100a4ff (diff) | |
download | FreeBSD-src-56e99b7d35d909eaef84dafc091867116a08e54f.zip FreeBSD-src-56e99b7d35d909eaef84dafc091867116a08e54f.tar.gz |
Use %fs to access per-cpu variables in uni-processor kernels the same
as multi-processor kernels. The old way made it difficult for kernel
modules to be portable between uni-processor and multi-processor
kernels. It is no longer necessary to jump through hoops.
- always load %fs with the private segment on entry to the kernel
- change the type of the self referntial pointer from struct privatespace
to struct globaldata
- make the globaldata symbol have value 0 in all cases, so the symbols
in globals.s are always offsets, not aliases for fields in globaldata
- define the globaldata space used for uniprocessor kernels in C, rather
than assembler
- change the assmebly language accessors to use %fs, add a macro
PCPU_ADDR(member, reg), which loads the register reg with the address
of the per-cpu variable member
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions