diff --git a/Kernel/Source/IO/uart.swift b/Kernel/Source/IO/uart.swift index 2bd7dfd..3d9107f 100644 --- a/Kernel/Source/IO/uart.swift +++ b/Kernel/Source/IO/uart.swift @@ -1,7 +1,8 @@ let kUARTBaseAddress: UInt = 0x09000000 // TODO: Make it dynamic by parsion DTB @_cdecl("putchar") -@discardableResult func _serialPutchar(_ char: Int32) -> Int32 { +@discardableResult +public func _serialPutchar(_ char: Int32) -> Int32 { let uartFR: UInt = kUARTBaseAddress + 0x18// TXFF -- TRansmit FIFO Full for PL011 is 5 bit of FR reg (0x18) while (mmio_read32(uartFR) & (1 << 5)) != 0 { @@ -16,4 +17,4 @@ public func kprint(_ message: StaticString) { for i in 0..