1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:27:45 +00:00

Kernel: Add enum InterruptsState and helper functions

This commit adds the concept of an InterruptsState to the kernel. This
will be used to make the Spinlock code architecture independent. A new
Processor.cpp file is added such that we don't have to duplicate the
code.
This commit is contained in:
Timon Kruiper 2022-08-23 21:25:36 +02:00 committed by Andreas Kling
parent c1b0d254fd
commit 6432f3eee8
3 changed files with 42 additions and 0 deletions

View file

@ -329,6 +329,8 @@ set(KERNEL_SOURCES
if ("${SERENITY_ARCH}" STREQUAL "i686" OR "${SERENITY_ARCH}" STREQUAL "x86_64")
set(KERNEL_SOURCES
${KERNEL_SOURCES}
Arch/Processor.cpp
Arch/x86/common/ScopedCritical.cpp
Arch/x86/common/SmapDisabler.cpp
Arch/x86/common/Spinlock.cpp
@ -443,6 +445,8 @@ else()
${AK_SOURCES}
${RPI_SOURCES}
Arch/Processor.cpp
Arch/aarch64/boot.S
Arch/aarch64/BootPPMParser.cpp
Arch/aarch64/CrashHandler.cpp