Fixed DRB DIMM splitting (AMI Apollo now boots with 8 MB RAM), and extended the MB500N workaround to MR BIOS'es as well.
This commit is contained in:
@@ -518,7 +518,7 @@ i4x0_write(int func, int addr, uint8_t val, void *priv)
|
||||
case INTEL_430FX:
|
||||
case INTEL_430VX:
|
||||
case INTEL_430TX:
|
||||
if (!strcmp(machine_get_internal_name(), "mb500n"))
|
||||
if (!strcmp(machine_get_internal_name(), "mb500n") || (strstr(machine_get_internal_name(), "mr") != NULL))
|
||||
regs[0x52] = val;
|
||||
else
|
||||
regs[0x52] = (regs[0x52] & 0xf4) | (val & 0x0b);
|
||||
|
@@ -136,7 +136,7 @@ spd_populate(uint16_t *rows, uint8_t slot_count, uint16_t total_size, uint16_t m
|
||||
/* Look for a module to split. */
|
||||
split = 0;
|
||||
for (row = 0; row < slot_count; row++) {
|
||||
if ((rows[row] < (min_module_size << 1)) || (rows[row] != (1 << log2i(rows[row]))))
|
||||
if ((rows[row] <= (min_module_size << 1)) || (rows[row] != (1 << log2i(rows[row]))))
|
||||
continue; /* no module here, module is too small to be split, or asymmetric module */
|
||||
|
||||
/* Find next empty row. */
|
||||
|
Reference in New Issue
Block a user