From fc426a06b229f08327e26dbb9956d4b74d4285b1 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 1 Dec 2018 13:56:13 -0800 Subject: [PATCH] exo: fix vaddr/paddr confusion in rcm reboot code --- exosphere/src/configitem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exosphere/src/configitem.c b/exosphere/src/configitem.c index 9aa1e6fa8..a0309ec2b 100644 --- a/exosphere/src/configitem.c +++ b/exosphere/src/configitem.c @@ -38,8 +38,8 @@ uint32_t configitem_set(bool privileged, ConfigItem item, uint64_t value) { case CONFIGITEM_NEEDS_REBOOT_TO_RCM: /* Force a reboot to RCM, if requested. */ if (value != 0) { - MAKE_REG32(0x7000E450) = 0x2; - MAKE_REG32(0x7000E400) = 0x10; + MAKE_REG32(MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_RTC_PMC) + 0x450ull) = 0x2; + MAKE_REG32(MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_RTC_PMC) + 0x400ull) = 0x10; while (1) { } } break;