[H8-ML(1151)] Re: gdb でのデバッグ
From: karasawa <mak@xxxxxxxxxxxxxx>
Date: 2001年07月11日(水)14時46分26秒
からさわです。

funaki> 了解. で, その ldscript の MEMORY {} はどうなってます?
funaki> __main() 突入時の sp (0xffef8) は MEMORY {} の
funaki> 指定に違反していませんか. 
funaki> 
funaki> 		-- funaki

MEMORY
{
        /* 0xc4 is a magic entry.  We should have the linker just
           skip over it one day... */
        vectors : o = 0x000000, l = 0x1ff
        rom     : o = 0x000200, l = 0x1fe00
        ram     : o = 0x0fef10, l = 0x1000
        /* The stack starts at the top of main ram.  */
        topram  : o = 0x0ffefc, l = 0x4
        /* At the very to of the address space is the 8-bit area.  */
        eight   : o = 0x0fff00, l = 0x100
}
SECTIONS
{
.stack (NOLOAD) : {
         _stack = . ;
        *(.stack)
        }  > topram
}

ということになっています。
スタートアップルーチン_startからjsr     @___mainと呼ばれているので
0xffef8まではあっていると判断していました。
また,0xffef8には0x21e(上記jsrの次のアドレス)が入っています。

-- 
karasawa <mak@xxxxxxxxxxxxxx>

スレッド概略
[1150(R)](起点)
 └[表示中]
   ├[1152(1)]
   └[1154(2)]


投稿順に移動
[←前の記事へ(P)]
[→次の記事へ(N)]


リスト表示へ
[このスレッド(T)]
[本記事の前後(L)]