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:
parent
47c01d89b4
commit
66e1a311f5
@ -78,6 +78,7 @@ ok:
|
||||
popq %rdi
|
||||
ret
|
||||
err:
|
||||
addq $8, %rsp
|
||||
#ifdef PIC
|
||||
movq PIC_GOT(HIDENAME(cerror)),%rdx
|
||||
jmp *%rdx
|
||||
|
Loading…
Reference in New Issue
Block a user