add bpmp-fw cmd interface

This commit is contained in:
souldbminersmwc committed 2026-08-28 13:43:50 -04:00
1 parent 39c612779b
commit 6b88b43cb9
7 files changed
+94 -17

No files matched your search

+8
View File
@@ -33,13 +33,21 @@
}
}
bool g_uartLoggingEnabled = true;
void UartPutc(char c) {
if (!g_uartLoggingEnabled) {
return;
}
while (!(MMIO32(UartBBase + UartLsr) & UartLsrThre))
;
MMIO32(UartBBase + UartThr) = static_cast<u32>(static_cast<u8>(c));
}
void UartFlush() {
if (!g_uartLoggingEnabled) {
return;
}
while (!(MMIO32(UartBBase + UartLsr) & UartLsrTmty))
;
}