打印

arm920T的boot程序例子求教

[复制链接]
1486|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
blue_214|  楼主 | 2007-6-21 11:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
#define _TEXT_                          AREA Text, CODE, READONLY
#define _ENTRY_                         ENTRY
#define _IMPORT_                        IMPORT
//*****************************************************************************
//
// The read-only code area.
//
//*****************************************************************************
    _TEXT_

    //
    // The C main entry.
    //
    _IMPORT_    main
    
    //
    // This is the entry point of the program.
    //
    _ENTRY_
    
    //
    // This is the interrupt vector table.
    // Relative address because of uncertain SDRAM base address.
    //
    add        pc, pc, _CONST_ 0x38
    ldr        pc, [pc, _CONST_ 0x18]
    ldr        pc, [pc, _CONST_ 0x18]
    ldr        pc, [pc, _CONST_ 0x18]
    ldr        pc, [pc, _CONST_ 0x18]
    ldr        pc, [pc, _CONST_ 0x18]
    ldr        pc, [pc, _CONST_ 0x18]
    ldr        pc, [pc, _CONST_ 0x18]
    
jump_table _LABEL_
    _WORD_    0x00000000
    _WORD_    0x00000000 + 0x04
    _WORD_    0x00000000 + 0x08
    _WORD_    0x00000000 + 0x0c
    _WORD_    0x00000000 + 0x10
    _WORD_    0x00000000 + 0x14
    _WORD_    0x00000000 + 0x18
    _WORD_    0x00000000 + 0x1c


以上是boot程序的例子,这是init.s开始的一段,大致是建立向量表,但是前面的几个ldr,到底是在干什么啊??这程序到底什么意思啊??不甚了了,还请高人不吝赐教!!

相关帖子

沙发
blue_214|  楼主 | 2007-6-21 13:15 | 只看该作者

d

d

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

3

帖子

0

粉丝