Skip ENDBR64 in invalid-op exceptions, add SS to InterruptFrame, and show ELF load progress#31
Merged
pradosh-arduino merged 2 commits intomainfrom Mar 31, 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
ENDBR64instruction and expose the stack segment in interrupt dumps.Description
sstoInterruptFrameand reorder saved registers insource/includes/isr.hso the interrupt frame captures the stack segment.skip_endbr64_if_presentinsource/kernel/C/interrupts/isr.cand call it from the invalid-op (#UD) handler to detect and skip a leadingENDBR64(bytesF3 0F 1E FA) when running in user mode.elf_log_load_progresstosource/kernel/C/executables/elf.cand invoke it during VFS-based program header staging to print a textual progress bar and percent for each segment loaded.elf_apply_relocation_entries,elf_apply_relocations_from_memory,elf_apply_relocations_from_vfs) and related calls so relocations are no longer applied during the current ELF load paths.source/kernel/C/meltdown.cto print the newSSfield in theinterrupt_frame_dumpoutput.Testing
makesuccessfully.make qemu) which reached the kernel prompt and exercised the ELF loader path that emits the new progress output.Codex Task