Page MenuHomeFreeBSD

frame.h: mark struct trapframe to be preserved
ClosedPublic

Authored by mchoo on Feb 8 2026, 11:07 PM.
Tags
None
Referenced Files
F164972641: D55189.id171477.diff
Wed, Aug 5, 4:29 AM
F164970318: D55189.id171481.diff
Wed, Aug 5, 4:16 AM
F164944545: D55189.id171481.diff
Wed, Aug 5, 1:41 AM
F164845314: D55189.diff
Tue, Aug 4, 7:27 AM
Unknown Object (File)
Sun, Aug 2, 12:53 PM
Unknown Object (File)
Sat, Aug 1, 6:36 PM
Unknown Object (File)
Wed, Jul 29, 12:58 AM
Unknown Object (File)
Tue, Jul 28, 11:34 AM

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

mchoo requested review of this revision.Feb 8 2026, 11:07 PM
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.

mchoo marked an inline comment as done.Feb 9 2026, 1:06 AM
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

mchoo marked an inline comment as done.Feb 9 2026, 1:21 AM
sys/x86/include/frame.h
47

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

mchoo marked an inline comment as done.Feb 9 2026, 1:37 AM

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#1261893, @minsoochoo0122_proton.me 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.

In D55189#1261894, @kib wrote:
In D55189#1261893, @minsoochoo0122_proton.me 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#1261895, @minsoochoo0122_proton.me wrote:
In D55189#1261894, @kib wrote:
In D55189#1261893, @minsoochoo0122_proton.me 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.