Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177054577
D19077.1793774051.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
574 B
Referenced Files
None
Subscribers
None
D19077.1793774051.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D19077: uart_dev_pl011: add EARLY_PRINTF support
Attached
Detach File
Event Timeline