Re: "Non-volatile" OS ?



"David R Brooks" <davebXXX@xxxxxxxxxxxx> wrote in message
news:5s9vg1hfn632quuc2ijf1kj63ifpul3pgg@xxxxxxxxxx
>I built such a system many years ago, on a smaller scale: Z80 with
> 64kB. Running a proprietary OS, similar to CP/M.
>
> The key was to define two additional device driver functions:
> "emergency stop" & "resume".

Similarly, I've used a warm-start system that looks like:
- on failing power, save context, and shut-down cleanly
- on start-up and stable power, re-initialise hardware, then restore
context if possible (validated etc); else do hard restart

Which seems to be what the OP wants. The difficulty is in defining
"context", and validating that context at power-up.

With a dedicated product, it's easy enough - decide which parameters/states
are expensive to restart, and store these at power-down in non-vol memory.
Do some sanity-checks at power-up, and you're done.

With a general-purpose RTOS, if you're trying to keep the RTOS task states
during power-down, it's a different ballgame, and I'm not convinced it's
either desirable or necessary as a general OS feature - the *actual*
physical context may be entirely different when the system wakes up,
seconds, hours, years later. Hardware will need re-initing anyway. Seems to
me better to store "hints" as to initial context, than to depend on an OS to
(effectively) pick up after an indefinite pause in a now-different hardware
environment with no insight into what's changed.

YMMV.

Steve
http://www.fivetrees.com


.



Relevant Pages

  • pull request: wireless-2.6 2009-10-13
    ... context problem, a related documentation change, and a minor build ... fix logic error ibss merge bssid check ... single hardware. ...
    (Linux-Kernel)
  • Re: Update your Mac Mini
    ... Mac users having "no choices" in hardware. ... Seeing how I referenced the context, ... Completely true - most users hardly install software, ... even a network connection - it is seen as defective and even crippled. ...
    (comp.sys.mac.advocacy)
  • Re: New DRM driver model - gets rid of DRM() macros!
    ... but it's a widely distributed bug. ... context switching mechanisms to cover a variety of hardware cases. ... None of the DRI drivers have attempted ...
    (Linux-Kernel)
  • Re: Overloading procedures with Float and Long_Float types
    ... >software if the implementation is software) so, it's actually good design as ... graphic context, no matter whether it is a hardware or sofware one. ... would never use both float and double, ...
    (comp.lang.ada)
  • Re: Any way to protect code from decompilers?
    ... people will decompile it and figure out exactly what was done and then ... unless you are the maker of the operating system, and hardware. ... do this via tilt bits, via IIRC their "trusted computing" initiative. ... Decompilers lose the real value of any code -- the context. ...
    (comp.programming)