mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
Fix GCC build issue
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10517 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3b7e958efd
commit
364aa45efb
@ -189,14 +189,20 @@
|
|||||||
|
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
|
RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu Cortex-A8 --thumb
|
||||||
|
RVCT:*_*_ARM_ARCHASM_FLAGS == --cpu Cortex-A8
|
||||||
|
RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
|
|
||||||
|
GCC:*_*_ARM_ARCHCC_FLAGS == -march=armv7-a -mthumb
|
||||||
|
GCC:*_*_ARM_ARCHASM_FLAGS == -march=armv7-a
|
||||||
|
GCC:*_*_ARM_ARCHDLINK_FLAGS == -arch armv7-a
|
||||||
|
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
|
|
||||||
XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv7 -march=armv7
|
XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv7 -march=armv7
|
||||||
XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv7
|
XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv7
|
||||||
XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv7
|
XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv7
|
||||||
XCODE:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
XCODE:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
|
|
||||||
RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu Cortex-A8 --thumb
|
|
||||||
RVCT:*_*_ARM_ARCHASM_FLAGS == --cpu Cortex-A8
|
|
||||||
RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
|
@ -37,8 +37,7 @@ _ModuleEntryPoint
|
|||||||
orr r0, r0, #0x00f00000 // Enable VPF access (V* instructions)
|
orr r0, r0, #0x00f00000 // Enable VPF access (V* instructions)
|
||||||
mcr p15, 0, r0, c1, c0, 2
|
mcr p15, 0, r0, c1, c0, 2
|
||||||
mov r0, #0x40000000 // Set EN bit in FPEXC
|
mov r0, #0x40000000 // Set EN bit in FPEXC
|
||||||
msr FPEXC,r0
|
mcr p10,#0x7,r0,c8,c0,#0 // msr FPEXC,r0 in ARM assembly
|
||||||
|
|
||||||
|
|
||||||
// Set CPU vectors to start of DRAM
|
// Set CPU vectors to start of DRAM
|
||||||
LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base
|
LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base
|
||||||
|
Loading…
x
Reference in New Issue
Block a user