Page MenuHomeFreeBSD

Remove unused fields from struct pcb.
ClosedPublic

Authored by jhb on Jan 28 2020, 11:31 AM.
Tags
None
Referenced Files
F136082542: D23395.id67525.diff
Sat, Nov 15, 4:06 PM
Unknown Object (File)
Fri, Nov 14, 9:48 PM
Unknown Object (File)
Fri, Nov 14, 3:00 PM
Unknown Object (File)
Mon, Nov 3, 7:07 PM
Unknown Object (File)
Sat, Nov 1, 10:51 AM
Unknown Object (File)
Sun, Oct 26, 10:54 PM
Unknown Object (File)
Sun, Oct 26, 10:54 PM
Unknown Object (File)
Sun, Oct 26, 10:54 PM
Subscribers

Details

Summary

cpu_switch/throw() and savectx() do not save or restore any values
in these fields which mostly held non-callee-save registers.

makectx() copied these fields from kdb_frame, but they weren't used
except for PC_REGS using pcb_sepc. Change PC_REGS to use
kdb_frame->tf_sepc directly instead.

Test Plan
  • booted qemu, stack traces work for both curthread and other threads in ddb

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable