From: Luke Kenneth Casson Leighton Date: Sat, 30 Apr 2022 13:24:52 +0000 (+0100) Subject: update length of program being copied and update X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffaec309894f29a96c34ee72aba68ab1677c0758;p=ls2.git update length of program being copied and update start address to 0x1000000 --- 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