Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Use paddr_t for avail_start and ava...
details: https://anonhg.NetBSD.org/src/rev/ce9d100445b1
branches: trunk
changeset: 533099:ce9d100445b1
user: eeh <eeh%NetBSD.org@localhost>
date: Fri Jun 21 02:57:29 2002 +0000
description:
Use paddr_t for avail_start and avail_end so we can handle machines with
RAM above the 2GB mark.
diffstat:
sys/arch/sparc64/sparc64/pmap.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (43 lines):
diff -r c164de119d6d -r ce9d100445b1 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c Fri Jun 21 02:48:42 2002 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c Fri Jun 21 02:57:29 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.122 2002/06/11 21:10:03 eeh Exp $ */
+/* $NetBSD: pmap.c,v 1.123 2002/06/21 02:57:29 eeh Exp $ */
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
#define HWREF
/*
@@ -296,7 +296,7 @@
static int memh = 0, vmemh = 0; /* Handles to OBP devices */
-int avail_start, avail_end; /* These are used by ps & family */
+paddr_t avail_start, avail_end; /* These are used by ps & family */
static int ptelookup_va __P((vaddr_t va)); /* sun4u */
#if notyet
@@ -2520,16 +2520,16 @@
pa = (pseg_get(pm, va)&TLB_PA_MASK)+(va&PGOFSET);
#ifdef DEBUG
if (pmapdebug & PDB_EXTRACT) {
- pa = ldxa((vaddr_t)&pm->pm_segs[va_to_seg(va)], ASI_PHYS_CACHED);
- printf("pmap_extract: va=%p segs[%ld]=%llx", (void *)(u_long)va, (long)va_to_seg(va), (unsigned long long)pa);
- if (pa) {
- pa = (paddr_t)ldxa((vaddr_t)&((paddr_t*)(u_long)pa)[va_to_dir(va)], ASI_PHYS_CACHED);
- printf(" segs[%ld][%ld]=%lx", (long)va_to_seg(va), (long)va_to_dir(va), (long)pa);
+ npa = ldxa((vaddr_t)&pm->pm_segs[va_to_seg(va)], ASI_PHYS_CACHED);
+ printf("pmap_extract: va=%p segs[%ld]=%llx", (void *)(u_long)va, (long)va_to_seg(va), (unsigned long long)npa);
+ if (npa) {
+ npa = (paddr_t)ldxa((vaddr_t)&((paddr_t*)(u_long)npa)[va_to_dir(va)], ASI_PHYS_CACHED);
+ printf(" segs[%ld][%ld]=%lx", (long)va_to_seg(va), (long)va_to_dir(va), (long)npa);
}
- if (pa) {
- pa = (paddr_t)ldxa((vaddr_t)&((paddr_t*)(u_long)pa)[va_to_pte(va)], ASI_PHYS_CACHED);
+ if (npa) {
+ npa = (paddr_t)ldxa((vaddr_t)&((paddr_t*)(u_long)npa)[va_to_pte(va)], ASI_PHYS_CACHED);
printf(" segs[%ld][%ld][%ld]=%lx", (long)va_to_seg(va),
- (long)va_to_dir(va), (long)va_to_pte(va), (long)pa);
+ (long)va_to_dir(va), (long)va_to_pte(va), (long)npa);
}
printf(" pseg_get: %lx\n", (long)pa);
}
Home |
Main Index |
Thread Index |
Old Index