Date: Sun, 27 Apr 2003 20:14:04 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 29920 for review Message-ID: <200304280314.h3S3E4NX072579@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29920 Change 29920 by peter@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))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304280314.h3S3E4NX072579>