Date: Thu, 20 Apr 2006 20:09:44 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95711 for review Message-ID: <200604202009.k3KK9iSh052682@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95711 Change 95711 by imp@imp_hammer on 2006/04/20 20:08:56 revert back to directly calling the loaded program. This gets us back down below 1k (992 bytes). Affected files ... .. //depot/projects/arm/src/sys/boot/arm/at91/boot0/Makefile#8 edit .. //depot/projects/arm/src/sys/boot/arm/at91/boot0/main.c#9 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/at91/boot0/Makefile#8 (text) ==== @@ -2,7 +2,7 @@ P=boot0 FILES=${P} -SRCS=arm_init.s main.c doit.c +SRCS=arm_init.s main.c NO_MAN= LDFLAGS=-e 0 -T linker.cfg OBJS+= ${SRCS:N*.h:R:S/$/.o/g} ==== //depot/projects/arm/src/sys/boot/arm/at91/boot0/main.c#9 (text) ==== @@ -28,15 +28,16 @@ #include "lib.h" #include "at91rm9200_lowlevel.h" -extern void doit(void *); +typedef void fn_t(void); int main(void) { char *addr = (char *)SDRAM_BASE + (1 << 20); /* Load to base + 1MB */ + fn_t *fn = (fn_t *)(SDRAM_BASE + (1 << 20)); /* Load to base + 1MB */ while (xmodem_rx(addr) == -1) continue; - doit(addr); - return (1); + fn(); + return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604202009.k3KK9iSh052682>