diff options
author | jkim <jkim@FreeBSD.org> | 2010-08-02 17:35:00 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-08-02 17:35:00 +0000 |
commit | 79a57d111a564cdef116d6cf2c34b1842377129d (patch) | |
tree | ac5b6c35aff67637e32c04209fa5f534aa1806b7 /gnu | |
parent | 0a86131c629fc0f57598850ae76df2002f261b3e (diff) | |
download | FreeBSD-src-79a57d111a564cdef116d6cf2c34b1842377129d.zip FreeBSD-src-79a57d111a564cdef116d6cf2c34b1842377129d.tar.gz |
- Merge savectx2() with savectx() and struct xpcb with struct pcb. [1]
savectx() is only used for panic dump (dumppcb) and kdb (stoppcbs). Thus,
saving additional information does not hurt and it may be even beneficial.
Unfortunately, struct pcb has grown larger to accommodate more data.
Move 512-byte long pcb_user_save to the end of struct pcb while I am here.
- savectx() now saves FPU state unconditionally and copy it to the PCB of
FPU thread if necessary. This gives panic dump and kdb a chance to take
a look at the current FPU state even if the FPU is "supposedly" not used.
- Resuming CPU now unconditionally reinitializes FPU. If the saved FPU
state was irrelevant, it could be in an unknown state.
Suggested by: bde [1]
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions