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, Apr 27, 6:10 PM
Unknown Object (File)
Fri, Apr 24, 12:32 AM
Unknown Object (File)
Wed, Apr 22, 6:36 PM
Unknown Object (File)
Sat, Apr 11, 12:29 AM
Unknown Object (File)
Fri, Apr 10, 8:23 PM
Unknown Object (File)
Mar 22 2026, 12:26 AM
Unknown Object (File)
Mar 21 2026, 2:11 PM
Unknown Object (File)
Mar 20 2026, 9:42 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