mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-10-30 15:48:52 +01:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
36
arch/mips/boot/compressed/dbg.c
Normal file
36
arch/mips/boot/compressed/dbg.c
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue