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)
Fri, Dec 26, 8:55 AM
Unknown Object (File)
Wed, Dec 24, 12:28 AM
Unknown Object (File)
Nov 26 2025, 6:00 AM
Unknown Object (File)
Nov 21 2025, 5:03 AM
Unknown Object (File)
Nov 21 2025, 5:03 AM
Unknown Object (File)
Nov 21 2025, 5:02 AM
Unknown Object (File)
Nov 21 2025, 5:00 AM
Unknown Object (File)
Nov 15 2025, 4:06 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