0x21 creates real address-arbiter objects. 0x22 implements signal with no
waiting peers, signed predicates, conditional decrement and immediate timeout.
Initial 3b adds priority-ordered peer signaling. A required wait blocks the
actual thread and pins its object until a genuine wakeup. A native peer can
run, and dispatch alone never completes a pending call. Since F1 waits can have
finite deadlines that time out with 0x09401BFE, and timers exist (SVC
0x1a–0x1d, one-shot, sticky and pulse).0x23 closes handles and 0x27 duplicates them. SVC 0x2a (GetSystemInfo)
answers type 0 with the application's allocated FCRAM, type 26 with the kernel's
process count, and Luma's type 0x10000 queries for the application region's size
and the model. Other queries answer zero, as Azahar does for the ones it lacks.
ExitProcess (0x03) and ExitThread (0x09) end the process, the latter at its
last thread.0x1ff80000, backed by board AXI WRAM rather
than charged to application FCRAM. The limited kernel personality reports
version 2.58 and the memory mode the title runs in, with its regions' sizes: an
Old 3DS takes the mode the ExHeader names (0, 64 MiB for the application; 2, 96;
3, 80; 4, 72; 5, 32), as Azahar launches them. A New 3DS lays out mode 6, or mode 7
(178 MiB for the application) for a title whose New 3DS system mode (ExHeader
0x20D) is 2. A title that names a New 3DS mode gets all of mode 6's 124 MiB; a
legacy one (New 3DS mode 0) gets its Old 3DS mode's share of it, which the
configuration page reports and the heap enforces, as the console's process
manager limits it (Azahar's UpdateReportedMemory). An ExHeader naming mode 1 or
one above 5 is refused. Resource-limit capabilities and kernel/firmware
configuration fields are not modeled. The run prints the share and the linear
heap's address.0x01) validates page ranges/permissions and supports commit,
free and protect of owned heap/linear allocations. Normal heap uses explicit
VAs in 0x08000000..0x10000000 and may span discontiguous physical holes.
Linear memory is physically contiguous with PA = VA - base + 0x20000000, the
base 0x14000000, or 0x30000000 for a title whose ExHeader names kernel 2.44
(0x22C, system 8.0.0) or later, as Azahar places it: the old base leaves no room
for mode 7's 178 MiB below VRAM's mapping at 0x1F000000. GetProcessInfo type 20
gives the process's base. Shared memory a service makes, and the system font, stay
at their old linear address, as Azahar maps them.
Recycled pages are zeroed. Requests are preflighted and failed publication is
rolled back. MAP and UNMAP alias the application's own heap (an UNMAP that does
not match a MAP returns 0xD8E007F5), the region bits of the operation are
ignored as the application's region is the only one, and executable heap
permissions are refused. FREE of a range a memory block or a mapping holds is
refused. This is not full ControlMemory behavior for static image/shared mappings.0x03C00000 (default NaN, flush to zero, round toward zero)
and the main thread with 0x03C00010, as Azahar sets them. The main thread's
priority comes from the ExHeader. CreateThread accepts processors -2 to 3, all
run by the same serialized scheduler.0x02) returns the base, size, permissions and the memory
state of the page's region in r1 to r4 (Free, IO, Code, Private, Shared,
Continuous, Aliased, Alias, Locked), as Azahar's VMManager classifies them.Made from docs/platforms/3ds/README.md at 69237645142c. GPL-3.0-or-later.