]> Zhao Yanbai Git Server - minix.git/commit
Kernel: retain FPU state upon save
authorDavid van Moolenbroek <david@minix3.org>
Sat, 3 Mar 2012 16:48:14 +0000 (17:48 +0100)
committerBen Gras <ben@minix3.org>
Tue, 6 Mar 2012 15:13:02 +0000 (16:13 +0100)
commitffa4d7423ab418a96654f22fcaec0da220060399
tree99ba0f98efe2c38346262072c8e41ac2852bc05c
parent90b72ba7a899cea3beccc7b3b795501fbdda14d7
Kernel: retain FPU state upon save

On the x86, saving FPU state has the side effect of resetting this
state. In some cases (fork, getcontext), this would cause the state
to be lost. This patch restores the FPU state right after saving it,
except when different state is loaded immediately after.
kernel/arch/i386/arch_system.c
test/test51.c