sys.h 296 B

123456789101112131415161718
  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. #ifdef __cplusplus
  11. }
  12. #endif