This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: warm boot detection


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]