• C
    [PATCH] x86-64: Fix incorrect FP signals · ff347b22
    Chuck Ebbert 提交于
    This is the same patch that went into i386 just before 2.6.13
    came out.  I still can't build 64-bit user apps, so I tested
    with program (see below) in 32-bit mode on 64-bit kernel:
    
    Before:
    
    	$ fpsig
    	handler: nr = 8, si = 0x0804bc90, vuc = 0x0804bd10
    	handler: altstack is at 0x0804b000, ebp = 0x0804bc7c
    	handler: si_signo = 8, si_errno = 0, si_code = 0 [unknown]
    	handler: fpu cwd = 0xb40, fpu swd = 0xbaa0
    	handler: i387 unmasked precision exception, rounded up
    
    After:
    
    	$ fpsig
    	handler: nr = 8, si = 0x0804bc90, vuc = 0x0804bd10
    	handler: altstack is at 0x0804b000, ebp = 0x0804bc7c
    	handler: si_signo = 8, si_errno = 0, si_code = 6 [inexact result]
    	handler: fpu cwd = 0xb40, fpu swd = 0xbaa0
    	handler: i387 unmasked precision exception, rounded up
    Signed-off-by: NChuck Ebbert <76306.1226@compuserve.com>
    Signed-off-by: NAndi Kleen <ak@suse.de>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    ff347b22
traps.c 24.5 KB