mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-15 01:26:34 +00:00
fusee: fix overcorrection for boot reason address
This commit is contained in:
parent
45bae80f18
commit
0dc6bcb180
1 changed files with 1 additions and 1 deletions
|
@ -629,7 +629,7 @@ static void nxboot_set_bootreason(void *bootreason_base) {
|
||||||
boot_reason.boot_reason_state = 0x04; /* BootReason_RtcAlarm2 */
|
boot_reason.boot_reason_state = 0x04; /* BootReason_RtcAlarm2 */
|
||||||
|
|
||||||
/* Set in memory. */
|
/* 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. */
|
/* Clean up. */
|
||||||
free(bct);
|
free(bct);
|
||||||
|
|
Loading…
Reference in a new issue