Fix brk(3). The stack was unbalanced when we jumped to cerror. Oops!

This causes nasty things like SEGV or a cpu spin when we return.

Submitted by: "James R. Van Artsalen" <james@jrv.org>
This commit is contained in:
Peter Wemm 2004-10-27 17:11:43 +00:00
parent 47c01d89b4
commit 66e1a311f5

View File

@ -78,6 +78,7 @@ ok:
popq %rdi
ret
err:
addq $8, %rsp
#ifdef PIC
movq PIC_GOT(HIDENAME(cerror)),%rdx
jmp *%rdx