meso: skeleton libmesosphere in prep for kernelldr dev

This commit is contained in:
Michael Scire 2019-12-12 06:29:37 -08:00 committed by SciresM
parent 0b0fdc5c58
commit 36c47a0014
22 changed files with 732 additions and 13 deletions

View file

@ -19,13 +19,13 @@ namespace ams::pm::bm {
/* Boot Mode API. */
/* Both functions should be weakly linked, so that they can be overridden by ams::boot2 as needed. */
BootMode WEAK GetBootMode() {
BootMode WEAK_SYMBOL GetBootMode() {
PmBootMode boot_mode = PmBootMode_Normal;
R_ASSERT(pmbmGetBootMode(&boot_mode));
return static_cast<BootMode>(boot_mode);
}
void WEAK SetMaintenanceBoot() {
void WEAK_SYMBOL SetMaintenanceBoot() {
R_ASSERT(pmbmSetMaintenanceBoot());
}