From 6cebabe53b1faaf95a0f7c750f03c7017fdc312d Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Tue, 17 May 2005 23:36:26 +0000 Subject: [PATCH] Add 68000 support --- second/head.S | 2 ++ second/printf.c | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/second/head.S b/second/head.S index 4e1edee..ff4d083 100644 --- a/second/head.S +++ b/second/head.S @@ -4,6 +4,8 @@ * */ + .chip 68000 + .macro SysError .short 0xA9C9 .endm diff --git a/second/printf.c b/second/printf.c index ba3bab8..aad7238 100644 --- a/second/printf.c +++ b/second/printf.c @@ -219,8 +219,17 @@ ksprintn(u_long ul, int base, int *lenp, int prec) for(i=0;i> 16]; +#else *++p = "0123456789abcdef"[ul % base]; ul /= base; +#endif } while ((--prec > 0 || ul != 0) && p < buf + sizeof(buf) - 1); if (lenp) *lenp = p - buf;