git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10200
6f19259b-4bc3-4df7-8a09-
765794883524
-!if DEBUG_TARGET == RELEASE
+!if $(BUILD_TARGETS) == RELEASE
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
!else
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
!else
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
mcr p15, 0, r0, c1, c0, 0\r
\r
// Set CPU vectors to start of DRAM\r
mcr p15, 0, r0, c1, c0, 0\r
\r
// Set CPU vectors to start of DRAM\r
- LoadConstantToReg (FixedPcdGet32(PcdMemoryBase) ,r0) /* memory size arg0 */\r
+ LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base\r
mcr p15, 0, r0, c12, c0, 0\r
isb // Sync changes to control registers\r
\r
mcr p15, 0, r0, c12, c0, 0\r
isb // Sync changes to control registers\r
\r
// Set stack based on PCD values. Need to do it this way to make C code work \r
// when it runs from FLASH. \r
// \r
// Set stack based on PCD values. Need to do it this way to make C code work \r
// when it runs from FLASH. \r
// \r
- LoadConstantToReg (FixedPcdGet32(PcdPrePiStackBase) ,r2) /* stack base arg2 */\r
- LoadConstantToReg (FixedPcdGet32(PcdPrePiStackSize) ,r3) /* stack size arg3 */\r
+ LoadConstantToReg (FixedPcdGet32(PcdPrePiStackBase) ,r2) // stack base arg2 \r
+ LoadConstantToReg (FixedPcdGet32(PcdPrePiStackSize) ,r3) // stack size arg3 \r
add r4, r2, r3\r
\r
//Enter SVC mode and set up SVC stack pointer\r
add r4, r2, r3\r
\r
//Enter SVC mode and set up SVC stack pointer\r
mov r13,r4\r
\r
// Call C entry point\r
mov r13,r4\r
\r
// Call C entry point\r
- LoadConstantToReg (FixedPcdGet32(PcdMemorySize) ,r1) /* memory size arg1 */\r
-// LoadConstantToReg (FixedPcdGet32(PcdMemoryBase) ,r0) Done above \r
- blx CEntryPoint /* Assume C code is thumb */\r
+ LoadConstantToReg (FixedPcdGet32(PcdMemorySize) ,r1) // memory size arg1 \r
+ LoadConstantToReg (FixedPcdGet32(PcdMemoryBase) ,r0) // memory start arg0\r
+ blx CEntryPoint // Assume C code is thumb \r
\r
ShouldNeverGetHere\r
/* _CEntryPoint should never return */\r
\r
ShouldNeverGetHere\r
/* _CEntryPoint should never return */\r
gOmap35xxTokenSpaceGuid.PcdBeagleConsoleUart
gOmap35xxTokenSpaceGuid.PcdBeagleFreeTimer
gOmap35xxTokenSpaceGuid.PcdBeagleConsoleUart
gOmap35xxTokenSpaceGuid.PcdBeagleFreeTimer
+
+ gArmTokenSpaceGuid.PcdCpuVectorBaseAddress