Skip to content

efi_loader: drop the CTXR runtime-code allocation table - #36

Merged
DjDeveloperr merged 2 commits into
aurora-wipfrom
feat/ctxr-exec-window-followup
Nov 7, 2026
Merged

DjDeveloperr merged 2 commits into
aurora-wipfrom
feat/ctxr-exec-window-followup

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Follow-up to #32, which merged at 7e540a04d0. These two commits landed on feat/ctxr-exec-window after the merge, so they aren't in aurora-wip yet.

  • 29ce27cfdf reverts faafafd67a, the 16-entry runtime-code allocation table. Nothing in the tree frees part of a runtime-code allocation, so it was code for a case that doesn't occur.
  • 7791f7a1d6 documents the limit in doc/board/apple/m1.rst: freeing the start of a runtime-code allocation in the window frees its whole first 64 KiB block.

Tested:

  • The QEMU harness passes 61 of 61 at EL2 against linux#985 f6b1cbf1bc1. The rt-free scenario now expects the documented limit.
  • All 14 sandbox LMB tests pass.
  • The Apple u-boot-nodtb.bin is sha256 6de1f52ad92077f3145e455d6a9ebc31734144fc1097a411b5a0c1c6006abab9, byte-identical across two builds.

Hardware: 50d879ac booted on the Neo with a 128 MiB window through GRUB (Ryan, linux#985). Everything after it, including this, has only run in QEMU.

🤖 Generated with Claude Code

…ked for"

This reverts commit faafafd.

The table of allocations served a case nothing in the tree hits: nothing
frees the start of a runtime code allocation and keeps the rest. It isn't
worth 16 entries and about 60 lines. Freeing the start of such an
allocation in the window frees its whole first 64 KiB block again, which
the next commit documents as a limit.

Signed-off-by: Diljit Singh <[email protected]>
Runtime code in the window comes in whole 64 KiB blocks, and a free
rounds its end up to a block, so freeing the start of an allocation
frees its whole first block. Replace the text that described the table
the previous commit reverted.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr merged commit e1ef8b6 into aurora-wip Nov 7, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the feat/ctxr-exec-window-followup branch November 16, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant