mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Fix FROM_PAGES macro calculation
This commit is contained in:
parent
8c87037069
commit
1fc03516eb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user