aboutsummaryrefslogtreecommitdiff
path: root/kern/task.c
diff options
context:
space:
mode:
authorLuca Dariz <luca@orpolo.org>2024-09-04 22:18:04 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-09-08 01:03:35 +0200
commite10d0db83b66678a215572d84d23576f5df5a774 (patch)
tree5c1f04777c5a3dc12914cf50f7fb127d9f29c89c /kern/task.c
parent3a6147244fa0fcadec05e3426a35660682858df8 (diff)
downloadgnumach-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/task.c')
0 files changed, 0 insertions, 0 deletions