Skip to content

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

The rename's "Darwin userland 16.5 user space" said plainly in the code and the scripts too

shimoku7453553e57aa73
diff --git a/tools/air/intrincheck.py b/tools/air/intrincheck.py
index 405c949..8b28f76 100755
--- a/tools/air/intrincheck.py
+++ b/tools/air/intrincheck.py
@@ -1042,7 +1042,7 @@ def emit_suite(arith, outdir, want, verbose, few=False, cases=0):
f.write(RUNNER)
os.chmod(run, 0o755)
# rc.jobs: the same suite as a job list, for a device with no shell. run.sh
- # above is for this machine; the phone cannot use it, because Darwin userland 16.5's own
+ # above is for this machine; the phone cannot use it, because Darwin 16.5's own
# root carries no sh at all (/bin holds df and ps, nothing else) and the
# /var/jb/bin/sh that userland/rc.jobs.jb runs belongs to the jailbreak
# prefix, which a flash-root image does not carry. So every module gets a
diff --git a/tools/mesa/air/air_module.h b/tools/mesa/air/air_module.h
index 1b89a99..b0aede9 100644
--- a/tools/mesa/air/air_module.h
+++ b/tools/mesa/air/air_module.h
@@ -6,7 +6,7 @@
/*
* The part of LLVM IR that AIR uses, read from bitcode into plain C
* structures. It is a reader, not an IR library: nothing here is modified
- * after reading, and only what the 456 modules of Darwin userland 16.5's system
+ * after reading, and only what the 456 modules of Darwin 16.5's system
* libraries contain (plus a little margin) is understood. Anything else is an
* error that names the record, never a silent skip, because a skipped
* instruction is a wrong shader.
diff --git a/tools/mesa/air/air_run.c b/tools/mesa/air/air_run.c
index afcd243..3007534 100644
--- a/tools/mesa/air/air_run.c
+++ b/tools/mesa/air/air_run.c
@@ -762,7 +762,7 @@ main(int argc, char **argv)
*/
bool want_library = false;
/* --buffer FILE is AIR_RUN_BUFFER as an argument, and it exists because the
- * device has no shell to set one with. Darwin userland 16.5's own root carries no sh at
+ * device has no shell to set one with. Darwin 16.5's own root carries no sh at
* all -- /bin holds df and ps -- and the job list that runs this is read by
* our init, which splits a line on blanks and has no notion of a variable
* (userland/src/init.c, run_command). So a generated suite whose every
diff --git a/tools/metal_plugin_test.m b/tools/metal_plugin_test.m
index 2dd4adf..1032cdb 100644
--- a/tools/metal_plugin_test.m
+++ b/tools/metal_plugin_test.m
@@ -3,7 +3,7 @@
* macOS, its device made by hand the way Metal makes it (-initWithAcceleratorPort:), and what a program does with buffers and
* libraries checked. tools/metal-plugin-test.sh builds and runs it, under the address sanitizer.
*
- * What this shows and what it does not. Metal's private classes on macOS are not Darwin userland 16.5's (the plug-in takes _MTLResource,
+ * What this shows and what it does not. Metal's private classes on macOS are not Darwin 16.5's (the plug-in takes _MTLResource,
* _MTLLibrary and _MTLFunction where they exist, and both systems have them), so this checks the plug-in's own logic -- the
* classes it makes at run time, their state, the buffers' memory, the reading of a .metallib, every object freed -- not that
* Darwin's Metal is content with them. That is metal_test's to say, in QEMU (userland/rc.jobs.metal).
diff --git a/userland/build.sh b/userland/build.sh
index 6afef97..a3be697 100755
--- a/userland/build.sh
+++ b/userland/build.sh
@@ -28,7 +28,7 @@
# RC_JOBS=<file> what the job com.hakios.demo runs: rc.jobs (default), or
# rc.jobs.unlock, which also swipes the lock screen away (for the phone,
# where nothing else can touch the screen yet).
-# A job list cannot assume a shell. Darwin userland 16.5's own root has none at all
+# A job list cannot assume a shell. Darwin 16.5's own root has none at all
# -- /bin is df and ps, and nothing else -- so a line beginning /bin/sh
# fails with "No such file or directory" and status 127 on a flash-root
# boot. The /var/jb/bin/sh that rc.jobs.jb and rc.jobs.sileo run is the
diff --git a/userland/src/metal_test.m b/userland/src/metal_test.m
index 5eb8157..88a0846 100644
--- a/userland/src/metal_test.m
+++ b/userland/src/metal_test.m
@@ -402,7 +402,7 @@ static NSDictionary *coreimage_options;
static int coreimage_over_eagl;
/*
- * The way back for CoreImage, if there is one. Darwin userland 16.5's CoreImage carries a whole second back
+ * The way back for CoreImage, if there is one. Darwin 16.5's CoreImage carries a whole second back
* end on OpenGL ES -- CI::GLContext, CI::GLMainProgram, CI::GLTextureManager beside the
* CI::MetalContext family -- it is linked against OpenGLES, it compiles its shaders as GLSL (not
* AIR), and CIGLIsUsable() is compiled to "return 1". The public way in is
diff --git a/xnuloader/mkidentity.py b/xnuloader/mkidentity.py
index fc8f549..18d4ff0 100755
--- a/xnuloader/mkidentity.py
+++ b/xnuloader/mkidentity.py
@@ -74,7 +74,7 @@ def placeholder():
The device-tree properties Darwin reads to tell which iPhone it is are left empty. This is
enough to build and boot the open kernel under QEMU with an Apple-free user space (the
- `hello` RAM disk); it is NOT enough to run the Darwin userland 16.5 user space, which wants the real
+ `hello` RAM disk); it is NOT enough to run the Darwin 16.5 user space, which wants the real
properties. Generate the real header from your own IPSW (mkidentity.sh) for that.
"""
print('/* Generated by mkidentity.py --placeholder: no Apple device-tree data. */')