sys.h 329 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <kernel/mem.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. void asm_enable_paging(page_directory_entry* pd_addr);
  7. // the limit should be set on the higher 16bit
  8. void asm_load_gdt(uint32_t limit, uint32_t addr);
  9. void asm_load_tr(uint16_t index);
  10. extern void* __real_kernel_end;
  11. #ifdef __cplusplus
  12. }
  13. #endif