> The solution was to ensure that all the code...was in the CPU cache,
Can you give some details for the idly curious (i.e. me).
My naive implementation would be something like:
; do stuff
jmp A
B: STANDBY
; bring memory back up
jmp C
A: ; shutdown memory
jmp B
C: ; continue as normal
Also, I'm surprised a processor with standby capabilites doesn't do all this in hardware rather than relying on the programmer to write an implementation. You call STANDBY, and the processor itself shuts down memory and then shuts itself down. Comments?