diff options
author | jhb <jhb@FreeBSD.org> | 2014-02-11 22:02:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-02-11 22:02:40 +0000 |
commit | 22ac1edc7b00df49e25d5031c905525c9a0bc11a (patch) | |
tree | 733853697720467252a3c4d85563a6435b13d861 /sys/pc98 | |
parent | 57d1391321eb6f357a02c1d474c129fcdec56f94 (diff) | |
download | FreeBSD-src-22ac1edc7b00df49e25d5031c905525c9a0bc11a.zip FreeBSD-src-22ac1edc7b00df49e25d5031c905525c9a0bc11a.tar.gz |
Don't waste a page of KVA for the boot-time memory test on x86. For amd64,
reuse the first page of the crashdumpmap as CMAP1/CADDR1. For i386,
remove CMAP1/CADDR1 entirely and reuse CMAP3/CADDR3 for the memory test.
Reviewed by: alc, peter
MFC after: 2 weeks
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 730b0eb..b6cdcdc 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -1961,7 +1961,7 @@ getmemsize(int first) phys_avail[pa_indx++] = physmap[0]; phys_avail[pa_indx] = physmap[0]; dump_avail[da_indx] = physmap[0]; - pte = CMAP1; + pte = CMAP3; /* * Get dcons buffer address @@ -1982,7 +1982,7 @@ getmemsize(int first) end = trunc_page(physmap[i + 1]); for (pa = round_page(physmap[i]); pa < end; pa += PAGE_SIZE) { int tmp, page_bad, full; - int *ptr = (int *)CADDR1; + int *ptr = (int *)CADDR3; full = FALSE; /* |