{{ message }}
Repository navigation
Conversation
Member
Author
dgruss
force-pushed
the
c-interrupt-entry
branch
2 times, most recently
from
October 13, 2026 05:59
47d46b8 to
67005ff
Compare
dgruss
force-pushed
the
c-interrupt-entry
branch
from
October 14, 2026 06:42
67005ff to
00ca4a2
Compare
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.

This finishes a cleanup I started in late 2014, when I moved most of the low-level assembly code to C/C++. The saved-register structs use the same stack and register layout trick the x86 code has used since then. I also had a prototype using pseudo-naked functions for the remaining entry code several years ago, but this is much nicer now that GCC supports naked functions.
Move the remaining boot and interrupt entry code from
.Sfiles to C/C++. This lets the entry paths call C/C++ directly and makes the stack layouts visible as C structs. Where GCC ignoresnaked, use a computed pseudo-naked entry point.Also add synthetic stack frames on x86 so kernel backtraces continue at the instruction which was interrupted.
This removes the last
.Sfiles from the tree.The page-fault diagnostics and interrupt backtrace frames included here are split out from Florian Kargl's #287.