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 Wemm 2003-04-30 18:13:13 +00:00
parent 1482008e2b
commit 173564016e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114310

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))