mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 00:47:22 +07:00
3b2663ca84
None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6320/
37 lines
648 B
C
37 lines
648 B
C
/*
|
|
* MIPS-specific debug support for pre-boot environment
|
|
*
|
|
* NOTE: putc() is board specific, if your board have a 16550 compatible uart,
|
|
* please select SYS_SUPPORTS_ZBOOT_UART16550 for your machine. othewise, you
|
|
* need to implement your own putc().
|
|
*/
|
|
#include <linux/compiler.h>
|
|
#include <linux/types.h>
|
|
|
|
void __weak putc(char c)
|
|
{
|
|
}
|
|
|
|
void puts(const char *s)
|
|
{
|
|
char c;
|
|
while ((c = *s++) != '\0') {
|
|
putc(c);
|
|
if (c == '\n')
|
|
putc('\r');
|
|
}
|
|
}
|
|
|
|
void puthex(unsigned long long val)
|
|
{
|
|
|
|
unsigned char buf[10];
|
|
int i;
|
|
for (i = 7; i >= 0; i--) {
|
|
buf[i] = "0123456789ABCDEF"[val & 0x0F];
|
|
val >>= 4;
|
|
}
|
|
buf[8] = '\0';
|
|
puts(buf);
|
|
}
|