Kernel: Make the kernel compile & link for x86_64

It's now possible to build the whole kernel with an x86_64 toolchain.
There's no bootstrap code so it doesn't work yet (obviously.)
This commit is contained in:
Andreas Kling 2021-03-04 17:50:05 +01:00
commit adb2e6be5f
Notes: sideshowbarker 2024-07-18 21:42:51 +09:00
15 changed files with 316 additions and 48 deletions

View file

@ -37,7 +37,7 @@ VMObject::VMObject(const VMObject& other)
VMObject::VMObject(size_t size)
{
m_physical_pages.resize(ceil_div(size, PAGE_SIZE));
m_physical_pages.resize(ceil_div(size, static_cast<size_t>(PAGE_SIZE)));
MM.register_vmobject(*this);
}