aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/unix/sysv/linux/tile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-07-17 14:35:46 -0400
committerChris Metcalf <cmetcalf@tilera.com>2012-07-17 14:40:48 -0400
commitf110915184d5daebbec513edb034653eab849234 (patch)
tree8d2d122c35b6e9801bd909896177f7afbd8bead6 /ports/sysdeps/unix/sysv/linux/tile
parent6df48a9b8bb603966febafb21354f88a4dc9d1ab (diff)
downloadglibc-f110915184d5daebbec513edb034653eab849234.tar
glibc-f110915184d5daebbec513edb034653eab849234.tar.gz
glibc-f110915184d5daebbec513edb034653eab849234.tar.bz2
glibc-f110915184d5daebbec513edb034653eab849234.zip
tile: exit with status zero on makecontext return with NULL uc_link
Diffstat (limited to 'ports/sysdeps/unix/sysv/linux/tile')
-rw-r--r--ports/sysdeps/unix/sysv/linux/tile/setcontext.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/tile/setcontext.S b/ports/sysdeps/unix/sysv/linux/tile/setcontext.S
index f95ad7ccaa..587097e90e 100644
--- a/ports/sysdeps/unix/sysv/linux/tile/setcontext.S
+++ b/ports/sysdeps/unix/sysv/linux/tile/setcontext.S
@@ -196,6 +196,9 @@ ENTRY (__startcontext)
move r0, r30
jal __setcontext
}
-1: j HIDDEN_JUMPTARGET(exit)
+1: {
+ movei r0, 0
+ j HIDDEN_JUMPTARGET(exit)
+ }
END (__startcontext)
.hidden __startcontext