1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +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:
Liav A 2022-09-02 13:15:27 +03:00 committed by Linus Groh
parent d5ee03ef5b
commit a02c9c9569
6 changed files with 109 additions and 28 deletions

View file

@ -0,0 +1,13 @@
/*
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace Kernel {
void bochs_debug_output(char ch);
}