Changed SMP code

This commit is contained in:
Alex
2022-10-20 05:04:15 +03:00
parent 7f47b2a3a4
commit fa92676d9f
7 changed files with 39 additions and 61 deletions

View File

@ -35,6 +35,7 @@ extern uint64_t _kernel_text_end, _kernel_data_end, _kernel_rodata_end;
#define TO_GPB(d) (d / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024 / 1024)
#define PAGE_SIZE 0x1000
#define STACK_SIZE 0x10000
// to pages
#define TO_PAGES(d) (d / PAGE_SIZE + 1)