mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-23 02:42:09 +00:00
exosphere: improve nested switch format
This commit is contained in:
parent
a52e601f2e
commit
295574740d
1 changed files with 21 additions and 18 deletions
|
@ -36,7 +36,8 @@ uint32_t configitem_set(bool privileged, ConfigItem item, uint64_t value) {
|
||||||
g_battery_profile = (value != 0);
|
g_battery_profile = (value != 0);
|
||||||
break;
|
break;
|
||||||
case CONFIGITEM_NEEDS_REBOOT:
|
case CONFIGITEM_NEEDS_REBOOT:
|
||||||
/* Force a reboot to RCM, if requested. */
|
/* Force a reboot, if requested. */
|
||||||
|
{
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case REBOOT_KIND_NO_REBOOT:
|
case REBOOT_KIND_NO_REBOOT:
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -55,6 +56,8 @@ uint32_t configitem_set(bool privileged, ConfigItem item, uint64_t value) {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
MAKE_REG32(MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_RTC_PMC) + 0x400ull) = 0x10;
|
MAKE_REG32(MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_RTC_PMC) + 0x400ull) = 0x10;
|
||||||
|
while (1) { }
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 2;
|
return 2;
|
||||||
|
|
Loading…
Reference in a new issue