Dreamcast bootup failed fix

Jonathan Larmour jifl@eCosCentric.com
Thu Apr 29 06:09:00 GMT 2004


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



More information about the Ecos-patches mailing list