sys.h 407 B

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