Most ppc64le distributions, Debian's among them, run kernels with 64 KiB pages, and Apple silicon and some AArch64
kernels use 16 KiB ones. The Switch maps memory in 4 KiB pages, which a host can only commit and protect in its own,
so src/nx/memory/mem.c keeps the guest's pages in its block list and commits whole host pages under them. Freeing a
guest page decommits its host page once nothing else in it is mapped, and zeroes the page otherwise, so it reads zero
when mapped again, as on the console. The differences from a 4 KiB host:
src/gnuabi/) protects each host page as the most permissive of its guest pages, so a write to
compiled code beside writable data in one host page isn't seen.The runtime's setting host_page=16384 or 65536 (scarletnx-gnuabi --host-page=N) makes any machine work in those
pages, which is how the tests and CI check these paths on 4 KiB hosts (ldr_service_64k_pages,
nx_runtime_homebrew_64k_pages, gnuabi_memory_64k_pages); memory_accounting runs as on 16 and 64 KiB hosts by
itself.
Made from docs/hosts/ppc64.md at 69237645142c. GPL-3.0-or-later.