From 1b378d8eb14e2da429724016a413cfa4b92be0f6 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 21 Jul 2021 18:21:38 -0700 Subject: [PATCH] exo/daybreak: advertise (and check against) supported hos version --- .../board/nintendo/nx/kern_secure_monitor.hpp | 22 ++++++++++-------- .../include/stratosphere/spl/spl_types.hpp | 23 ++++++++++--------- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/libmesosphere/source/board/nintendo/nx/kern_secure_monitor.hpp b/libmesosphere/source/board/nintendo/nx/kern_secure_monitor.hpp index 22233b78..757323a3 100644 --- a/libmesosphere/source/board/nintendo/nx/kern_secure_monitor.hpp +++ b/libmesosphere/source/board/nintendo/nx/kern_secure_monitor.hpp @@ -55,16 +55,18 @@ namespace ams::kern::board::nintendo::nx::smc { Package2Hash = 17, /* Extension config items for exosphere. */ - ExosphereApiVersion = 65000, - ExosphereNeedsReboot = 65001, - ExosphereNeedsShutdown = 65002, - ExosphereGitCommitHash = 65003, - ExosphereHasRcmBugPatch = 65004, - ExosphereBlankProdInfo = 65005, - ExosphereAllowCalWrites = 65006, - ExosphereEmummcType = 65007, - ExospherePayloadAddress = 65008, - ExosphereLogConfiguration = 65009, + ExosphereApiVersion = 65000, + ExosphereNeedsReboot = 65001, + ExosphereNeedsShutdown = 65002, + ExosphereGitCommitHash = 65003, + ExosphereHasRcmBugPatch = 65004, + ExosphereBlankProdInfo = 65005, + ExosphereAllowCalWrites = 65006, + ExosphereEmummcType = 65007, + ExospherePayloadAddress = 65008, + ExosphereLogConfiguration = 65009, + ExosphereForceEnableUsb30 = 65010, + ExosphereSupportedHosVersion = 65011, }; enum class SmcResult { diff --git a/libstratosphere/include/stratosphere/spl/spl_types.hpp b/libstratosphere/include/stratosphere/spl/spl_types.hpp index fa510ab5..dcff9b72 100644 --- a/libstratosphere/include/stratosphere/spl/spl_types.hpp +++ b/libstratosphere/include/stratosphere/spl/spl_types.hpp @@ -223,17 +223,18 @@ namespace ams::spl { Package2Hash = 17, /* Extension config items for exosphere. */ - ExosphereApiVersion = 65000, - ExosphereNeedsReboot = 65001, - ExosphereNeedsShutdown = 65002, - ExosphereGitCommitHash = 65003, - ExosphereHasRcmBugPatch = 65004, - ExosphereBlankProdInfo = 65005, - ExosphereAllowCalWrites = 65006, - ExosphereEmummcType = 65007, - ExospherePayloadAddress = 65008, - ExosphereLogConfiguration = 65009, - ExosphereForceEnableUsb30 = 65010, + ExosphereApiVersion = 65000, + ExosphereNeedsReboot = 65001, + ExosphereNeedsShutdown = 65002, + ExosphereGitCommitHash = 65003, + ExosphereHasRcmBugPatch = 65004, + ExosphereBlankProdInfo = 65005, + ExosphereAllowCalWrites = 65006, + ExosphereEmummcType = 65007, + ExospherePayloadAddress = 65008, + ExosphereLogConfiguration = 65009, + ExosphereForceEnableUsb30 = 65010, + ExosphereSupportedHosVersion = 65011, }; }