feat: added UART support with a basic kprint in kernel
wip: DTB
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user