Expand description
Checked packages and relocation for fixed-region CD-loaded code/data.
The consumer owns CD transport, allocation and scene pinning. A complete, integrity-checked transport buffer is parsed before any image word is copied or relocated. Bind resident imports and flush the instruction cache before publication; trap incoming imports and flush before eviction reuses memory. This first format has no cross-module imports. Its borrowed views must not outlive the transport buffer. Execution/data leases remain consumer policy.
Structs§
- Package
- A checked module borrowing the complete transport buffer.
Enums§
- Error
- Invalid package, placement or relocation.
Constants§
- MAGIC
- Five-word package magic used by the existing HK module transport.
Functions§
- direct
- Rebind a statically checked import or trap instruction. This computes a word; storing it and synchronizing I-cache remain the consumer’s responsibility.
- placement
- Check alignment/range and the code window before copying into a fixed arena.
- relocate
- Relocate a checked self-reference, retaining its instruction opcode.
offsetis the actual instruction offset, including for J26 PC+4 rules. - window
- Centre of the signed-low-half address window.