diff options
author | kato <kato@FreeBSD.org> | 1999-12-26 04:22:27 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1999-12-26 04:22:27 +0000 |
commit | c16ace94c4e9a9cc80f131e888d24f20c2484b2d (patch) | |
tree | f15ceb8db04df1bcd1e9a0db56fb50496c2b86d5 /sys | |
parent | 52fbf4821cae75ebd4e777569b66ea950b102a14 (diff) | |
download | FreeBSD-src-c16ace94c4e9a9cc80f131e888d24f20c2484b2d.zip FreeBSD-src-c16ace94c4e9a9cc80f131e888d24f20c2484b2d.tar.gz |
- Cut down amount of memory in 64MB when BIOS tells the amount of
memory >= 64MB.
- Don't perform destructive memory inspection for 15 - 16MB system
area.
Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
chi@bd.mbn.or.jp (Chiharu Shibata)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/i386/machdep.c | 10 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 89cf0de..cbb3fb7 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -1428,7 +1428,14 @@ getmemsize_pc98(int first) * memory probe. */ if (Maxmem >= 0x4000) +#ifdef PC98 + { + Maxmem = 0x4000; /* XXX */ + speculative_mprobe = TRUE; + } +#else speculative_mprobe = TRUE; +#endif else speculative_mprobe = FALSE; @@ -1479,7 +1486,8 @@ getmemsize_pc98(int first) /* skip system area */ if (target_page>=ptoa(Maxmem_under16M) && target_page < ptoa(4096)) - page_bad = TRUE; + continue; + /* * map page into kernel: valid, read/write, non-cacheable */ diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 89cf0de..cbb3fb7 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -1428,7 +1428,14 @@ getmemsize_pc98(int first) * memory probe. */ if (Maxmem >= 0x4000) +#ifdef PC98 + { + Maxmem = 0x4000; /* XXX */ + speculative_mprobe = TRUE; + } +#else speculative_mprobe = TRUE; +#endif else speculative_mprobe = FALSE; @@ -1479,7 +1486,8 @@ getmemsize_pc98(int first) /* skip system area */ if (target_page>=ptoa(Maxmem_under16M) && target_page < ptoa(4096)) - page_bad = TRUE; + continue; + /* * map page into kernel: valid, read/write, non-cacheable */ |