Bootloader(Vivi)源代碼
Bootloader(Vivi)源代碼
----基于S3C2410處理器
完成含依賴于CPU的體系結構硬件初始化的代碼,包括禁止中斷、初始化串口、復制自身到RAM等。相關代碼集中在head.S(\vivi\arch\s3c2410目錄下):
Head.S:
#include "config.h"
#include "linkage.h"
#include "machine.h"
@ Start of executable code
ENTRY(_start)
ENTRY(ResetEntryPoint)
@
@ Exception vector table (physical address = 0x00000000) ;異常向量表物理地址
@
@0x00: Reset ;復位
b Reset
@ 0x04: Undefined instruction exception ;未定義的指令異常
UndefEntryPoint:
b HandleUndef
@0x08: Software interrupt exception ;軟件中斷異常
SWIEntryPoint: b HandleSWI
@ 0x0c: Prefetch Abort (Instruction Fetch Memory Abort) ;內存操作異常
PrefetchAbortEnteryPoint: b HandlePrefetchAbort
@ 0x10: Data Access Memory Abort ;數據異常
DataAbortEntryPoint: b HandleDataAbort
@0x14: Not used ;未使用
NotUsedEntryPoint: b HandleNotUsed
@ 0x18: IRQ(Interrupt Request) exception ;慢速中斷處理
IRQEntryPoint: b HandleIRQ
@ 0x1c: FIQ(Fast Interrupt Request) exception ;快速中斷處理
FIQEntryPoint: b HandleFIQ
@
@ VIVI magics
非常好我支持^.^
(5) 100%
不好我反對
(0) 0%