Remove avail_start on those platforms that no longer use it. (Only amd64

does anything with it beyond simple initialization.)
This commit is contained in:
Alan Cox 2004-04-05 04:08:00 +00:00
parent 66f8ce8f20
commit c8607538c8
12 changed files with 8 additions and 28 deletions

View File

@ -301,7 +301,6 @@ vm_size_t Lev2mapsize, Lev3mapsize;
*/
struct pmap kernel_pmap_store;
vm_offset_t avail_start; /* PA of first available physical page */
vm_offset_t avail_end; /* PA of last available physical page */
vm_offset_t virtual_avail; /* VA of first avail page (after kernel bss) */
vm_offset_t virtual_end; /* VA of last avail page (end of kernel AS) */
@ -512,7 +511,6 @@ pmap_bootstrap(vm_offset_t ptaddr, u_int maxasn)
Lev2map[i] = newpte;
}
avail_start = phys_avail[0];
for (i = 0; phys_avail[i+2]; i+= 2) ;
avail_end = phys_avail[i+1];

View File

@ -209,7 +209,6 @@ typedef struct pv_entry {
#ifdef _KERNEL
extern vm_offset_t avail_end;
extern vm_offset_t avail_start;
extern vm_offset_t phys_avail[];
extern vm_offset_t virtual_avail;
extern vm_offset_t virtual_end;

View File

@ -189,7 +189,6 @@ static struct mtx allpmaps_lock;
static struct mtx lazypmap_lock;
#endif
vm_paddr_t avail_start; /* PA of first available physical page */
vm_paddr_t avail_end; /* PA of last available physical page */
vm_offset_t virtual_avail; /* VA of first avail page (after kernel bss) */
vm_offset_t virtual_end; /* VA of last avail page (end of kernel AS) */
@ -313,8 +312,6 @@ pmap_bootstrap(firstaddr, loadaddr)
pt_entry_t *pte;
int i;
avail_start = firstaddr;
/*
* XXX The calculation of virtual_avail is wrong. It's NKPT*PAGE_SIZE too
* large. It should instead be correctly calculated in locore.s and

View File

@ -325,7 +325,6 @@ extern struct ppro_vmtrr PPro_vmtrr[NPPROVMTRR];
extern caddr_t CADDR1;
extern pt_entry_t *CMAP1;
extern vm_paddr_t avail_end;
extern vm_paddr_t avail_start;
extern vm_paddr_t phys_avail[];
extern int pseflag;
extern int pgeflag;

View File

@ -177,7 +177,6 @@ int protection_codes[2][8];
*/
struct pmap kernel_pmap_store;
vm_offset_t avail_start; /* PA of first available physical page */
vm_offset_t avail_end; /* PA of last available physical page */
vm_offset_t virtual_avail; /* VA of first avail page (after kernel bss) */
vm_offset_t virtual_end; /* VA of last avail page (end of kernel AS) */
@ -368,7 +367,6 @@ pmap_bootstrap()
kernel_vm_end = NKPT * PAGE_SIZE * NKPTEPG + VM_MIN_KERNEL_ADDRESS -
VM_GATEWAY_SIZE;
avail_start = phys_avail[0];
for (i = 0; phys_avail[i+2]; i+= 2) ;
avail_end = phys_avail[i+1];
count = i+2;

View File

@ -108,7 +108,6 @@ typedef struct pv_entry {
#ifdef _KERNEL
extern vm_offset_t avail_end;
extern vm_offset_t avail_start;
extern vm_offset_t phys_avail[];
extern vm_offset_t virtual_avail;
extern vm_offset_t virtual_end;

View File

@ -199,9 +199,8 @@ struct msgbuf *msgbufp;
vm_offset_t msgbuf_phys;
/*
* Physical addresses of first and last available physical page.
* Physical address of the last available physical page.
*/
vm_offset_t avail_start;
vm_offset_t avail_end;
int pmap_pagedaemon_waken;
@ -773,9 +772,8 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
}
/*
* Calculate the first and last available physical addresses.
* Calculate the last available physical address.
*/
avail_start = phys_avail[0];
for (i = 0; phys_avail[i + 2] != 0; i += 2)
;
avail_end = phys_avail[i + 1];

View File

@ -83,7 +83,6 @@ int pmap_pte_spill(vm_offset_t);
#define vtophys(va) pmap_kextract(((vm_offset_t)(va)))
extern vm_offset_t avail_start;
extern vm_offset_t avail_end;
extern vm_offset_t phys_avail[];
extern vm_offset_t virtual_avail;

View File

@ -199,9 +199,8 @@ struct msgbuf *msgbufp;
vm_offset_t msgbuf_phys;
/*
* Physical addresses of first and last available physical page.
* Physical address of the last available physical page.
*/
vm_offset_t avail_start;
vm_offset_t avail_end;
int pmap_pagedaemon_waken;
@ -773,9 +772,8 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
}
/*
* Calculate the first and last available physical addresses.
* Calculate the last available physical address.
*/
avail_start = phys_avail[0];
for (i = 0; phys_avail[i + 2] != 0; i += 2)
;
avail_end = phys_avail[i + 1];

View File

@ -199,9 +199,8 @@ struct msgbuf *msgbufp;
vm_offset_t msgbuf_phys;
/*
* Physical addresses of first and last available physical page.
* Physical address of the last available physical page.
*/
vm_offset_t avail_start;
vm_offset_t avail_end;
int pmap_pagedaemon_waken;
@ -773,9 +772,8 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend)
}
/*
* Calculate the first and last available physical addresses.
* Calculate the last available physical address.
*/
avail_start = phys_avail[0];
for (i = 0; phys_avail[i + 2] != 0; i += 2)
;
avail_end = phys_avail[i + 1];

View File

@ -90,7 +90,6 @@ void pmap_clear_write(vm_page_t m);
#define vtophys(va) pmap_kextract(((vm_offset_t)(va)))
extern vm_paddr_t avail_start;
extern vm_paddr_t avail_end;
extern struct pmap kernel_pmap_store;
#define kernel_pmap (&kernel_pmap_store)

View File

@ -115,9 +115,8 @@ struct msgbuf *msgbufp;
vm_paddr_t msgbuf_phys;
/*
* Physical addresses of first and last available physical page.
* Physical address of the last available physical page.
*/
vm_paddr_t avail_start;
vm_paddr_t avail_end;
int pmap_pagedaemon_waken;
@ -434,9 +433,8 @@ pmap_bootstrap(vm_offset_t ekva)
}
/*
* Calculate the first and last available physical addresses.
* Calculate the last available physical address.
*/
avail_start = phys_avail[0];
for (i = 0; phys_avail[i + 2] != 0; i += 2)
;
avail_end = phys_avail[i + 1];