Page MenuHomeFreeBSD

frame.h: mark struct trapframe to be preserved
ClosedPublic

Authored by minsoochoo0122_proton.me on Feb 8 2026, 11:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 4, 3:58 PM
Unknown Object (File)
Thu, Mar 26, 7:26 AM
Unknown Object (File)
Tue, Mar 24, 9:31 PM
Unknown Object (File)
Fri, Mar 20, 6:58 AM
Unknown Object (File)
Fri, Mar 20, 5:58 AM
Unknown Object (File)
Thu, Mar 19, 11:40 PM
Unknown Object (File)
Thu, Mar 19, 4:51 PM
Unknown Object (File)
Thu, Mar 19, 4:18 PM

Details

Summary

There are programs that depend on this structure (e.g. kernel debuggers)
that breaks when the ABI changes.

Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70534
Build 67417: arc lint + arc unit

Event Timeline

sys/x86/include/frame.h
51

It is enough to have one instance of this in x86/frame.h. Move one comment out of #ifdef, and remove another.

Then, the wording must be completely different, at least for x86, because the layout is defined by hardware, and its changes in somewhat compatible way.

So I think it would be fine to have sentence like 'struct trapframe is known to kernel debuggers.' But not more.

sys/x86/include/frame.h
41

Remove this blank line.

Then I suggest you to commit the x86 part.

remove blank line and separate commit for x86

sys/x86/include/frame.h
48

No, move this line to the top-level comment, applicable to both i386 and amd64.

Please commit the x86 change.

In D55189#1261892, @kib wrote:

Please commit the x86 change.

I did in 728adff455a3. Or do you mean submit only x86 change and discard others?

In D55189#1261892, @kib wrote:

Please commit the x86 change.

I did in 728adff455a3. Or do you mean submit only x86 change and discard others?

I do not see this revision in the FreeBSD git repo. I mean literally commit the sys/x86/include part, leaving other arches for their maintainers to review.

In D55189#1261894, @kib wrote:
In D55189#1261892, @kib wrote:

Please commit the x86 change.

I did in 728adff455a3. Or do you mean submit only x86 change and discard others?

I do not see this revision in the FreeBSD git repo. I mean literally commit the sys/x86/include part, leaving other arches for their maintainers to review.

For 728adff455a3, I meant under commits tab in this revision. I don't understand what you mean by commit because I don't have commit bit. Sorry if I'm causing miscommunication here, but I'm confused.

In D55189#1261894, @kib wrote:
In D55189#1261892, @kib wrote:

Please commit the x86 change.

I did in 728adff455a3. Or do you mean submit only x86 change and discard others?

I do not see this revision in the FreeBSD git repo. I mean literally commit the sys/x86/include part, leaving other arches for their maintainers to review.

For 728adff455a3, I meant under commits tab in this revision. I don't understand what you mean by commit because I don't have commit bit. Sorry if I'm causing miscommunication here, but I'm confused.

Ok, send me the git-format patch for the x86 part, with the right author, commit message, and all the metadata. I will push it for you.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 9 2026, 2:59 AM
This revision was automatically updated to reflect the committed changes.