kernel_main.h 277 B

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