From 0dc6bcb18025adca914559eafb7680bd49b4285a Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 4 Jan 2021 11:33:27 -0800 Subject: [PATCH] fusee: fix overcorrection for boot reason address --- fusee/fusee-secondary/src/nxboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusee/fusee-secondary/src/nxboot.c b/fusee/fusee-secondary/src/nxboot.c index 16acacdb8..fe753d873 100644 --- a/fusee/fusee-secondary/src/nxboot.c +++ b/fusee/fusee-secondary/src/nxboot.c @@ -629,7 +629,7 @@ static void nxboot_set_bootreason(void *bootreason_base) { boot_reason.boot_reason_state = 0x04; /* BootReason_RtcAlarm2 */ /* Set in memory. */ - memcpy((void *)((uintptr_t)bootreason_base + 0x10), &boot_reason, sizeof(boot_reason)); + memcpy(bootreason_base, &boot_reason, sizeof(boot_reason)); /* Clean up. */ free(bct);