On POST (Power On Self Test) the firmware finds, calculates the size, and verifies system's main memory.