No description
Find a file
Ben Gras 2f892aca91 kernel fpu context switching: fix race condition
There seems to have been a broken assumption in the fpu context
restoring code.  It restores the context of the running process, without
guarantee that the current process is the one that will be scheduled.
This caused fpu saving for a different process to be triggered without
fpu hardware being enabled, causing an fpu exception in the kernel. This
practically only shows up with DEBUG_RACE on. Fix my thruby+me.

The fix
 . is to only set the fpu-in-use-by-this-process flag in the
   exception handler, and then take care of fpu restoring when
   actually returning to userspace

And the patch
 . translates fpu saving and restoring to c in arch_system.c,
   getting rid of a juicy chunk of assembly
 . makes osfxsr_feature private to arch_system.c
 . removes most of the arch dependent code from do_sigsend
2010-06-03 11:32:22 +00:00
benchmarks only check local benchmark dir if it exists 2010-02-04 18:15:10 +00:00
boot boot monitor: introduce a 'reset' command that causes the cpu to 2010-06-02 13:23:15 +00:00
commands Fix ftp client's passive mode. 2010-06-02 21:12:54 +00:00
docs This patch switches the MINIX3 ethernet driver stack from a port-based 2010-05-17 22:22:53 +00:00
drivers move drivers/random SHA implementation to libutil and header to <minix/sha2.h> 2010-06-02 22:58:29 +00:00
etc Release script: Remove .d/.depend files from CD 2010-06-01 14:44:36 +00:00
include move drivers/random SHA implementation to libutil and header to <minix/sha2.h> 2010-06-02 22:58:29 +00:00
kernel kernel fpu context switching: fix race condition 2010-06-03 11:32:22 +00:00
lib move drivers/random SHA implementation to libutil and header to <minix/sha2.h> 2010-06-02 22:58:29 +00:00
man fix int64.3 man page formatting 2010-05-24 21:10:37 +00:00
servers Always skip signals for PM itself when broadcasting. 2010-06-03 11:18:43 +00:00
share Convert boot/ and commands/ over to bsdmake 2010-05-12 16:28:54 +00:00
test Minor makefile changes for GCC 2010-06-01 09:41:31 +00:00
tools Release script: Remove .d/.depend files from CD 2010-06-01 14:44:36 +00:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile Release script: Remove .d/.depend files from CD 2010-06-01 14:44:36 +00:00