From ed76abfe7620043d898f488ea8c87bf132364845 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Nov 2009 21:30:09 +0100 Subject: Add phys_first_addr and phys_last_addr declaration * i386/i386/model_dep.h (phys_first_addr, phys_last_addr): New declarations. * i386/i386/trap.c: Include (user_trap): Remove extern declaration of phys_last_addr. * i386/intel/pmap.c: Include (phys_first_addr, phys_last_addr): Remove extern declaration. --- i386/intel/pmap.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'i386/intel') diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index e380be7..e385404 100644 --- a/i386/intel/pmap.c +++ b/i386/intel/pmap.c @@ -81,6 +81,7 @@ #include #include #include +#include #define WRITE_PTE(pte_p, pte_entry) *(pte_p) = (pte_entry); @@ -141,13 +142,6 @@ char *pv_lock_table; /* pointer to array of bits */ /* Has pmap_init completed? */ boolean_t pmap_initialized = FALSE; -/* - * More-specific code provides these; - * they indicate the total extent of physical memory - * that we know about and might ever have to manage. - */ -extern vm_offset_t phys_first_addr, phys_last_addr; - /* * Range of kernel virtual addresses available for kernel memory mapping. * Does not include the virtual addresses used to map physical memory 1-1. -- cgit v1.2.3