mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
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:
parent
290d3449e0
commit
50e74de279
3 changed files with 2 additions and 23 deletions
|
@ -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
|
// x86 init
|
||||||
|
|
||||||
multiboot_module_entry_t multiboot_copy_boot_modules_array[16];
|
multiboot_module_entry_t multiboot_copy_boot_modules_array[16];
|
||||||
|
|
|
@ -65,12 +65,6 @@ extern ctor_func_t end_ctors[];
|
||||||
// FIXME: Share this with the Intel Prekernel.
|
// FIXME: Share this with the Intel Prekernel.
|
||||||
extern size_t __stack_chk_guard;
|
extern size_t __stack_chk_guard;
|
||||||
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;
|
READONLY_AFTER_INIT bool g_in_early_boot;
|
||||||
|
|
||||||
|
|
|
@ -485,7 +485,9 @@ else()
|
||||||
KString.cpp
|
KString.cpp
|
||||||
KSyms.cpp
|
KSyms.cpp
|
||||||
MiniStdLib.cpp
|
MiniStdLib.cpp
|
||||||
|
StdLib.cpp
|
||||||
UBSanitizer.cpp
|
UBSanitizer.cpp
|
||||||
|
UserOrKernelBuffer.cpp
|
||||||
|
|
||||||
Devices/DeviceManagement.cpp
|
Devices/DeviceManagement.cpp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue