diff options
author | alc <alc@FreeBSD.org> | 2004-04-11 06:02:24 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-04-11 06:02:24 +0000 |
commit | 0f6d9cd13e406c8f6a0d8a3b06e847147886d6e9 (patch) | |
tree | 9a1205fba722c62a011c83ca548bab8f005f523b /sys/powerpc | |
parent | e768e0d54f96ff401447c2949c417f61eb6e7301 (diff) | |
download | FreeBSD-src-0f6d9cd13e406c8f6a0d8a3b06e847147886d6e9.zip FreeBSD-src-0f6d9cd13e406c8f6a0d8a3b06e847147886d6e9.tar.gz |
Remove avail_end. It is not used.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/mmu_oea.c | 8 | ||||
-rw-r--r-- | sys/powerpc/include/pmap.h | 1 | ||||
-rw-r--r-- | sys/powerpc/powerpc/mmu_oea.c | 8 | ||||
-rw-r--r-- | sys/powerpc/powerpc/pmap.c | 8 |
4 files changed, 3 insertions, 22 deletions
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c index b71da92..3a32f17 100644 --- a/sys/powerpc/aim/mmu_oea.c +++ b/sys/powerpc/aim/mmu_oea.c @@ -198,11 +198,6 @@ int pmap_bootstrapped = 0; struct msgbuf *msgbufp; vm_offset_t msgbuf_phys; -/* - * Physical address of the last available physical page. - */ -vm_offset_t avail_end; - int pmap_pagedaemon_waken; /* @@ -776,8 +771,7 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend) */ for (i = 0; phys_avail[i + 2] != 0; i += 2) ; - avail_end = phys_avail[i + 1]; - Maxmem = powerpc_btop(avail_end); + Maxmem = powerpc_btop(phys_avail[i + 1]); /* * Allocate virtual address space for the message buffer. diff --git a/sys/powerpc/include/pmap.h b/sys/powerpc/include/pmap.h index f565d7d..4a80e18 100644 --- a/sys/powerpc/include/pmap.h +++ b/sys/powerpc/include/pmap.h @@ -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_end; extern vm_offset_t phys_avail[]; extern vm_offset_t virtual_avail; extern vm_offset_t virtual_end; diff --git a/sys/powerpc/powerpc/mmu_oea.c b/sys/powerpc/powerpc/mmu_oea.c index b71da92..3a32f17 100644 --- a/sys/powerpc/powerpc/mmu_oea.c +++ b/sys/powerpc/powerpc/mmu_oea.c @@ -198,11 +198,6 @@ int pmap_bootstrapped = 0; struct msgbuf *msgbufp; vm_offset_t msgbuf_phys; -/* - * Physical address of the last available physical page. - */ -vm_offset_t avail_end; - int pmap_pagedaemon_waken; /* @@ -776,8 +771,7 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend) */ for (i = 0; phys_avail[i + 2] != 0; i += 2) ; - avail_end = phys_avail[i + 1]; - Maxmem = powerpc_btop(avail_end); + Maxmem = powerpc_btop(phys_avail[i + 1]); /* * Allocate virtual address space for the message buffer. diff --git a/sys/powerpc/powerpc/pmap.c b/sys/powerpc/powerpc/pmap.c index b71da92..3a32f17 100644 --- a/sys/powerpc/powerpc/pmap.c +++ b/sys/powerpc/powerpc/pmap.c @@ -198,11 +198,6 @@ int pmap_bootstrapped = 0; struct msgbuf *msgbufp; vm_offset_t msgbuf_phys; -/* - * Physical address of the last available physical page. - */ -vm_offset_t avail_end; - int pmap_pagedaemon_waken; /* @@ -776,8 +771,7 @@ pmap_bootstrap(vm_offset_t kernelstart, vm_offset_t kernelend) */ for (i = 0; phys_avail[i + 2] != 0; i += 2) ; - avail_end = phys_avail[i + 1]; - Maxmem = powerpc_btop(avail_end); + Maxmem = powerpc_btop(phys_avail[i + 1]); /* * Allocate virtual address space for the message buffer. |