PERFORCE change 30038 for review
Peter Wemm
peter at FreeBSD.org
Tue Apr 29 12:09:35 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=30038
Change 30038 by peter at peter_daintree on 2003/04/29 12:08:46
Can't use %rdx for fiddling with PSL_T, because %rdx is the third
register arg for the call, which clobbers the 'env' argument to exect()
Affected files ...
.. //depot/projects/hammer/lib/libc/x86_64/sys/exect.S#4 edit
Differences ...
==== //depot/projects/hammer/lib/libc/x86_64/sys/exect.S#4 (text+ko) ====
@@ -46,9 +46,9 @@
ENTRY(exect)
movq $SYS_execve,%rax
pushfq
- popq %rdx
- orq $ PSL_T,%rdx
- pushq %rdx
+ popq %r8
+ orq $PSL_T,%r8
+ pushq %r8
popfq
KERNCALL
jmp PIC_PLT(HIDENAME(cerror)) /* exect(file, argv, env); */
More information about the p4-projects
mailing list