Add caller-backed PreparedImage and reserve prepared-image region outside kernel fixture - #64
Merged
thanks-cohn merged 2 commits intoAug 13, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
PreparedImageandPreparedPagetoprojects/59-bounded-address-space-exec-image/src/bounded_address_space_exec_image.zigto materialize page bytes directly into caller-supplied backing while returning only bounded metadata and capacity errors.external_prepared_backingandexternal_prepared_stackin a new linker reservation and invokingPreparedImage.prepare(..., backing)during PREPARE.PT_LOADreservation region at0x80600000and PHDR/section changes so prepared-image storage is outside the ordinary image and the inherited fixture window.Testing
zig build test-bounded-address-space-exec-imagesucceeded and unit tests covering inlineMaterializedImageand the newPreparedImagebehavior passed.zig build smoke-bounded-address-space-exec-imagesucceeded and the focused materialization/safety smoke checks passed.zig build install-freestanding-riscv64-morphic-runtimeembedding the exact pinned BusyBox artifact completed successfully and produced an executable with a separate reservationPT_LOAD(no load segment now spans the inherited fixture window).python3 tools/check-command-reference.py --checkand the module contract consistency checks passed after updatingdetails.json/port.js.python3 tools/verify-freestanding-riscv64-external-artifact-transport.py --self-testcould not run here becauseqemu-system-riscv64is not available, so PREPARE/COMMIT and U-mode BusyBox execution were not validated in this environment.node, so aggregate index regeneration was not completed here; the focused module and recipe tests above were used to validate the change instead.Codex Task