Re:How a computer boots up
by samaraga on Wednesday April 11, 2012 @01:02PM
(#3828442)
But what will be the procedure when the computer is booted for the very first time(out of the factory, anew)?
[ Parent
| on HN ]
It will run whatever is in the flash chip. That one is generally written to outside the system's control.
On modern PC mainboards with SPI flash (8 pins), there's often a set of pins (also 8) in close proximity to the flash chip - attach an external flasher to that, and you can write the flash while the PC is turned off.
The alternative would be to write the flash before it's put on the board, but which method is chosen is an implementation detail.
Re:How a computer boots up
by carguy1983 on Wednesday April 11, 2012 @01:32PM
(#3828620)
You're thinking about 10 steps ahead of this guy. He's just confused about the 'reset' vector being hit even when the computer is NOT explicitly reset, just when it's turned on for the first time, or powered on after being off.
Re:How a computer boots up
by chocolatebunny on Wednesday April 11, 2012 @01:54PM
(#3828730)
The chips are programmed before they are put on the board.
Re:How a computer boots up
by carguy1983 on Wednesday April 11, 2012 @01:29PM
(#3828603)
From wikipedia:
That is to say, the reset vector is a pointer or address where the CPU should always begin as soon as it is able to execute instructions.
In other words, people who have lots of experience in this stuff gloss over the fact that "reset vector" doesn't mean reset at all, it actually means "whenever it's turned on, it jumps to this address and starts executing instructions".