Page MenuHomeFreeBSD

frame.h: mark struct trapframe to be preserved
ClosedPublic

Authored by minsoochoo0122_proton.me on Sun, Feb 8, 11:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 4, 1:28 PM
Unknown Object (File)
Tue, Mar 3, 3:35 AM
Unknown Object (File)
Mon, Mar 2, 1:00 AM
Unknown Object (File)
Sun, Mar 1, 7:39 AM
Unknown Object (File)
Sat, Feb 28, 12:06 PM
Unknown Object (File)
Sat, Feb 28, 4:27 AM
Unknown Object (File)
Sat, Feb 21, 7:20 PM
Unknown Object (File)
Wed, Feb 18, 1:59 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

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.Mon, Feb 9, 2:59 AM
This revision was automatically updated to reflect the committed changes.