arch/tile: change lower bound on syscall error return to -4095
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 14 Oct 2010 19:14:29 +0000 (15:14 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 14 Oct 2010 19:14:29 +0000 (15:14 -0400)
Previously we were using -1023, which is fine for normal syscall
error returns, but the common value in use for other platforms
is -4095, and one Tilera-specific driver does use values in the
-1100 range, so tickled this bug.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/intvec_32.S

index c62c2f421ef3a499b596a8bc2abb1b851a47a75a..f87c5c044d6ba6366ce0a44c6828641c4573f0b2 100644 (file)
@@ -1020,7 +1020,7 @@ STD_ENTRY(interrupt_return)
 
        /* Set r1 to errno if we are returning an error, otherwise zero. */
        {
-        moveli r29, 1024
+        moveli r29, 4096
         sub    r1, zero, r0
        }
        slt_u   r29, r1, r29