Date: Tue, 11 Apr 2006 19:45:36 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95016 for review Message-ID: <200604111945.k3BJja8a009475@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95016 Change 95016 by imp@imp_hammer on 2006/04/11 19:45:23 Kinky magic numbers, while kinky are somewhat unuseful. Affected files ... .. //depot/projects/arm/src/sys/boot/arm/kb920x/boot0/main.c#8 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/kb920x/boot0/main.c#8 (text+ko) ==== @@ -31,7 +31,7 @@ main(void) { #if 0 - char *addr = (char *)0x20000000 + (1 << 20); /* Load to base + 1MB */ + char *addr = (char *)SDRAM_BASE + (1 << 20); /* Load to base + 1MB */ fn_t *fn = (fn_t *)addr; // AT91C_BASE_PIOC->PIO_SODR = AT91C_PIO_PC10; @@ -40,7 +40,7 @@ // AT91C_BASE_PIOC->PIO_CODR = AT91C_PIO_PC10; fn(); #else - int *addr = (int *)0x20000000; /* Load to base + 1MB */ + int *addr = (int *)SDRAM_BASE; /* Load to base + 1MB */ int i; while (1) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604111945.k3BJja8a009475>