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)
Thu, May 14, 8:02 PM
Unknown Object (File)
Mon, May 11, 12:12 PM
Unknown Object (File)
Wed, May 6, 1:17 AM
Unknown Object (File)
Thu, Apr 30, 4:46 PM
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)
Apr 11 2026, 12:29 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable