SW2 support for ISA Memory Devices

This commit is contained in:
Jasmine Iwanek
2022-01-11 20:12:46 -05:00
parent c0be4ce3d5
commit 608905136f
5 changed files with 42 additions and 17 deletions

View File

@@ -598,6 +598,8 @@ dev->frame_addr = 0xE0000;
addr += t;
}
isa_mem_size += dev->total_size - (k >> 10);
/* If EMS is enabled, use the remainder for EMS. */
if (dev->flags & FLAG_EMS) {
/* EMS 3.2 cannot have more than 2048KB per board. */
@@ -1187,6 +1189,9 @@ isamem_reset(void)
{
int k, i;
/* We explicitly set to zero here or bad things happen */
isa_mem_size = 0;
for (i = 0; i < ISAMEM_MAX; i++) {
k = isamem_type[i];
if (k == 0) continue;