Sync up ARMASM and GCC version

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10261 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish 2010-03-17 02:25:41 +00:00
parent 7781f9fe98
commit bff4e9ea4f
2 changed files with 12 additions and 3 deletions

View File

@ -37,11 +37,20 @@ ASM_PFX(_ModuleEntryPoint):
mcr p15, 0, r0, c1, c0, 0 mcr p15, 0, r0, c1, c0, 0
// Set CPU vectors to start of DRAM // Set CPU vectors to start of DRAM
mov r0, #0x80000000 LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base
mcr p15, 0, r0, c12, c0, 0 mcr p15, 0, r0, c12, c0, 0
isb // Sync changes to control registers isb // Sync changes to control registers
/* before we call C code, lets setup the stack pointer in internal RAM*/ // Fill vector table with branchs to current pc (jmp $)
ldr r1, ShouldNeverGetHere
movs r2, #0
FillVectors:
str r1, [r0, r2]
adds r2, r2, #4
cmp r2, #32
bne FillVectors
/* before we call C code, lets setup the stack pointer in internal RAM */
stack_pointer_setup: stack_pointer_setup:
// //

View File

@ -53,7 +53,7 @@ FillVectors
cmp r2, #32 cmp r2, #32
bne FillVectors bne FillVectors
/* before we call C code, lets setup the stack pointer in internal RAM*/ /* before we call C code, lets setup the stack pointer in internal RAM */
stack_pointer_setup stack_pointer_setup
// //