Update for AMD64 (repocopied from i386/sys/Ovfork.S - why is it O?)

Depend on %rsi being preserved across the "syscall"-style syscall and strip
out the PIC stuff (this cpu has full PC-relative addressing, at last!)
This commit is contained in:
peter 2003-04-30 18:13:13 +00:00
parent 0b2f0dc371
commit 44164f8178

View File

@ -47,12 +47,11 @@ __FBSDID("$FreeBSD$");
.weak vfork
.set vfork,__sys_vfork
ENTRY(__sys_vfork)
popl %ecx /* my rta into ecx */
mov $SYS_vfork,%eax
popq %rsi /* fetch return address (%rsi preserved) */
mov $SYS_vfork,%rax
KERNCALL
jb 1f
jmp *%ecx
jmp *%rsi
1:
pushl %ecx
PIC_PROLOGUE
pushq %rcx
jmp PIC_PLT(HIDENAME(cerror))