|
@@ -70,12 +70,18 @@ static __always_inline void con_puts(const char *str)
|
|
|
|
|
|
#endif
|
|
|
|
|
|
-static __always_inline void con_flush(void)
|
|
|
+static __always_inline void con_flush_unconditional(void)
|
|
|
{
|
|
|
- while (CON_FLOW_CTL && !(CON_STATUS & TTY_STATUS_TX_EMPTY))
|
|
|
+ while (!(CON_STATUS & TTY_STATUS_TX_EMPTY))
|
|
|
relax();
|
|
|
}
|
|
|
|
|
|
+static __always_inline void con_flush(void)
|
|
|
+{
|
|
|
+ if (CON_FLOW_CTL)
|
|
|
+ con_flush_unconditional();
|
|
|
+}
|
|
|
+
|
|
|
void con_print_hex(unsigned int); /* For pre-SDRAM capable code */
|
|
|
void con_hexdump(const void *data, size_t len); /* For debugging */
|
|
|
|