cregit-Linux how code gets into the kernel

Release 4.11 arch/mips/boot/compressed/dbg.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) { }

Contributors

PersonTokensPropCommitsCommitProp
Wu Zhangjin8100.00%2100.00%
Total8100.00%2100.00%


void puts(const char *s) { char c; while ((c = *s++) != '\0') { putc(c); if (c == '\n') putc('\r'); } }

Contributors

PersonTokensPropCommitsCommitProp
Wu Zhangjin43100.00%1100.00%
Total43100.00%1100.00%


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); }

Contributors

PersonTokensPropCommitsCommitProp
Wu Zhangjin63100.00%1100.00%
Total63100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Wu Zhangjin121100.00%2100.00%
Total121100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.