feat: added UART support with a basic kprint in kernel

wip: DTB
This commit is contained in:
karina
2026-04-20 16:20:31 +04:00
parent ef9aa56d11
commit 635052c8dc
8 changed files with 158 additions and 13 deletions
+3
View File
@@ -1,7 +1,9 @@
@_cdecl("kmain")
public func kernelMain(_ bootInfo: UnsafeMutablePointer<Bootinfo>) {
let fb = bootInfo.pointee.framebuffer
let pixels = fb.base!
let width = Int(fb.width)
let height = Int(fb.height)
let total = width * height
@@ -17,4 +19,5 @@ public func kernelMain(_ bootInfo: UnsafeMutablePointer<Bootinfo>) {
pixels[i] = color
i &+= 1
}
kprint("Meow prrr meow nyaaa")
}