From: Fabio G. <fg...@ti...> - 2002-03-20 10:42:17
|
Hi, how you can easily understand, I'm bot an expert but I'd like to understand more. Following the suggestion of Stuart Menefy, I'm starting from sesh3 version of sh-ipl+g for booting my card. I have two question: 1) to make working the sh-stub necessarely I need to execute : mov.l RTCSR_A,r1 /* RTCSR Address */ mov.l RTCSR_D,r0 /* RTCSR Data */ mov.w r0,@r1 mov.l RTCNT_A,r1 /* RTCNT Address */ mov.l RTCNT_D,r0 /* RTCNT Data */ mov.w r0,@r1 mov.l RTCOR_A,r1 /* RTCOR Address */ mov.l RTCOR_D,r0 /* RTCOR Data */ mov.w r0,@r1 mov.l RFCR_A,r1 /* RFCR Address */ mov.l RFCR_D,r0 /* RFCR Data */ mov.w r0,@r1 /* Clear reflesh counter */ /* Wait DRAM refresh 8 times */ mov.l RFCR_A,r1 /* RFCR Address */ mov #8,r3 1: mov.w @r1,r0 extu.w r0,r2 cmp/hi r3,r2 bf 1b mov.l SDMR3_A,r1 /* Set SDRAM mode */ mov #0,r0 mov.b r0,@r1 I think so because I need SDRAM. 2) what's the meaning of : mov.l BOOT_CONFIG_WORD,r1 mov.w @r1,r0 exts.b r0,r0 cmp/eq #0xde,r0 ! MAGIC # for "doDEs" bf 1f mov.l 0f,r5 mov.l 0f,r6 mov.l 0f,r7 bra 1f nop .align 2 0: .long 0xbabeface 1: rts nop Thanks a lot. |