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)
Sun, May 12, 3:15 PM
Unknown Object (File)
Sat, May 11, 7:27 AM
Unknown Object (File)
Fri, May 10, 8:33 PM
Unknown Object (File)
Fri, May 10, 7:58 PM
Unknown Object (File)
Feb 19 2024, 11:52 PM
Unknown Object (File)
Dec 23 2023, 4:42 AM
Unknown Object (File)
Dec 3 2023, 3:31 PM
Unknown Object (File)
Nov 14 2023, 8:29 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