kernel_main.h 311 B

12345678910111213141516
  1. #pragma once
  2. #include <types/types.h>
  3. static inline void __break_point(void)
  4. {
  5. asm volatile("xchgw %bx, %bx");
  6. }
  7. #define MAKE_BREAK_POINT() __break_point()
  8. #define KERNEL_STACK_SIZE (16 * 1024)
  9. #define KERNEL_STACK_SEGMENT (0x10)
  10. #define KERNEL_START_ADDR (0x00100000)
  11. void NORETURN kernel_main(void);