summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/vm_machdep.c
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-02-19 14:25:37 +0000
committerluoqi <luoqi@FreeBSD.org>1999-02-19 14:25:37 +0000
commit082d37c1acacd0403f5fb2883c7a0203c86baa10 (patch)
tree43d75fbf23c63e0d76e25bdb477e9f3abea2d101 /sys/amd64/amd64/vm_machdep.c
parent34a83c58695826a346644074e092787f655b3394 (diff)
downloadFreeBSD-src-082d37c1acacd0403f5fb2883c7a0203c86baa10.zip
FreeBSD-src-082d37c1acacd0403f5fb2883c7a0203c86baa10.tar.gz
Hide access to vmspace:vm_pmap with inline function vmspace_pmap(). This
is the preparation step for moving pmap storage out of vmspace proper. Reviewed by: Alan Cox <alc@cs.rice.edu> Matthew Dillion <dillon@apollo.backplane.com>
Diffstat (limited to 'sys/amd64/amd64/vm_machdep.c')
-rw-r--r--sys/amd64/amd64/vm_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c
index a7a0b00..3ed436c 100644
--- a/sys/amd64/amd64/vm_machdep.c
+++ b/sys/amd64/amd64/vm_machdep.c
@@ -38,7 +38,7 @@
*
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
- * $Id: vm_machdep.c,v 1.118 1999/02/08 02:42:12 dillon Exp $
+ * $Id: vm_machdep.c,v 1.119 1999/02/16 10:49:48 dfr Exp $
*/
#include "npx.h"
@@ -144,7 +144,7 @@ cpu_fork(p1, p2)
* Set registers for trampoline to user mode. Leave space for the
* return address on stack. These are the kernel mode register values.
*/
- pcb2->pcb_cr3 = vtophys(p2->p_vmspace->vm_pmap.pm_pdir);
+ pcb2->pcb_cr3 = vtophys(vmspace_pmap(p2->p_vmspace)->pm_pdir);
pcb2->pcb_edi = p2->p_md.md_regs->tf_edi;
pcb2->pcb_esi = (int)fork_return;
pcb2->pcb_ebp = p2->p_md.md_regs->tf_ebp;
OpenPOWER on IntegriCloud