31#define CPU_STACK_CANARY 0x1234567890ABCDEFULL
void cpu_stacks_overflow_check(cpu_t *cpu)
Checks for CPU stack overflows.
uint64_t cpu_init(cpu_t *cpu, cpuid_t id)
Initializes a CPU structure as part of the boot process.
uint16_t cpuid_t
Type used to identify a CPU.
uint8_t lapic_id_t
Local APIC ID type.
#define CONFIG_INTERRUPT_STACK_PAGES
Interrupt stack configuration.
#define PAGE_SIZE
Memory page size.
interrupt_ctx_t interrupt
uint8_t interruptStackBuffer[CONFIG_INTERRUPT_STACK_PAGES *PAGE_SIZE] ALIGNED(PAGE_SIZE)
stack_pointer_t exceptionStack
uint8_t doubleFaultStackBuffer[CONFIG_INTERRUPT_STACK_PAGES *PAGE_SIZE] ALIGNED(PAGE_SIZE)
uint8_t exceptionStackBuffer[CONFIG_INTERRUPT_STACK_PAGES *PAGE_SIZE] ALIGNED(PAGE_SIZE)
statistics_cpu_ctx_t stat
stack_pointer_t interruptStack
stack_pointer_t doubleFaultStack
Per-CPU Interrupt Context.
CPU random number generator context.
Per-CPU scheduling context.
Structure to define a stack in memory.
Per-CPU statistics context.
Per-CPU system time context.
Task State Segment structure.