mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03: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
Notes:
sideshowbarker
2024-07-17 05:59:24 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/50e74de279 Pull-request: https://github.com/SerenityOS/serenity/pull/15561
@ -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];
|
||||
|
@ -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;
|
||||
|
||||
|
@ -485,7 +485,9 @@ else()
|
||||
KString.cpp
|
||||
KSyms.cpp
|
||||
MiniStdLib.cpp
|
||||
StdLib.cpp
|
||||
UBSanitizer.cpp
|
||||
UserOrKernelBuffer.cpp
|
||||
|
||||
Devices/DeviceManagement.cpp
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user