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)
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
Unknown Object (File)
Sun, Oct 26, 5:30 PM
Unknown Object (File)
Wed, Oct 8, 11:19 PM
Unknown Object (File)
Sep 29 2025, 7:15 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