minix/kernel/arch/i386
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
..
include SMP - Cpu local variables 2010-09-15 14:09:46 +00:00
acpi.c APIC mode uses IO APICs 2010-09-07 07:18:11 +00:00
acpi.h APIC mode uses IO APICs 2010-09-07 07:18:11 +00:00
apic.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
apic.h APIC mode uses IO APICs 2010-09-07 07:18:11 +00:00
apic_asm.h APIC mode uses IO APICs 2010-09-07 07:18:11 +00:00
apic_asm.S APIC mode uses IO APICs 2010-09-07 07:18:11 +00:00
arch_clock.c Removed some unused variables and functions. 2010-06-02 19:41:38 +00:00
arch_do_vmctl.c SMP - Cpu local variables 2010-09-15 14:09:46 +00:00
arch_system.c SMP - Cpu local variables 2010-09-15 14:09:46 +00:00
arch_watchdog.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
breakpoints.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
debugreg.h Fix types in debug register functions 2010-04-28 08:35:05 +00:00
debugreg.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
do_int86.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
do_iopenable.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
do_readbios.c Convert kernel over to bsdmake 2010-04-01 22:22:33 +00:00
do_sdevio.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
exception.c SMP - Cpu local variables 2010-09-15 14:09:46 +00:00
glo.h Local APIC 2009-11-16 21:41:44 +00:00
i8259.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
io_inb.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
io_inl.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
io_intr.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
io_inw.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
io_outb.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
io_outl.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
io_outw.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
kernel.lds Buildsystem changes for GCC 2010-05-19 13:24:15 +00:00
klib.S SMP - Cpu local variables 2010-09-15 14:09:46 +00:00
klib16.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
Makefile.inc ACPI in kernel 2010-09-02 15:43:51 +00:00
memory.c SMP - Cpu local variables 2010-09-15 14:09:46 +00:00
mpx.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
multiboot.h Multiboot support (contributed by Feiran "Fam" Zheng); 2010-07-23 14:24:34 +00:00
multiboot.S Macros for symbols used in both ASM and C 2010-08-17 16:44:07 +00:00
oxpcie.c kernel: oxpcie serial card support. 2010-05-19 10:00:02 +00:00
oxpcie.h kernel: oxpcie serial card support. 2010-05-19 10:00:02 +00:00
pre_init.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
protect.c arch proto.h renamed to arch_proto.h 2010-09-15 14:09:36 +00:00
sconst.h Lazy FPU 2010-06-07 07:43:17 +00:00
serial.h kernel: oxpcie serial card support. 2010-05-19 10:00:02 +00:00