This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Dreamcast bootup failed fix
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Yoshinori Sato <ysato at users dot sourceforge dot jp>
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: Thu, 29 Apr 2004 07:09:29 +0100
- Subject: Re: Dreamcast bootup failed fix
- References: <m2fzawazy2.wl%ysato@users.sourceforge.jp>
Yoshinori Sato wrote:
Dreamcast cannot boot by some problems.
1. Because definitions of CYG_HAL_STARTUP is illegal,
cannot form jmp to reset_platform justly.
2. IPL starts execution from 0x8c010000, but cannot start
normally because _reset is 0x8c010200.
Correct a problem with this patch.
Hi Yoshinori,
This patch is mostly okay, except for this change to vectors.S:
+#ifdef CYGPKG_HAL_SH_SH7750_DREAMCAST
+#------------------------------------------------------------------------------
+# Dreamcast CD-ROM Boot entry
+ .section .entry,"ax"
+ .org 0
+FUNC_START(_dc_entry)
+ mov.l $reset,r0
+ jmp @r0
+ nop
+ .align 2
+$reset:
+ .long CYG_LABEL_DEFN(_reset)
+#endif
We want to keep platform specific stuff out of vectors.S. Can you instead
add a little .S file in your platform HAL to include this section? You
would then use compile -library=libextras.a in the CDL file to force its
inclusion in the program image.
I would do it myself, but I'd prefer if it were tested.
Thanks,
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine