On 03.11.2006, Linus Nielsen Feltzing wrote:

> [EMAIL PROTECTED] wrote:
>> More tweak to ColdFire default exception handler. iRiver
>> reboots on power press but x5 just shuts down. Haven't yet
>> thought much about why or how to make it reboot on x5 if it's
>> possible.

> The X5 shuts down because the KEEP_ACT signal goes inactive
> when the port pins are tri-stated at reset. It's the same with
> H300.

The reset from the UIE handler _does_ work on H300 without
cutting power, I just checked it on mine.

The UIE handler uses a special way to generate a reset: by
starting the coldfire watchdog timer but not servicing it.
This special trick is necessary because system_reboot() doesn't
work correctly when the UIE is entered from the debug interrupt
(i.e. the memory guard feature). This is because the debug
interrupt switches the coldfire into emulator mode, and there
are only 2 ways to get out of emulator mode: by issuing an rte
instruction, or by performing a reset. 

Regards, Jens

Reply via email to