Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2006 00:27:45 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 110699 for review
Message-ID:  <200611300027.kAU0RjI6051381@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110699

Change 110699 by imp@imp_lighthouse on 2006/11/30 00:27:30

	Reboot!  For GREAT Justice!
	
	Zig would be so proud.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/boot0spi/main.c#24 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/boot0spi/main.c#24 (text) ====

@@ -36,7 +36,7 @@
 int
 main(void)
 {
-	int len, i, j, off;
+	int len, i, j, off, sec;
 	char *addr = (char *)SDRAM_BASE + (1 << 20); /* download at + 1MB */
 	char *addr2 = (char *)SDRAM_BASE + (2 << 20); /* readback to + 2MB */
 	char *addr3 = (char *)SDRAM_BASE + (3 << 20); /* extra copy at + 3MB */
@@ -59,6 +59,10 @@
 		if (j >= 10)
 			printf("Bad Readback at %u\n", i);
 	}
+	sec = GetSeconds() + 2;
+	while (sec <= GetSeconds())
+	    continue;
 	printf("Done\n");
+	reset();
 	return (1);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611300027.kAU0RjI6051381>