Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: RE: jethead71: firmware/target/coldfire system-coldfire.c,1.2,1.3

RE: jethead71: firmware/target/coldfire system-coldfire.c,1.2,1.3

From: RaeNye <raenye_at_netvision.net.il>
Date: Sat, 04 Nov 2006 04:08:54 +0200

>> Actually, system_reboot() is correct only for iriver.
>> Jmp-ing to 0x4 is utterly wrong in the X5; you should either jmp to
>> 0x0 (the
>> preloader) or to 0x10000 (RB bootloader)

>I find that extremely hard to believe, since vector 0 is the initial stack
pointer.

That explains why

ROM:00000000 1001 move.b d1,d0
ROM:00000002 8000 or.b d0,d0
ROM:00000004 0000 0008 ori.b #8,d0

doesn't make sense...
However, see how the OF does it:

seg018:30EB8C3A reboot: ; DATA
XREF: p_PMU_handle_event+72
seg018:30EB8C3A 2E7C 3100+ movea.l #$31000000,sp
seg018:30EB8C40 207C 0000+ movea.l #8,a0
seg018:30EB8C46 4ED0 jmp (a0)

I wonder what is stored at 0x4, though.

(all asm excerpts are from OF v 2.10-e)
Received on 2006-11-04

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy