Set the return value correctly on copy failure in copystr.

MFC after:	1 week
This commit is contained in:
andrew 2015-05-31 21:03:06 +00:00
parent a409091271
commit d5156d8acb

View File

@ -194,6 +194,7 @@ END(copyoutstr)
/* A fault occurred during the copy */
.Lcopystrfault:
mov r0, #EFAULT
mov r1, #0x00000000
str r1, [r4, #PCB_ONFAULT]
RESTORE_REGS