diff options
| author | forsyth <forsyth@vitanuova.com> | 2010-02-05 15:15:14 +0000 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2010-02-05 15:15:14 +0000 |
| commit | 6bf3ce61406f2f25d9da051cd29cb00fcbe539da (patch) | |
| tree | 7f3707b84995a0bc8ca490d8e342556de843d8b8 /emu/Linux | |
| parent | 07f684ffc61236e171b449cfe9f91cef1e62866b (diff) | |
20100205-1515
Diffstat (limited to 'emu/Linux')
| -rw-r--r-- | emu/Linux/os.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/emu/Linux/os.c b/emu/Linux/os.c index 3106cb90..86be1389 100644 --- a/emu/Linux/os.c +++ b/emu/Linux/os.c @@ -11,6 +11,7 @@ #include "dat.h" #include "fns.h" #include "error.h" +#include <fpuctl.h> /* glibc 2.3.3-NTPL messes up getpid() by trying to cache the result, so we'll do it ourselves */ #include <sys/syscall.h> @@ -188,13 +189,13 @@ trapSEGV(int signo) disfault(nil, "Segmentation violation"); } -#include <fpuctl.h> static void trapFPE(int signo) { + char buf[64]; USED(signo); - print("FPU status=0x%.4lux", getfsr()); - disfault(nil, "Floating exception"); + snprint(buf, sizeof(buf), "sys: fp: exception status=%.4lux", getfsr()); + disfault(nil, buf); } static void |
