Page MenuHomeFreeBSD

Remove unused fields from struct pcb.
ClosedPublic

Authored by jhb on Jan 28 2020, 11:31 AM.
Tags
None
Referenced Files
F157770267: D23395.id67525.diff
Mon, May 25, 12:09 AM
F157762174: D23395.id67397.diff
Sun, May 24, 10:42 PM
F157762113: D23395.id67397.diff
Sun, May 24, 10:41 PM
F157762078: D23395.id67397.diff
Sun, May 24, 10:41 PM
Unknown Object (File)
Fri, May 22, 10:41 PM
Unknown Object (File)
Thu, May 14, 8:02 PM
Unknown Object (File)
Mon, May 11, 12:12 PM
Unknown Object (File)
Wed, May 6, 1:17 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28972
Build 26951: arc lint + arc unit