2 * MIPS-specific debug support for pre-boot environment
4 * NOTE: putc() is board specific, if your board have a 16550 compatible uart,
5 * please select SYS_SUPPORTS_ZBOOT_UART16550 for your machine. othewise, you
6 * need to implement your own putc().
8 #include <linux/compiler.h>
9 #include <linux/types.h>
11 void __weak putc(char c)
15 void puts(const char *s)
18 while ((c = *s++) != '\0') {
25 void puthex(unsigned long long val)
28 unsigned char buf[10];
30 for (i = 7; i >= 0; i--) {
31 buf[i] = "0123456789ABCDEF"[val & 0x0F];