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, Apr 23, 7:42 PM
Unknown Object (File)
Wed, Apr 23, 4:27 PM
Unknown Object (File)
Wed, Apr 23, 9:16 AM
Unknown Object (File)
Wed, Apr 23, 9:01 AM
Unknown Object (File)
Wed, Apr 23, 8:48 AM
Unknown Object (File)
Wed, Apr 23, 7:10 AM
Unknown Object (File)
Wed, Apr 23, 7:07 AM
Unknown Object (File)
Wed, Apr 23, 7:06 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