exosphere: Add support for rebooting to a payload in IRAM.

This commit is contained in:
Michael Scire
2019-01-20 02:50:13 -08:00
parent d349bdb1f8
commit a52e601f2e
2 changed files with 25 additions and 8 deletions

View File

@@ -41,9 +41,13 @@ typedef enum {
/* These are unofficial, for usage by Exosphere. */
CONFIGITEM_EXOSPHERE_VERSION = 65000,
CONFIGITEM_NEEDS_REBOOT_TO_RCM = 65001,
CONFIGITEM_NEEDS_REBOOT = 65001,
} ConfigItem;
#define REBOOT_KIND_NO_REBOOT 0
#define REBOOT_KIND_TO_RCM 1
#define REBOOT_KIND_TO_WB_PAYLOAD 2
uint32_t configitem_set(bool privileged, ConfigItem item, uint64_t value);
uint32_t configitem_get(bool privileged, ConfigItem item, uint64_t *p_outvalue);