setjmp() and longjmp() now use a buffer whose size is that of label_t

rather than one that was 44 bytes bigger. No wonder DDB was not working
properly.
This commit is contained in:
mark 1996-03-08 19:03:11 +00:00
parent 33405882d3
commit 5254468ebb

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.S,v 1.4 1996/02/22 22:41:31 mark Exp $ */
/* $NetBSD: locore.S,v 1.5 1996/03/08 19:03:11 mark Exp $ */
/*
* Copyright (C) 1994 Mark Brinicombe
@ -30,7 +30,7 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: locore.S,v 1.4 1996/02/22 22:41:31 mark Exp $
* $Id: locore.S,v 1.5 1996/03/08 19:03:11 mark Exp $
*/
#include "assym.h"
@ -550,14 +550,12 @@ _esigcode:
*/
.global _setjmp
ENTRY(setjmp)
add r0, r0, #44
stmia r0, {r4-r14}
mov r0, #0x00000000
mov r15, r14
.global _longjmp
ENTRY(longjmp)
add r2, r0, #44
ldmia r2, {r4-r14}
mov r0, #0x00000001
mov r15, r14