Page MenuHomeFreeBSD

Remove unused fields from struct pcb.
ClosedPublic

Authored by jhb on Jan 28 2020, 11:31 AM.
Tags
None
Referenced Files
F105943602: D23395.diff
Sun, Dec 22, 10:08 PM
Unknown Object (File)
Thu, Dec 12, 5:05 PM
Unknown Object (File)
Mon, Dec 9, 1:49 PM
Unknown Object (File)
Sat, Nov 30, 12:42 PM
Unknown Object (File)
Sun, Nov 24, 1:23 PM
Unknown Object (File)
Sep 18 2024, 9:50 AM
Unknown Object (File)
Sep 16 2024, 11:54 PM
Unknown Object (File)
Sep 16 2024, 11:54 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