From ffaec309894f29a96c34ee72aba68ab1677c0758 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 30 Apr 2022 14:24:52 +0100 Subject: [PATCH] update length of program being copied and update start address to 0x1000000 --- coldboot/coldboot.c | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index ee7b74a..6c7b8cc 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -69,6 +69,25 @@ void memcpy(void *dest, void *src, size_t n) { } } +#if 0 +void memcpy4(void *dest, void *src, size_t n) { + int i; + //cast src and dest to char* + uint32_t *src_char = (uint32_t *)src; + uint32_t *dest_char = (uint32_t *)dest; + for (i=0; i