From d5d8c74be474364d884a842e2466a2328044f253 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 10 Apr 2022 17:30:04 +0100 Subject: [PATCH] attempting to sort out what looks like a stack overflow --- coldboot/coldboot.c | 28 ++++++++++++++++++---------- coldboot/powerpc.lds.S | 2 +- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 0f42a82..bd030c4 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -35,15 +35,6 @@ struct uart_regs { uint32_t ev_enable; }; -void memcpy(void *dest, void *src, size_t n) { - int i; - //cast src and dest to char* - char *src_char = (char *)src; - char *dest_char = (char *)dest; - for (i=0; i