Fix FROM_PAGES macro calculation

This commit is contained in:
Alex 2023-03-09 06:44:35 +02:00
parent 8c87037069
commit 1fc03516eb
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -44,7 +44,7 @@ extern uintptr_t _kernel_text_end, _kernel_data_end, _kernel_rodata_end;
// To pages
#define TO_PAGES(d) ((d) / PAGE_SIZE + 1)
// From pages
#define FROM_PAGES(d) ((d)*PAGE_SIZE - 1)
#define FROM_PAGES(d) ((d)*PAGE_SIZE)
#if defined(a64) || defined(aa64)
#define NORMAL_VMA_OFFSET 0xFFFF800000000000