Files
ladybird/Kernel/Arch/aarch64/Dummy.cpp
Liav A. 2bba9411ca Kernel: Use the AK SetOnce container class in various cases
We have many places in the kernel code that we have boolean flags that
are only set once, and never reset again but are checked multiple times
before and after the time they're being set, which matches the purpose
of the SetOnce class.
2024-04-26 23:46:23 -06:00

46 lines
819 B
C++

/*
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Singleton.h>
#include <AK/Types.h>
#include <AK/SetOnce.h>
#include <Kernel/Arch/Delay.h>
#include <Kernel/Bus/PCI/Initializer.h>
#include <Kernel/Sections.h>
#include <Kernel/Tasks/Process.h>
#include <Kernel/kstdio.h>
// Delay.cpp
namespace Kernel {
void microseconds_delay(u32)
{
TODO_AARCH64();
}
}
// Initializer.cpp
namespace Kernel::PCI {
SetOnce g_pci_access_io_probe_failed;
SetOnce g_pci_access_is_disabled_from_commandline;
void initialize()
{
dbgln("PCI: FIXME: Enable PCI for aarch64 platforms");
g_pci_access_io_probe_failed.set();
}
}
// kprintf.cpp
void set_serial_debug_enabled(bool)
{
dbgln("FIXME: Add support for changing state of serial debugging");
}