From ba942c27af1ae920b58b5ad1d8162bfa64ee6e2f Mon Sep 17 00:00:00 2001 From: bushing Date: Tue, 5 May 2009 14:59:41 -0700 Subject: [PATCH] code consolidation betweeen mini and loader: utils --- utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils.c b/utils.c index fec10bb..7274fd5 100644 --- a/utils.c +++ b/utils.c @@ -24,8 +24,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include "gecko.h" #include "vsprintf.h" #include "start.h" +#include "gpio.h" #include "hollywood.h" +#ifndef LOADER static char ascii(char s) { if(s < 0x20) return '.'; if(s > 0x7E) return '.'; @@ -49,6 +51,7 @@ void hexdump(void *d, int len) { gecko_printf("\n"); } } +#endif void udelay(u32 d) { @@ -76,8 +79,10 @@ void panic(u8 v) { while(1) { debug_output(v); + set32(HW_GPIO1BOUT, GP_SLOTLED); udelay(500000); debug_output(0); + clear32(HW_GPIO1BOUT, GP_SLOTLED); udelay(500000); } }