diff --git a/include/stratosphere/utilities.hpp b/include/stratosphere/utilities.hpp index 8e8b2685..c2ec0006 100644 --- a/include/stratosphere/utilities.hpp +++ b/include/stratosphere/utilities.hpp @@ -33,6 +33,14 @@ static inline void RebootToIramPayload() { svcCallSecureMonitor(&args); } +static inline void PerformShutdown() { + SecmonArgs args = {0}; + args.X[0] = 0xC3000401; /* smcSetConfig */ + args.X[1] = 65002; /* Exosphere shutdown */ + args.X[3] = 1; /* Perform shutdown. */ + svcCallSecureMonitor(&args); +} + static inline void CopyToIram(uintptr_t iram_addr, void *src_addr, size_t size) { SecmonArgs args = {0}; args.X[0] = 0xF0000201; /* smcAmsIramCopy */