console: Create a console abstraction #10
Labels
arch: none
Not architecture specific
target: kernel
Kernel related features
type: refacto
Refactor an existing piece of code
Issue
The way we log currently is we hardcoded the logger to output through the UART so we can read it in color from qemu's console.
This, although working for now, has the downside of not being versatile. What if we want to print some information to the uart and some onto the user's screen? What if we want to print onto both at the same time? What if we want to print it into a file?
Solution
We could create a console structure, containing the necessary information to interact with a console.
This includes:
We would initialize the logger with the apporpriate struct, and just have it forward the actual hardware interaction to underlying "driver" (uart, terminal, file?, ...).
The text was updated successfully, but these errors were encountered: