PERFORCE change 28503 for review
Peter Wemm
peter at FreeBSD.org
Tue Apr 8 01:51:47 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28503
Change 28503 by peter at peter_daintree on 2003/04/08 01:51:16
point %cr3 to the pml4 or cpu_switch doesn't work too well
Affected files ...
.. //depot/projects/hammer/sys/x86_64/x86_64/vm_machdep.c#18 edit
Differences ...
==== //depot/projects/hammer/sys/x86_64/x86_64/vm_machdep.c#18 (text+ko) ====
@@ -134,11 +134,7 @@
* Set registers for trampoline to user mode. Leave space for the
* return address on stack. These are the kernel mode register values.
*/
-#ifdef PAE
- pcb2->pcb_cr3 = vtophys(vmspace_pmap(p2->p_vmspace)->pm_pdpt);
-#else
- pcb2->pcb_cr3 = vtophys(vmspace_pmap(p2->p_vmspace)->pm_pdir);
-#endif
+ pcb2->pcb_cr3 = vtophys(vmspace_pmap(p2->p_vmspace)->pm_pml4);
pcb2->pcb_r12 = (int)fork_return; /* fork_trampoline argument */
pcb2->pcb_rbp = 0;
pcb2->pcb_rsp = (long)td2->td_frame - sizeof(void *);
More information about the p4-projects
mailing list