Patch #5789 by Mike Sevakis - Proper shut down of Coldfire targets

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10510 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2006-08-10 13:47:22 +00:00
parent d158da2f00
commit f64ad7d8f3
2 changed files with 3 additions and 5 deletions

View file

@ -59,9 +59,8 @@ bool ide_powered(void)
void power_off(void)
{
set_irq_level(HIGHEST_IRQ_LEVEL);
and_l(~0x00000008, &GPIO_OUT);
while(1)
yield();
and_l(~0x00000008, &GPIO_OUT); /* Set KEEPACT low */
asm("halt");
}
#else