2 * linux/arch/unicore32/kernel/debug.S
4 * Code specific to PKUnity SoC and UniCore ISA
6 * Copyright (C) 2001-2010 GUAN Xue-tao
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * 32-bit debugging code
14 #include <linux/linkage.h>
15 #include <asm/assembler.h>
20 * Some debugging routines (useful if you've got MM problems and
21 * printk isn't working). For DEBUGGING ONLY!!! Do not leave
22 * references to these in a production kernel!
24 #include "debug-macro.S"
27 * Useful debugging routines
41 printhex: adr r2, hexbuf
49 add r1, r1, #'0' - 'a' + 10
50 2: add r1, r1, #'a' - 10