exo2: implement rest of main other than SetupSocProtections

This commit is contained in:
Michael Scire
2020-05-12 13:27:53 -07:00
committed by SciresM
parent f391354415
commit 87bdc46beb
18 changed files with 408 additions and 78 deletions

View File

@@ -20,7 +20,8 @@ namespace ams::secmon {
namespace {
pkg1::BctParameters g_bct_params;
constinit pkg1::BctParameters g_bct_params = {};
constinit se::Sha256Hash g_package2_hash = {};
}
@@ -43,4 +44,12 @@ namespace ams::secmon {
return dbg_auth.Get<hw::DbgAuthStatusEl1::Nsid>() == 3;
}
}
void GetPackage2Hash(se::Sha256Hash *out) {
*out = g_package2_hash;
}
void SetPackage2Hash(const se::Sha256Hash &hash) {
g_package2_hash = hash;
}
}