Most modern firmware does NOT clear memory during POST, it takes too long.
Certain compatibility areas are usually cleared (such as the 1st megabyte)
but the rest is
left as is, except for a few read/writes (usually on a megabyte boundary).
The
exception to this rule is ECC systems. They have to be written to make sure
the
ECC information is correct.
SDRAM memory sizing is usually done by reading an EEPROM on the SDRAM DIMM.
The BIOS doesn't need to guess the correct timing values, it simply reads
the EEPROM and programs the memory controller. In the case of a BIOS that
doesn't use EEPROM you might lose data as the BIOS iteratively tries
different memory timings and tests if they work.
I have done work implementing ACPI S3 (suspend-to-RAM) in DOS by simply
hitting
the RESET button and restoring the memory controller settings. The contents
of
RAM have always been valid.
David Christensen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/