Skip to content

Commit c2eceb4

Browse files
riastradhriastradh
authored andcommitted
vax longjmp(9): Fix return value.
PR port-vax/59308: kernel longjmp(9) fails to make setjmp(9) return 1 PR port-vax/60102: kernel longjmp(9) on vax reads stack garbage instead of returning 1 (patch)
1 parent aa37eb6 commit c2eceb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sys/arch/vax/vax/subr.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: subr.S,v 1.43 2023/12/18 22:40:01 kalvisd Exp $ */
1+
/* $NetBSD: subr.S,v 1.44 2026/03/19 04:34:03 riastradh Exp $ */
22

33
/*
44
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -275,7 +275,7 @@ _C_LABEL(setjmp):.word 0
275275

276276
_C_LABEL(longjmp):.word 0
277277
movl 4(%ap), %r1
278-
movl 8(%ap), %r0
278+
movl $1, %r0
279279
movl (%r1), %ap
280280
movl 4(%r1), %fp
281281
movl 12(%r1), %sp

0 commit comments

Comments
 (0)