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
F154767937: D55189.id171477.diff
Wed, Apr 29, 10:02 AM
F154767228: D55189.id171477.diff
Wed, Apr 29, 10:00 AM
F154722806: D55189.id171481.diff
Wed, Apr 29, 7:37 AM
F154720583: D55189.id171481.diff
Wed, Apr 29, 7:29 AM
F154703242: D55189.id171480.diff
Wed, Apr 29, 6:32 AM
F154700866: D55189.id171480.diff
Wed, Apr 29, 6:26 AM
Unknown Object (File)
Tue, Apr 28, 10:11 PM
Unknown Object (File)
Tue, Apr 28, 10:06 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 70536
Build 67419: arc lint + arc unit

Event Timeline

sys/x86/include/frame.h
50

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
47

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.