[ECOS] warm boot detection
Jonathan Larmour
jifl@eCosCentric.com
Mon Jun 23 16:05:00 GMT 2003
Aaron Richardson wrote:
> Is there some way that I can detect if the platform has been cold booted or
> warm booted? It would be nice to avoid initializing several things based on
> this. The SDRAM scrubbing and any memory testing could be skipped.
Normally people simply rely on the HAL startup type (ROM/RAM etc.) to
indicate whether this instance should do the initialization. If you mean a
non-eCos program may have done the init on the other hand...
> Also any
> chips that need to be skipped during a warm boot could be(I have a 21555 pci
> bridge that needs to be skipped).
Surely the best thing is to look at some register in the PCI BIOS to see
if it's already been initialized?
Or since this is an application specific customisation, just add a bit of
memory at a common address. Look at how hal_dram_size is treated in the
ARM arch HAL for example. Just write a magic number into that address when
booted for the first time and use that to test if it's already been booted
before.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list