minix/kernel/arch/i386/include
Tomas Hruby 13a0d5fa5e 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 14:09:46 +00:00
..
arch_clock.h Convert kernel over to bsdmake 2010-04-01 22:22:33 +00:00
arch_proto.h SMP - Cpu local variables 2010-09-15 14:09:46 +00:00
arch_watchdog.h Convert kernel over to bsdmake 2010-04-01 22:22:33 +00:00
archconst.h Multiboot support (contributed by Feiran "Fam" Zheng); 2010-07-23 14:24:34 +00:00
hw_intr.h APIC mode uses IO APICs 2010-09-07 07:18:11 +00:00