Resume redux

Mitch Bradley wmb at firmworks.com
Fri Mar 16 06:40:42 EDT 2007


http://dev.laptop.org/~wmb/suspend2.rom

This version works when called from virtual addresses in the Cxxxxxxx 
range.  I.e. call the subroutine at 0xc00f0000.
Pass it the virtual address of the page directory in EAX.  I think the 
right Linux symbol for that is swapper_pg_dir.

The suspend/resume code is mainly in the file cpu/x86/pc/olcp/resume.bth 
in the svn repository.  The svn commit id is 208.

This build has some other new features, such as wireless LAN support and 
selftest diagnostics for several I/O devices.

You can suspend from the OFW prompt by typing:

  ok s

and resume by pressing the power button.

If you like typing a lot, you can spell out "suspend", i.e.

 ok suspend

This version works on both B1 and B2 - at least for me.





More information about the Devel mailing list