kernel_main.h 318 B

1234567891011121314151617
  1. #pragma once
  2. #include <types/types.h>
  3. #define KERNEL_STACK_SIZE (16 * 1024)
  4. #define KERNEL_STACK_SEGMENT (0x10)
  5. #define KERNEL_START_ADDR (0x00100000)
  6. void NORETURN kernel_main(void);
  7. #ifdef __cplusplus
  8. // in kernel_main.c
  9. extern "C" struct tss32_t tss;
  10. #else
  11. // in kernel_main.c
  12. extern struct tss32_t tss;
  13. #endif