Page MenuHomeFreeBSD

D19077.1793774051.diff
No OneTemporary

Authored By
Unknown
Size
574 B
Referenced Files
None
Subscribers
None

D19077.1793774051.diff

Index: sys/dev/uart/uart_dev_pl011.c
===================================================================
--- sys/dev/uart/uart_dev_pl011.c
+++ sys/dev/uart/uart_dev_pl011.c
@@ -611,3 +611,18 @@
__uart_setreg(bas, UART_IMSC, psc->imsc);
uart_unlock(sc->sc_hwmtx);
}
+
+#ifdef EARLY_PRINTF
+static void
+uart_pl011_early_putc(int c)
+{
+ u_int *base = (void *)(uintptr_t)SOCDEV_VA;
+ volatile u_int *tx = base + UART_DR;
+ volatile u_int *fr = base + UART_FR;
+
+ while ((*fr & FR_TXFF) != 0)
+ ;
+ *tx = c;
+}
+early_putc_t *early_putc = uart_pl011_early_putc;
+#endif

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 4, 6:34 AM (9 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41408706
Default Alt Text
D19077.1793774051.diff (574 B)

Event Timeline