only clear pcb_onfault if we actually set it. fixes PR 7838.

This commit is contained in:
chs 1999-11-02 06:48:33 +00:00
parent 9894ab10b4
commit f8d11b005f
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: copystr.S,v 1.10 1999/10/26 06:53:41 cgd Exp $ */ /* $NetBSD: copystr.S,v 1.11 1999/11/02 06:48:33 chs Exp $ */
/* /*
* Copyright (c) 1995 Mark Brinicombe. * Copyright (c) 1995 Mark Brinicombe.
@ -172,6 +172,9 @@ Lcopyinoutstr_loop:
teqne r6, r2 teqne r6, r2
bne Lcopyinoutstr_loop bne Lcopyinoutstr_loop
mov r0, #0x00000000
str r0, [r4, #PCB_ONFAULT]
Lcopyinoutstrexit: Lcopyinoutstrexit:
teq r3, #0x00000000 teq r3, #0x00000000
strne r6, [r3] strne r6, [r3]
@ -180,8 +183,6 @@ Lcopyinoutstrexit:
moveq r0, #0x00000000 moveq r0, #0x00000000
movne r0, #ENAMETOOLONG movne r0, #ENAMETOOLONG
mov r6, #0x00000000
str r6, [r4, #PCB_ONFAULT]
ldmfd sp!, {r4-r6} ldmfd sp!, {r4-r6}
mov pc, lr mov pc, lr