PERFORCE change 96071 for review
Warner Losh
imp at FreeBSD.org
Tue Apr 25 17:10:58 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=96071
Change 96071 by imp at imp_hammer on 2006/04/25 17:10:54
I'm wearing out the damn reset button, put reset at the end of
this test routine until I get things working...
Affected files ...
.. //depot/projects/arm/src/sys/boot/arm/at91/boot0spi/main.c#6 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/Makefile#10 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/lib.h#8 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/reset.c#1 add
Differences ...
==== //depot/projects/arm/src/sys/boot/arm/at91/boot0spi/main.c#6 (text) ====
@@ -62,7 +62,7 @@
if (p_memcmp(addr3, addr2, len) != 0) {
printf("Readback failed:\r\n");
for (i = 0; i < 75; i++)
- printf("%x ", addr[i]);
+ printf("%x ", addr3[i]);
printf("\r\n----------\r\n");
for (i = 0; i < 75; i++)
printf("%x ", addr2[i]);
@@ -73,6 +73,7 @@
// while (GetSeconds() < this_sec)
// continue;
// }
+ reset();
#endif
return (1);
}
==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/Makefile#10 (text+ko) ====
@@ -5,7 +5,7 @@
LIB= at91
INTERNALLIB=
SRCS=at91rm9200_lowlevel.c eeprom.c emac.c env_vars.c getc.c loader_prompt.c \
- p_string.c putchar.c printf.c spi_flash.c xmodem.c
+ p_string.c putchar.c printf.c reset.c spi_flash.c xmodem.c
NO_MAN=
.if ${MK_TAG_LIST} != "no"
==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/lib.h#8 (text) ====
@@ -40,4 +40,7 @@
/* XMODEM protocol */
int xmodem_rx(char *dst);
+/* Reboot! Reset! */
+void reset(void);
+
#endif
More information about the p4-projects
mailing list