Fix issue with CodeSourcery gcc requiring assembly functions to have a .type define inorder to support interworking (calling from thumb(C code) to ARM code (hadn written assembly). We had to add a macro as the .type directive is not supported, or needed, by Xcode. All ARM .S files need to be updated.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11167 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -16,7 +16,8 @@
|
||||
|
||||
.text
|
||||
.p2align 2
|
||||
.globl _GetInterruptState
|
||||
.globl ASM_PFX(GetInterruptState)
|
||||
INTERWORK_FUNC(GetInterruptState)
|
||||
|
||||
#/**
|
||||
# Retrieves the current CPU interrupt state.
|
||||
@@ -35,7 +36,7 @@
|
||||
# VOID
|
||||
# );
|
||||
#
|
||||
_GetInterruptState:
|
||||
ASM_PFX(GetInterruptState):
|
||||
mrs R0, CPSR
|
||||
tst R0, #0x80 @Check if IRQ is enabled.
|
||||
moveq R0, #1
|
||||
|
Reference in New Issue
Block a user