Page MenuHomeFreeBSD

Remove unused fields from struct pcb.
ClosedPublic

Authored by jhb on Jan 28 2020, 11:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 6:00 AM
Unknown Object (File)
Fri, Nov 21, 5:03 AM
Unknown Object (File)
Fri, Nov 21, 5:03 AM
Unknown Object (File)
Fri, Nov 21, 5:02 AM
Unknown Object (File)
Fri, Nov 21, 5:00 AM
Unknown Object (File)
Nov 15 2025, 4:06 PM
Unknown Object (File)
Nov 14 2025, 9:48 PM
Unknown Object (File)
Nov 14 2025, 3:00 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

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