Kernel: Add StdLib.cpp and UserOrKernelBuffer.cpp to aarch64 build

Also remove UserOrKernelBuffer::{read, write} and __stack_chk_fail from
Dummy.cpp and init.cpp respectively.
This commit is contained in:
Timon Kruiper 2022-10-12 22:56:06 +02:00 committed by Linus Groh
parent 290d3449e0
commit 50e74de279
Notes: sideshowbarker 2024-07-17 05:59:24 +09:00
3 changed files with 2 additions and 23 deletions

View File

@ -111,23 +111,6 @@ ErrorOr<size_t> Inode::write_bytes(off_t, size_t, UserOrKernelBuffer const&, Ope
}
// UserOrKernelBuffer.cpp
namespace Kernel {
ErrorOr<void> UserOrKernelBuffer::write(void const*, size_t, size_t)
{
VERIFY_NOT_REACHED();
return {};
}
ErrorOr<void> UserOrKernelBuffer::read(void*, size_t, size_t) const
{
VERIFY_NOT_REACHED();
return {};
}
}
// x86 init
multiboot_module_entry_t multiboot_copy_boot_modules_array[16];

View File

@ -65,12 +65,6 @@ extern ctor_func_t end_ctors[];
// FIXME: Share this with the Intel Prekernel.
extern size_t __stack_chk_guard;
size_t __stack_chk_guard;
extern "C" [[noreturn]] void __stack_chk_fail();
void __stack_chk_fail()
{
Kernel::Processor::halt();
}
READONLY_AFTER_INIT bool g_in_early_boot;

View File

@ -485,7 +485,9 @@ else()
KString.cpp
KSyms.cpp
MiniStdLib.cpp
StdLib.cpp
UBSanitizer.cpp
UserOrKernelBuffer.cpp
Devices/DeviceManagement.cpp