PERFORCE change 29556 for review

Peter Wemm peter at FreeBSD.org
Wed Apr 23 15:30:17 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=29556

Change 29556 by peter at peter_daintree on 2003/04/23 15:29:41

	pass arg0 for _start in a register.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#74 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#74 (text+ko) ====

@@ -475,6 +475,7 @@
 	bzero((char *)regs, sizeof(struct trapframe));
 	regs->tf_rip = entry;
 	regs->tf_rsp = stack;
+	regs->tf_rdi = stack;		/* argv */
 	regs->tf_rflags = PSL_USER | (regs->tf_rflags & PSL_T);
 	regs->tf_ss = _udatasel;
 	regs->tf_cs = _ucodesel;


More information about the p4-projects mailing list