diff --git a/kernel/include/utils/Addresses.h b/kernel/include/utils/Addresses.h index e006d7a0..23752357 100644 --- a/kernel/include/utils/Addresses.h +++ b/kernel/include/utils/Addresses.h @@ -1,12 +1,13 @@ #pragma once +#include #include #ifndef PAGE_SIZE #define PAGE_SIZE 4096 #endif -inline uintptr_t get_top_of_stack(uintptr_t bottom, uintptr_t stack_pages) +inline uintptr_t get_top_of_stack(uintptr_t bottom, size_t stack_pages) { return bottom + (stack_pages * PAGE_SIZE) - sizeof(uintptr_t); }