PERFORCE change 29920 for review
Peter Wemm
peter at FreeBSD.org
Sun Apr 27 20:14:07 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=29920
Change 29920 by peter at peter_daintree on 2003/04/27 20:13:58
take advantage of register preservation across syscall
Affected files ...
.. //depot/projects/hammer/lib/libc/x86_64/sys/Ovfork.S#5 edit
Differences ...
==== //depot/projects/hammer/lib/libc/x86_64/sys/Ovfork.S#5 (text+ko) ====
@@ -47,12 +47,11 @@
.weak vfork
.set vfork,__sys_vfork
ENTRY(__sys_vfork)
- popq %rcx /* my rta into ecx */
+ popq %rsi /* fetch return address (%rsi preserved) */
mov $SYS_vfork,%rax
- /* cant use KERNCALL yet, no scratch regs, cant use stack */
- int $0x80
+ KERNCALL
jb 1f
- jmp *%rcx
+ jmp *%rsi
1:
pushq %rcx
jmp PIC_PLT(HIDENAME(cerror))
More information about the p4-projects
mailing list