Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.
C
var_store: erase takes the claim too, like every other write of the store
vcvkk8bfbbe98d048
diff --git a/userland/src/var_store.c b/userland/src/var_store.cindex 471f59b..b5edec4 100644--- a/userland/src/var_store.c+++ b/userland/src/var_store.c@@ -1290,7 +1290,8 @@ main(int argc, char **argv, char **envp)} else if (strcmp(what, "load") == 0) {ok = load();} else if (strcmp(what, "erase") == 0) {- ok = erase();+ ok = claim() && erase(); /* a write like any other: the claim first */+ release();} else {show();ok = 1;