summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-03-28 05:40:58 +0000
committerdyson <dyson@FreeBSD.org>1996-03-28 05:40:58 +0000
commita68eed7d53bef1789d71f456b595527a86acbeea (patch)
tree51bde54bddd3cbc42820b3cf14a21e1ccb3fe3e8 /sys/amd64
parent0b00dbdf90b05e64737783bb5bc34bdf4fd8e9c3 (diff)
downloadFreeBSD-src-a68eed7d53bef1789d71f456b595527a86acbeea.zip
FreeBSD-src-a68eed7d53bef1789d71f456b595527a86acbeea.tar.gz
Remove a now unnecessary prototype from pmap.c. Also remove now
unnecessary vm_fault's of page table pages in trap.c.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c4
-rw-r--r--sys/amd64/amd64/trap.c31
2 files changed, 2 insertions, 33 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index f92a168..fc23832 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.81 1996/03/13 00:39:45 dyson Exp $
+ * $Id: pmap.c,v 1.82 1996/03/28 04:59:34 dyson Exp $
*/
/*
@@ -182,8 +182,6 @@ static vm_page_t
static boolean_t
pmap_testbit __P((vm_offset_t pa, int bit));
static void * pmap_getpdir __P((void));
-void pmap_prefault __P((pmap_t pmap, vm_offset_t addra,
- vm_map_entry_t entry, vm_object_t object));
#if defined(PMAP_DIAGNOSTIC)
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index a52144e..c97e50a 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.73 1996/03/02 19:37:41 peter Exp $
+ * $Id: trap.c,v 1.74 1996/03/27 17:33:39 bde Exp $
*/
/*
@@ -523,23 +523,9 @@ trap_pfault(frame, usermode)
}
}
- /*
- * Check if page table is mapped, if not,
- * fault it first
- */
- v = (vm_offset_t) vtopte(va);
-
- /* Fault the pte only if needed: */
- if (*((int *)vtopte(v)) == 0)
- (void) vm_fault(map, trunc_page(v), VM_PROT_WRITE, FALSE);
-
- mpte = pmap_use_pt( vm_map_pmap(map), va);
-
/* Fault in the user page: */
rv = vm_fault(map, va, ftype, FALSE);
- pmap_unuse_pt( vm_map_pmap(map), va, mpte);
-
--p->p_lock;
} else {
/*
@@ -641,24 +627,9 @@ trap_pfault(frame, usermode)
}
}
- /*
- * Check if page table is mapped, if not,
- * fault it first
- */
- v = (vm_offset_t) vtopte(va);
-
- /* Fault the pte only if needed: */
- if (*((int *)vtopte(v)) == 0)
- (void) vm_fault(map,
- trunc_page(v), VM_PROT_WRITE, FALSE);
-
- mpte = pmap_use_pt( vm_map_pmap(map), va);
-
/* Fault in the user page: */
rv = vm_fault(map, va, ftype, FALSE);
- pmap_unuse_pt( vm_map_pmap(map), va, mpte);
-
--p->p_lock;
} else {
/*
OpenPOWER on IntegriCloud