mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
Kernel+AK: Move UBSanitizer to AK, and to AK namespace
In preparation for copying UBSanitizer to userspace, move the header to AK :^)
This commit is contained in:
parent
a223ef3c4f
commit
505f84daae
Notes:
sideshowbarker
2024-07-18 17:19:11 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/505f84daae6 Pull-request: https://github.com/SerenityOS/serenity/pull/7434 Reviewed-by: https://github.com/awesomekling
3 changed files with 7 additions and 7 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <AK/Types.h>
|
||||
|
||||
namespace Kernel::UBSanitizer {
|
||||
namespace AK::UBSanitizer {
|
||||
|
||||
extern bool g_ubsan_is_deadly;
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
#include <AK/JsonObjectSerializer.h>
|
||||
#include <AK/JsonValue.h>
|
||||
#include <AK/ScopeGuard.h>
|
||||
#include <AK/UBSanitizer.h>
|
||||
#include <Kernel/Arch/x86/CPU.h>
|
||||
#include <Kernel/Arch/x86/ProcessorInfo.h>
|
||||
#include <Kernel/CommandLine.h>
|
||||
|
@ -38,7 +39,6 @@
|
|||
#include <Kernel/Scheduler.h>
|
||||
#include <Kernel/StdLib.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
#include <Kernel/UBSanitizer.h>
|
||||
#include <Kernel/VM/AnonymousVMObject.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <LibC/errno_numbers.h>
|
||||
|
@ -978,9 +978,9 @@ bool ProcFS::initialize()
|
|||
g_dump_kmalloc_stacks = kmalloc_stack_helper->resource();
|
||||
});
|
||||
ubsan_deadly_helper = new Lockable<bool>();
|
||||
ubsan_deadly_helper->resource() = UBSanitizer::g_ubsan_is_deadly;
|
||||
ubsan_deadly_helper->resource() = AK::UBSanitizer::g_ubsan_is_deadly;
|
||||
ProcFS::add_sys_bool("ubsan_is_deadly", *ubsan_deadly_helper, [] {
|
||||
UBSanitizer::g_ubsan_is_deadly = ubsan_deadly_helper->resource();
|
||||
AK::UBSanitizer::g_ubsan_is_deadly = ubsan_deadly_helper->resource();
|
||||
});
|
||||
caps_lock_to_ctrl_helper = new Lockable<bool>();
|
||||
ProcFS::add_sys_bool("caps_lock_to_ctrl", *caps_lock_to_ctrl_helper, [] {
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
*/
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <AK/UBSanitizer.h>
|
||||
#include <Kernel/Arch/x86/CPU.h>
|
||||
#include <Kernel/KSyms.h>
|
||||
#include <Kernel/UBSanitizer.h>
|
||||
|
||||
using namespace Kernel;
|
||||
using namespace Kernel::UBSanitizer;
|
||||
using namespace AK::UBSanitizer;
|
||||
|
||||
bool Kernel::UBSanitizer::g_ubsan_is_deadly { true };
|
||||
bool AK::UBSanitizer::g_ubsan_is_deadly { true };
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue