mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
Kernel/x86: Move RTC and CMOS code to x86 arch-specific subdirectory
The RTC and CMOS are currently only supported for x86 platforms and use specific x86 instructions to produce only certain x86 plaform operations and results, therefore, we move them to the Arch/x86 specific directory.
This commit is contained in:
parent
e740d959df
commit
d5ee03ef5b
Notes:
sideshowbarker
2024-07-17 06:48:04 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/d5ee03ef5b Pull-request: https://github.com/SerenityOS/serenity/pull/15173 Reviewed-by: https://github.com/linusg
12 changed files with 8 additions and 12 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Arch/x86/IO.h>
|
||||
#include <Kernel/CMOS.h>
|
||||
#include <Kernel/Arch/x86/common/CMOS.h>
|
||||
|
||||
namespace Kernel::CMOS {
|
||||
|
|
@ -7,8 +7,8 @@
|
|||
#include <AK/Format.h>
|
||||
#include <AK/Time.h>
|
||||
#include <Kernel/Arch/Delay.h>
|
||||
#include <Kernel/CMOS.h>
|
||||
#include <Kernel/RTC.h>
|
||||
#include <Kernel/Arch/x86/common/CMOS.h>
|
||||
#include <Kernel/Arch/x86/common/RTC.h>
|
||||
|
||||
namespace Kernel::RTC {
|
||||
|
|
@ -40,7 +40,6 @@ set(KERNEL_SOURCES
|
|||
Bus/VirtIO/Device.cpp
|
||||
Bus/VirtIO/Queue.cpp
|
||||
Bus/VirtIO/RNG.cpp
|
||||
CMOS.cpp
|
||||
CommandLine.cpp
|
||||
Coredump.cpp
|
||||
Credentials.cpp
|
||||
|
@ -226,7 +225,6 @@ set(KERNEL_SOURCES
|
|||
ProcessSpecificExposed.cpp
|
||||
ProcessGroup.cpp
|
||||
ProcessProcFSTraits.cpp
|
||||
RTC.cpp
|
||||
Random.cpp
|
||||
Scheduler.cpp
|
||||
StdLib.cpp
|
||||
|
@ -333,8 +331,10 @@ if ("${SERENITY_ARCH}" STREQUAL "i686" OR "${SERENITY_ARCH}" STREQUAL "x86_64")
|
|||
${KERNEL_SOURCES}
|
||||
Arch/Processor.cpp
|
||||
|
||||
Arch/x86/common/CMOS.cpp
|
||||
Arch/x86/common/Delay.cpp
|
||||
Arch/x86/common/I8042Reboot.cpp
|
||||
Arch/x86/common/RTC.cpp
|
||||
Arch/x86/common/ScopedCritical.cpp
|
||||
Arch/x86/common/SmapDisabler.cpp
|
||||
Arch/x86/common/Shutdown.cpp
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <Kernel/Locking/Spinlock.h>
|
||||
#include <Kernel/Memory/ScopedAddressSpaceSwitcher.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/RTC.h>
|
||||
#include <LibC/elf.h>
|
||||
#include <LibELF/Core.h>
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <Kernel/Arch/PageFault.h>
|
||||
#include <Kernel/Arch/RegisterState.h>
|
||||
#include <Kernel/BootInfo.h>
|
||||
#include <Kernel/CMOS.h>
|
||||
#include <Kernel/FileSystem/Inode.h>
|
||||
#include <Kernel/Heap/kmalloc.h>
|
||||
#include <Kernel/KSyms.h>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <Kernel/Panic.h>
|
||||
#include <Kernel/PerformanceManager.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/RTC.h>
|
||||
#include <Kernel/Scheduler.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/Time/TimeManagement.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <Kernel/Arch/InterruptDisabler.h>
|
||||
#include <Kernel/Arch/x86/IO.h>
|
||||
#include <Kernel/Arch/x86/NonMaskableInterruptDisabler.h>
|
||||
#include <Kernel/CMOS.h>
|
||||
#include <Kernel/Arch/x86/common/CMOS.h>
|
||||
#include <Kernel/Time/RTC.h>
|
||||
#include <Kernel/Time/TimeManagement.h>
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Arch/x86/common/RTC.h>
|
||||
#include <Kernel/Library/NonnullLockRefPtr.h>
|
||||
#include <Kernel/RTC.h>
|
||||
#include <Kernel/Time/HardwareTimer.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <AK/StdLibExtras.h>
|
||||
#include <AK/Time.h>
|
||||
#include <Kernel/Arch/InterruptDisabler.h>
|
||||
#include <Kernel/Arch/x86/common/RTC.h>
|
||||
#include <Kernel/CommandLine.h>
|
||||
#include <Kernel/Firmware/ACPI/Parser.h>
|
||||
#include <Kernel/Interrupts/APIC.h>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include <Kernel/Bus/PCI/Initializer.h>
|
||||
#include <Kernel/Bus/USB/USBManagement.h>
|
||||
#include <Kernel/Bus/VirtIO/Device.h>
|
||||
#include <Kernel/CMOS.h>
|
||||
#include <Kernel/CommandLine.h>
|
||||
#include <Kernel/Devices/Audio/Management.h>
|
||||
#include <Kernel/Devices/DeviceControlDevice.h>
|
||||
|
@ -49,7 +48,6 @@
|
|||
#include <Kernel/Prekernel/Prekernel.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/ProcessExposed.h>
|
||||
#include <Kernel/RTC.h>
|
||||
#include <Kernel/Random.h>
|
||||
#include <Kernel/Scheduler.h>
|
||||
#include <Kernel/Sections.h>
|
||||
|
|
Loading…
Reference in a new issue