This website requires JavaScript.
Explore
Help
Sign in
sanchayanmaity
/
minix
Watch
1
Star
0
Fork
You've already forked minix
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
aa6ee31737
minix
/
kernel
/
cpulocals.c
4 lines
50 B
C
Raw
Normal View
History
Unescape
Escape
Libraries updates and cleanup * Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the meaning of the comment. * Cleaned up _REENTRANT-related defintions. * Disabled -D_REENTRANT for libfetch * Removing some unneeded __NBSD_LIBC defines and tests Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
2012-11-15 12:06:41 +01:00
#
include
"kernel/kernel.h"
SMP - Cpu local variables - most global variables carry information which is specific to the local CPU and each CPU must have its own copy - cpu local variable must be declared in cpulocal.h between DECLARE_CPULOCAL_START and DECLARE_CPULOCAL_END markers using DECLARE_CPULOCAL macro - to access the cpu local data the provided macros must be used get_cpu_var(cpu, name) get_cpu_var_ptr(cpu, name) get_cpulocal_var(name) get_cpulocal_var_ptr(name) - using this macros makes future changes in the implementation possible - switching to ELF will make the declaration of cpu local data much simpler, e.g. CPULOCAL int blah; anywhere in the kernel source code
2010-09-15 16:09:46 +02:00
DEFINE_CPULOCAL_VARS
;
Reference in a new issue
Copy permalink