summaryrefslogtreecommitdiffstats
path: root/sys/boot/arm/at91
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-10-21 22:43:07 +0000
committerimp <imp@FreeBSD.org>2006-10-21 22:43:07 +0000
commitceb6dbfdd1fac5027a02d411f7349682eb6dd3e6 (patch)
tree5f52540030bad95835768b2c755a6ef576d4e8d2 /sys/boot/arm/at91
parent7d7a43f1b422ca5ab7b037d9939908ccfaa2d3c5 (diff)
downloadFreeBSD-src-ceb6dbfdd1fac5027a02d411f7349682eb6dd3e6.zip
FreeBSD-src-ceb6dbfdd1fac5027a02d411f7349682eb6dd3e6.tar.gz
MFp4: Move to smaller code. This was somehow forgotten before.
Diffstat (limited to 'sys/boot/arm/at91')
-rw-r--r--sys/boot/arm/at91/boot0spi/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/boot/arm/at91/boot0spi/main.c b/sys/boot/arm/at91/boot0spi/main.c
index 5404773..c8cbf0f 100644
--- a/sys/boot/arm/at91/boot0spi/main.c
+++ b/sys/boot/arm/at91/boot0spi/main.c
@@ -40,12 +40,12 @@ main(void)
char *addr3 = (char *)SDRAM_BASE + (3 << 20); /* Load to base + 2MB */
SPI_InitFlash();
- printf("Waiting for data\r\n");
+ printf("Waiting for data\n");
while ((len = xmodem_rx(addr)) == -1)
continue;
- printf("\r\nDownloaded %u bytes.\r\n", len);
- p_memcpy(addr3, addr, (len + FLASH_PAGE_SIZE - 1) / FLASH_PAGE_SIZE * FLASH_PAGE_SIZE);
- printf("Writing %u bytes to flash at %u\r\n", len, OFFSET);
+ printf("\nDownloaded %u bytes.\n", len);
+ memcpy(addr3, addr, (len + FLASH_PAGE_SIZE - 1) / FLASH_PAGE_SIZE * FLASH_PAGE_SIZE);
+ printf("Writing %u bytes to flash at %u\n", len, OFFSET);
for (i = 0; i < len; i+= FLASH_PAGE_SIZE) {
for (j = 0; j < 10; j++) {
off = i + OFFSET;
@@ -55,7 +55,7 @@ main(void)
break;
}
if (j >= 10)
- printf("Bad Readback at %u\r\n", i);
+ printf("Bad Readback at %u\n", i);
}
return (1);
}
OpenPOWER on IntegriCloud