diff options
author | Luca Dariz <luca@orpolo.org> | 2024-09-04 22:18:04 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-09-08 01:03:35 +0200 |
commit | e10d0db83b66678a215572d84d23576f5df5a774 (patch) | |
tree | 5c1f04777c5a3dc12914cf50f7fb127d9f29c89c /kern/debug.c | |
parent | 3a6147244fa0fcadec05e3426a35660682858df8 (diff) | |
download | gnumach-e10d0db83b66678a215572d84d23576f5df5a774.tar.gz gnumach-e10d0db83b66678a215572d84d23576f5df5a774.tar.bz2 gnumach-e10d0db83b66678a215572d84d23576f5df5a774.zip |
add xfloat thread state interface
* i386/i386/fpu.c: extend current getter and setter to support the
extended state; move the struct casting here to reuse the locking
and allocation logic for the thread state; make sure the new state
is set as valid, otherwise it won't be applied; add
i386_get_xstate_size() to dynamically retrieve the FPU state size.
* i386/i386/fpu.h: update prototypes to accept generic thread state
* i386/i386/pcb.c: forward raw thread state to getter and setter, only
checking for minimum size and use the new i386_get_xstate_size()
helper.
* i386/include/mach/i386/mach_i386.defs: expose the new helper
i386_get_xstate_size().
* i386/include/mach/i386/thread_status.h: add interface definition for
I386_XFLOAT_STATE and the corresponding data structure.
Message-ID: <20240904201806.510082-1-luca@orpolo.org>
Diffstat (limited to 'kern/debug.c')
0 files changed, 0 insertions, 0 deletions