fusee: fix overcorrection for boot reason address

This commit is contained in:
Michael Scire authored and SciresM committed 2021-01-05 11:05:33 -08:00
1 parent 97157577ab
commit 07202f7c88
1 file changed
+1 -1
+1 -1
View File
@@ -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);