X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=inline;f=MdePkg%2FInclude%2FArm%2FProcessorBind.h;h=f5a839de0d80ca22394263b08f99db55998454e1;hb=d22ebbe39fcf3a7462492667345dabc401765454;hp=a68b30b811dcefcf69087faa6b21d103065a713c;hpb=e7cb469e3aa3d5b05953a25f1ef40aea89d058c3;p=mirror_edk2.git
diff --git a/MdePkg/Include/Arm/ProcessorBind.h b/MdePkg/Include/Arm/ProcessorBind.h
index a68b30b811..f5a839de0d 100644
--- a/MdePkg/Include/Arm/ProcessorBind.h
+++ b/MdePkg/Include/Arm/ProcessorBind.h
@@ -1,7 +1,7 @@
/** @file
Processor or Compiler specific defines and types for ARM.
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -42,7 +42,7 @@
typedef unsigned char BOOLEAN;
typedef unsigned char UINT8;
typedef char CHAR8;
- typedef char INT8;
+ typedef signed char INT8;
#else
//
// Assume standard ARM alignment.
@@ -58,7 +58,7 @@
typedef unsigned char BOOLEAN;
typedef unsigned char UINT8;
typedef char CHAR8;
- typedef char INT8;
+ typedef signed char INT8;
#endif
///
@@ -118,11 +118,25 @@ typedef INT32 INTN;
/// CodeSourcery 2010.09 started requiring the .type to function properly
///
#define INTERWORK_FUNC(func__) .type ASM_PFX(func__), %function
+
+ #define GCC_ASM_EXPORT(func__) \
+ .global _CONCATENATE (__USER_LABEL_PREFIX__, func__) ;\
+ .type ASM_PFX(func__), %function
+
+ #define GCC_ASM_IMPORT(func__) \
+ .extern _CONCATENATE (__USER_LABEL_PREFIX__, func__)
+
#else
//
// .type not supported by Apple Xcode tools
//
- #define INTERWORK_FUNC(func__)
+ #define INTERWORK_FUNC(func__)
+
+ #define GCC_ASM_EXPORT(func__) \
+ .globl _CONCATENATE (__USER_LABEL_PREFIX__, func__) \
+
+ #define GCC_ASM_IMPORT(name)
+
#endif
#endif
@@ -139,3 +153,5 @@ typedef INT32 INTN;
#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)
#endif
+
+