mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +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
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Kernel/Arch/x86/IO.h>
|
#include <Kernel/Arch/x86/IO.h>
|
||||||
#include <Kernel/CMOS.h>
|
#include <Kernel/Arch/x86/common/CMOS.h>
|
||||||
|
|
||||||
namespace Kernel::CMOS {
|
namespace Kernel::CMOS {
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
#include <AK/Format.h>
|
#include <AK/Format.h>
|
||||||
#include <AK/Time.h>
|
#include <AK/Time.h>
|
||||||
#include <Kernel/Arch/Delay.h>
|
#include <Kernel/Arch/Delay.h>
|
||||||
#include <Kernel/CMOS.h>
|
#include <Kernel/Arch/x86/common/CMOS.h>
|
||||||
#include <Kernel/RTC.h>
|
#include <Kernel/Arch/x86/common/RTC.h>
|
||||||
|
|
||||||
namespace Kernel::RTC {
|
namespace Kernel::RTC {
|
||||||
|
|
|
@ -40,7 +40,6 @@ set(KERNEL_SOURCES
|
||||||
Bus/VirtIO/Device.cpp
|
Bus/VirtIO/Device.cpp
|
||||||
Bus/VirtIO/Queue.cpp
|
Bus/VirtIO/Queue.cpp
|
||||||
Bus/VirtIO/RNG.cpp
|
Bus/VirtIO/RNG.cpp
|
||||||
CMOS.cpp
|
|
||||||
CommandLine.cpp
|
CommandLine.cpp
|
||||||
Coredump.cpp
|
Coredump.cpp
|
||||||
Credentials.cpp
|
Credentials.cpp
|
||||||
|
@ -226,7 +225,6 @@ set(KERNEL_SOURCES
|
||||||
ProcessSpecificExposed.cpp
|
ProcessSpecificExposed.cpp
|
||||||
ProcessGroup.cpp
|
ProcessGroup.cpp
|
||||||
ProcessProcFSTraits.cpp
|
ProcessProcFSTraits.cpp
|
||||||
RTC.cpp
|
|
||||||
Random.cpp
|
Random.cpp
|
||||||
Scheduler.cpp
|
Scheduler.cpp
|
||||||
StdLib.cpp
|
StdLib.cpp
|
||||||
|
@ -333,8 +331,10 @@ if ("${SERENITY_ARCH}" STREQUAL "i686" OR "${SERENITY_ARCH}" STREQUAL "x86_64")
|
||||||
${KERNEL_SOURCES}
|
${KERNEL_SOURCES}
|
||||||
Arch/Processor.cpp
|
Arch/Processor.cpp
|
||||||
|
|
||||||
|
Arch/x86/common/CMOS.cpp
|
||||||
Arch/x86/common/Delay.cpp
|
Arch/x86/common/Delay.cpp
|
||||||
Arch/x86/common/I8042Reboot.cpp
|
Arch/x86/common/I8042Reboot.cpp
|
||||||
|
Arch/x86/common/RTC.cpp
|
||||||
Arch/x86/common/ScopedCritical.cpp
|
Arch/x86/common/ScopedCritical.cpp
|
||||||
Arch/x86/common/SmapDisabler.cpp
|
Arch/x86/common/SmapDisabler.cpp
|
||||||
Arch/x86/common/Shutdown.cpp
|
Arch/x86/common/Shutdown.cpp
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <Kernel/Locking/Spinlock.h>
|
#include <Kernel/Locking/Spinlock.h>
|
||||||
#include <Kernel/Memory/ScopedAddressSpaceSwitcher.h>
|
#include <Kernel/Memory/ScopedAddressSpaceSwitcher.h>
|
||||||
#include <Kernel/Process.h>
|
#include <Kernel/Process.h>
|
||||||
#include <Kernel/RTC.h>
|
|
||||||
#include <LibC/elf.h>
|
#include <LibC/elf.h>
|
||||||
#include <LibELF/Core.h>
|
#include <LibELF/Core.h>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#include <Kernel/Arch/PageFault.h>
|
#include <Kernel/Arch/PageFault.h>
|
||||||
#include <Kernel/Arch/RegisterState.h>
|
#include <Kernel/Arch/RegisterState.h>
|
||||||
#include <Kernel/BootInfo.h>
|
#include <Kernel/BootInfo.h>
|
||||||
#include <Kernel/CMOS.h>
|
|
||||||
#include <Kernel/FileSystem/Inode.h>
|
#include <Kernel/FileSystem/Inode.h>
|
||||||
#include <Kernel/Heap/kmalloc.h>
|
#include <Kernel/Heap/kmalloc.h>
|
||||||
#include <Kernel/KSyms.h>
|
#include <Kernel/KSyms.h>
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#include <Kernel/Panic.h>
|
#include <Kernel/Panic.h>
|
||||||
#include <Kernel/PerformanceManager.h>
|
#include <Kernel/PerformanceManager.h>
|
||||||
#include <Kernel/Process.h>
|
#include <Kernel/Process.h>
|
||||||
#include <Kernel/RTC.h>
|
|
||||||
#include <Kernel/Scheduler.h>
|
#include <Kernel/Scheduler.h>
|
||||||
#include <Kernel/Sections.h>
|
#include <Kernel/Sections.h>
|
||||||
#include <Kernel/Time/TimeManagement.h>
|
#include <Kernel/Time/TimeManagement.h>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include <Kernel/Arch/InterruptDisabler.h>
|
#include <Kernel/Arch/InterruptDisabler.h>
|
||||||
#include <Kernel/Arch/x86/IO.h>
|
#include <Kernel/Arch/x86/IO.h>
|
||||||
#include <Kernel/Arch/x86/NonMaskableInterruptDisabler.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/RTC.h>
|
||||||
#include <Kernel/Time/TimeManagement.h>
|
#include <Kernel/Time/TimeManagement.h>
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <Kernel/Arch/x86/common/RTC.h>
|
||||||
#include <Kernel/Library/NonnullLockRefPtr.h>
|
#include <Kernel/Library/NonnullLockRefPtr.h>
|
||||||
#include <Kernel/RTC.h>
|
|
||||||
#include <Kernel/Time/HardwareTimer.h>
|
#include <Kernel/Time/HardwareTimer.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <AK/StdLibExtras.h>
|
#include <AK/StdLibExtras.h>
|
||||||
#include <AK/Time.h>
|
#include <AK/Time.h>
|
||||||
#include <Kernel/Arch/InterruptDisabler.h>
|
#include <Kernel/Arch/InterruptDisabler.h>
|
||||||
|
#include <Kernel/Arch/x86/common/RTC.h>
|
||||||
#include <Kernel/CommandLine.h>
|
#include <Kernel/CommandLine.h>
|
||||||
#include <Kernel/Firmware/ACPI/Parser.h>
|
#include <Kernel/Firmware/ACPI/Parser.h>
|
||||||
#include <Kernel/Interrupts/APIC.h>
|
#include <Kernel/Interrupts/APIC.h>
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
#include <Kernel/Bus/PCI/Initializer.h>
|
#include <Kernel/Bus/PCI/Initializer.h>
|
||||||
#include <Kernel/Bus/USB/USBManagement.h>
|
#include <Kernel/Bus/USB/USBManagement.h>
|
||||||
#include <Kernel/Bus/VirtIO/Device.h>
|
#include <Kernel/Bus/VirtIO/Device.h>
|
||||||
#include <Kernel/CMOS.h>
|
|
||||||
#include <Kernel/CommandLine.h>
|
#include <Kernel/CommandLine.h>
|
||||||
#include <Kernel/Devices/Audio/Management.h>
|
#include <Kernel/Devices/Audio/Management.h>
|
||||||
#include <Kernel/Devices/DeviceControlDevice.h>
|
#include <Kernel/Devices/DeviceControlDevice.h>
|
||||||
|
@ -49,7 +48,6 @@
|
||||||
#include <Kernel/Prekernel/Prekernel.h>
|
#include <Kernel/Prekernel/Prekernel.h>
|
||||||
#include <Kernel/Process.h>
|
#include <Kernel/Process.h>
|
||||||
#include <Kernel/ProcessExposed.h>
|
#include <Kernel/ProcessExposed.h>
|
||||||
#include <Kernel/RTC.h>
|
|
||||||
#include <Kernel/Random.h>
|
#include <Kernel/Random.h>
|
||||||
#include <Kernel/Scheduler.h>
|
#include <Kernel/Scheduler.h>
|
||||||
#include <Kernel/Sections.h>
|
#include <Kernel/Sections.h>
|
||||||
|
|
Loading…
Reference in a new issue