[flashrom] [PATCH] register_shutdown for execution on programmer shutdown
flashrom at mkarcher.dialup.fu-berlin.de
Sat Feb 13 23:35:01 CET 2010
Am Samstag, den 13.02.2010, 17:22 +0100 schrieb Anders Juel Jensen:
> > and will be executed in reverse registration order directly before
> > calling the programmer-specific shutdown() function. It is recommended
> > to have shutdown() only disable programmer/hardware access and leave all
> > code path sensitive shutdown to functions registered with
> > register_shutdown().
> > If in doubt, consult man atexit.
> If i read this right i am going to need a wakeup() function too.. otherwise i
> will be left with a system with no keyboard, mouse, power button and
> *automatic fan control*.. i damn nearly fried my CPU when I played with this
No, you don't read it correctly. What we call "shutdown" function is a
function that is used to shut down the flashing process, so it is a wake
up function for the EC that had to be shut down when we initialized the
You put the b4/ff/read sequence into the board_enable function, and
register a shutdown function that sends fb/ff.
More information about the flashrom