Fixed extention memory check routine.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
This commit is contained in:
Yoshihiro Takahashi 2000-10-28 11:16:42 +00:00
parent de103326a4
commit 12f1a08005
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67786
3 changed files with 5 additions and 4 deletions

View File

@ -1543,7 +1543,7 @@ getmemsize(int first)
/*
* Certain 'CPU accelerator' supports over 16MB memory on the machines
* whose BIOS doesn't store true size.
* To support this, we don't trust BIOS values if Maxmem < 16MB (0x1000
* To support this, we don't trust BIOS values if Maxmem <= 16MB (0x1000
* pages) - which is the largest amount that the OLD PC-98 can report.
*
* OK: PC-9801NS/R(9.6M)
@ -1551,7 +1551,7 @@ getmemsize(int first)
* OK: PC-9821Ap(14.6M)+EUA-T(8M)+Cyrix 5x86-100
* NG: PC-9821Ap(14.6M)+EUA-T(8M)+AMD DX4-100 -> freeze
*/
if (Maxmem < 0x1000) {
if (Maxmem <= 0x1000) {
int tmp, page_bad;
page_bad = FALSE;

View File

@ -1543,7 +1543,7 @@ getmemsize(int first)
/*
* Certain 'CPU accelerator' supports over 16MB memory on the machines
* whose BIOS doesn't store true size.
* To support this, we don't trust BIOS values if Maxmem < 16MB (0x1000
* To support this, we don't trust BIOS values if Maxmem <= 16MB (0x1000
* pages) - which is the largest amount that the OLD PC-98 can report.
*
* OK: PC-9801NS/R(9.6M)
@ -1551,7 +1551,7 @@ getmemsize(int first)
* OK: PC-9821Ap(14.6M)+EUA-T(8M)+Cyrix 5x86-100
* NG: PC-9821Ap(14.6M)+EUA-T(8M)+AMD DX4-100 -> freeze
*/
if (Maxmem < 0x1000) {
if (Maxmem <= 0x1000) {
int tmp, page_bad;
page_bad = FALSE;

View File

@ -147,6 +147,7 @@ pc98_getmemsize(unsigned *base, unsigned *ext, unsigned *under16)
if (over16 > 0) {
*ext = (16 + over16) * 1024;
}
*ext -= 1024; /* subtract base memory space */
}
/*