Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

Module arena

Module arena 

Source
Expand description

Borrowed code/data arenas with generation-bound execution admission.

Transport completes in caller-owned staging bytes before install. No arena storage is allocated here. Allocation uses the existing PagePool generations with one allocation unit per byte, not sector rounding. CPU entry calls borrow the registry and backing arena for their full scope. DMA, renderer and other external users must be quiescent before unload.

Structs§

Admission
Execution/data lease. Its fields deliberately do not expose raw code addresses or an owned run that could escape the admission borrow.
CallerArena
A view of an existing word-aligned arena, including its MIPS address. Host tests may supply a model address; executing code requires its actual physical address, checked on MIPS at construction.
Descriptor
Trusted descriptor emitted alongside the same-compilation package.
PackedCall
Final-link-patched typed callsite; selector is the declared call-pair index.
PackedDescriptor
Final-link-patched resident metadata; keep initialized storage in .data. This fixed layout avoids a second compilation moving typed callsites.
PackedVeneer
A resident jump veneer for one typed call site, built by the final-link packer (overlay-compose --veneers SYMBOL). The site’s J/JAL always targets the veneer; the veneer loads its own target word and jumps there. A lease writes the overlay’s entry into target and the trap back when it ends, so entering and leaving a lease are two data stores: the instruction cache is flushed only when an image is installed or replaced (Registry::install), never per call.
Registry
Small persistent allocation/publication registry. Keep it across title, gameplay and title re-admission so old handles cannot become current again.
StaticImport
A known resident direct-call instruction, not an escaped function pointer.
VeneerImport
One veneered typed call: the resident veneer, the module that owns the export and the export’s byte offset in that module’s image.

Enums§

Error
Admission or installation failure; no callable entry is published on failure.

Functions§

checksum
Word checksum matching the existing HK module transport.