mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
Kernel: Abstract platform-specific serial port access from kprintf
kprintf should not really care about the hardware-specific details of each UART or serial port out there, so instead of using x86 specific instructions, let's ensure that we will compile only the relevant code for debug output for a targeted-specific platform.
This commit is contained in:
parent
d5ee03ef5b
commit
a02c9c9569
6 changed files with 109 additions and 28 deletions
|
@ -332,6 +332,7 @@ if ("${SERENITY_ARCH}" STREQUAL "i686" OR "${SERENITY_ARCH}" STREQUAL "x86_64")
|
|||
Arch/Processor.cpp
|
||||
|
||||
Arch/x86/common/CMOS.cpp
|
||||
Arch/x86/common/DebugOutput.cpp
|
||||
Arch/x86/common/Delay.cpp
|
||||
Arch/x86/common/I8042Reboot.cpp
|
||||
Arch/x86/common/RTC.cpp
|
||||
|
@ -437,6 +438,7 @@ if (NOT "${SERENITY_ARCH}" STREQUAL "aarch64")
|
|||
)
|
||||
else()
|
||||
set(RPI_SOURCES
|
||||
Arch/aarch64/RPi/DebugOutput.cpp
|
||||
Arch/aarch64/RPi/Framebuffer.cpp
|
||||
Arch/aarch64/RPi/GPIO.cpp
|
||||
Arch/aarch64/RPi/InterruptController.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue