mirror of https://github.com/acidanthera/audk.git
ARM Packages: use GCC_ASM_EXPORT to export functions
This ensures the .type directive is used to mark them as function symbols Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman <brendan.jackman@arm.com> Reviewed-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15506 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
45440744c4
commit
919a3a026c
|
@ -95,11 +95,11 @@
|
||||||
UINT64 Padding;0x328 // Required for stack alignment
|
UINT64 Padding;0x328 // Required for stack alignment
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(ExceptionHandlersStart)
|
GCC_ASM_EXPORT(ExceptionHandlersStart)
|
||||||
ASM_GLOBAL ASM_PFX(ExceptionHandlersEnd)
|
GCC_ASM_EXPORT(ExceptionHandlersEnd)
|
||||||
ASM_GLOBAL ASM_PFX(CommonExceptionEntry)
|
GCC_ASM_EXPORT(CommonExceptionEntry)
|
||||||
ASM_GLOBAL ASM_PFX(AsmCommonExceptionEntry)
|
GCC_ASM_EXPORT(AsmCommonExceptionEntry)
|
||||||
ASM_GLOBAL ASM_PFX(CommonCExceptionHandler)
|
GCC_ASM_EXPORT(CommonCExceptionHandler)
|
||||||
|
|
||||||
.text
|
.text
|
||||||
.align 11
|
.align 11
|
||||||
|
|
|
@ -15,26 +15,26 @@
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntFrq)
|
GCC_ASM_EXPORT(ArmReadCntFrq)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntFrq)
|
GCC_ASM_EXPORT(ArmWriteCntFrq)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntPct)
|
GCC_ASM_EXPORT(ArmReadCntPct)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntkCtl)
|
GCC_ASM_EXPORT(ArmReadCntkCtl)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntkCtl)
|
GCC_ASM_EXPORT(ArmWriteCntkCtl)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntpTval)
|
GCC_ASM_EXPORT(ArmReadCntpTval)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntpTval)
|
GCC_ASM_EXPORT(ArmWriteCntpTval)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntpCtl)
|
GCC_ASM_EXPORT(ArmReadCntpCtl)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntpCtl)
|
GCC_ASM_EXPORT(ArmWriteCntpCtl)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntvTval)
|
GCC_ASM_EXPORT(ArmReadCntvTval)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntvTval)
|
GCC_ASM_EXPORT(ArmWriteCntvTval)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntvCtl)
|
GCC_ASM_EXPORT(ArmReadCntvCtl)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntvCtl)
|
GCC_ASM_EXPORT(ArmWriteCntvCtl)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntvCt)
|
GCC_ASM_EXPORT(ArmReadCntvCt)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntpCval)
|
GCC_ASM_EXPORT(ArmReadCntpCval)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntpCval)
|
GCC_ASM_EXPORT(ArmWriteCntpCval)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntvCval)
|
GCC_ASM_EXPORT(ArmReadCntvCval)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntvCval)
|
GCC_ASM_EXPORT(ArmWriteCntvCval)
|
||||||
ASM_GLOBAL ASM_PFX(ArmReadCntvOff)
|
GCC_ASM_EXPORT(ArmReadCntvOff)
|
||||||
ASM_GLOBAL ASM_PFX(ArmWriteCntvOff)
|
GCC_ASM_EXPORT(ArmWriteCntvOff)
|
||||||
|
|
||||||
ASM_PFX(ArmReadCntFrq):
|
ASM_PFX(ArmReadCntFrq):
|
||||||
mrs x0, cntfrq_el0 // Read CNTFRQ
|
mrs x0, cntfrq_el0 // Read CNTFRQ
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
.text
|
.text
|
||||||
.align 3
|
.align 3
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(SecondariesPenStart)
|
GCC_ASM_EXPORT(SecondariesPenStart)
|
||||||
ASM_GLOBAL SecondariesPenEnd
|
ASM_GLOBAL SecondariesPenEnd
|
||||||
|
|
||||||
ASM_PFX(SecondariesPenStart):
|
ASM_PFX(SecondariesPenStart):
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
.align 2
|
.align 2
|
||||||
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(memcpy)
|
GCC_ASM_EXPORT(memcpy)
|
||||||
|
|
||||||
|
|
||||||
// Taken from Newlib BSD implementation.
|
// Taken from Newlib BSD implementation.
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
.text
|
.text
|
||||||
.align 3
|
.align 3
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(ArmPlatformSecBootAction)
|
GCC_ASM_EXPORT(ArmPlatformSecBootAction)
|
||||||
ASM_GLOBAL ASM_PFX(ArmPlatformSecBootMemoryInit)
|
GCC_ASM_EXPORT(ArmPlatformSecBootMemoryInit)
|
||||||
ASM_GLOBAL ASM_PFX(ArmSecMpCoreSecondariesWrite)
|
GCC_ASM_EXPORT(ArmSecMpCoreSecondariesWrite)
|
||||||
ASM_GLOBAL ASM_PFX(ArmSecMpCoreSecondariesRead)
|
GCC_ASM_EXPORT(ArmSecMpCoreSecondariesRead)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Call at the beginning of the platform boot up
|
Call at the beginning of the platform boot up
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
.text
|
.text
|
||||||
.align 11
|
.align 11
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(PeiVectorTable)
|
GCC_ASM_EXPORT(PeiVectorTable)
|
||||||
|
|
||||||
//============================================================
|
//============================================================
|
||||||
//Default Exception Handlers
|
//Default Exception Handlers
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
.text
|
.text
|
||||||
.align 3
|
.align 3
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(SetupExceptionLevel1)
|
GCC_ASM_EXPORT(SetupExceptionLevel1)
|
||||||
ASM_GLOBAL ASM_PFX(SetupExceptionLevel2)
|
GCC_ASM_EXPORT(SetupExceptionLevel2)
|
||||||
|
|
||||||
// Setup EL1 while in EL1
|
// Setup EL1 while in EL1
|
||||||
ASM_PFX(SetupExceptionLevel1):
|
ASM_PFX(SetupExceptionLevel1):
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
.text
|
.text
|
||||||
.align 3
|
.align 3
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(SecSwitchStack)
|
GCC_ASM_EXPORT(SecSwitchStack)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
.text
|
.text
|
||||||
.align 3
|
.align 3
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(SwitchToNSExceptionLevel1)
|
GCC_ASM_EXPORT(SwitchToNSExceptionLevel1)
|
||||||
ASM_GLOBAL ASM_PFX(enter_monitor_mode)
|
GCC_ASM_EXPORT(enter_monitor_mode)
|
||||||
ASM_GLOBAL ASM_PFX(return_from_exception)
|
GCC_ASM_EXPORT(return_from_exception)
|
||||||
ASM_GLOBAL ASM_PFX(copy_cpsr_into_spsr)
|
GCC_ASM_EXPORT(copy_cpsr_into_spsr)
|
||||||
ASM_GLOBAL ASM_PFX(set_non_secure_mode)
|
GCC_ASM_EXPORT(set_non_secure_mode)
|
||||||
|
|
||||||
// Switch from EL3 to NS-EL1
|
// Switch from EL3 to NS-EL1
|
||||||
ASM_PFX(SwitchToNSExceptionLevel1):
|
ASM_PFX(SwitchToNSExceptionLevel1):
|
||||||
|
|
Loading…
Reference in New Issue