diff options
author | marcel <marcel@FreeBSD.org> | 2009-10-31 22:27:31 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2009-10-31 22:27:31 +0000 |
commit | 943e1b107a9100189f9c88ee1313ce81a7ed1ba5 (patch) | |
tree | cbe2460180af94e36765a193aa0c297777924c50 /sys/conf | |
parent | 113d2ed8a6d71af32a5432b6d3892b57eaf4f0cc (diff) | |
download | FreeBSD-src-943e1b107a9100189f9c88ee1313ce81a7ed1ba5.zip FreeBSD-src-943e1b107a9100189f9c88ee1313ce81a7ed1ba5.tar.gz |
Reimplement the lazy FP context switching:
o Move all code into a single file for easier maintenance.
o Use a single global lock to avoid having to handle either
multiple locks or race conditions.
o Make sure to disable the high FP registers after saving
or dropping them.
o use msleep() to wait for the other CPU to save the high
FP registers.
This change fixes the high FP inconsistency panics.
A single global lock typically serializes too much, which may
be noticable when a lot of threads use the high FP registers,
but in that case it's probably better to switch the high FP
context synchronuously. Put differently: cpu_switch() should
switch the high FP registers if the incoming and outgoing
threads both use the high FP registers.
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/files.ia64 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files.ia64 b/sys/conf/files.ia64 index 864be05..9b095f4 100644 --- a/sys/conf/files.ia64 +++ b/sys/conf/files.ia64 @@ -84,6 +84,7 @@ ia64/ia64/elf_machdep.c standard ia64/ia64/emulate.c standard ia64/ia64/exception.S standard ia64/ia64/gdb_machdep.c optional gdb +ia64/ia64/highfp.c standard ia64/ia64/in_cksum.c optional inet ia64/ia64/interrupt.c standard ia64/ia64/locore.S standard no-obj |