Rename ALIGN to EFI_ALIGN
Avoid conflict with other libraries Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
parent
2c47753ad3
commit
593e13f670
@ -29,6 +29,6 @@ typedef struct {
|
|||||||
UINT64 D13;
|
UINT64 D13;
|
||||||
UINT64 D14;
|
UINT64 D14;
|
||||||
UINT64 D15;
|
UINT64 D15;
|
||||||
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
} EFI_ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
||||||
|
|
||||||
#endif /* GNU_EFI_AARCH64_SETJMP_H */
|
#endif /* GNU_EFI_AARCH64_SETJMP_H */
|
||||||
|
@ -16,6 +16,6 @@ typedef struct {
|
|||||||
UINT32 R12;
|
UINT32 R12;
|
||||||
UINT32 R13;
|
UINT32 R13;
|
||||||
UINT32 R14;
|
UINT32 R14;
|
||||||
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
} EFI_ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
||||||
|
|
||||||
#endif /* GNU_EFI_ARM_SETJMP_H */
|
#endif /* GNU_EFI_ARM_SETJMP_H */
|
||||||
|
@ -39,9 +39,13 @@ Abstract:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_EXTENSIONS
|
#ifdef _MSC_EXTENSIONS
|
||||||
#define ALIGN(x) __declspec(align(x))
|
#define EFI_ALIGN(x) __declspec(align(x))
|
||||||
#else
|
#else
|
||||||
#define ALIGN(x) __attribute__((__aligned__(x)))
|
#define EFI_ALIGN(x) __attribute__((__aligned__(x)))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ALIGN
|
||||||
|
#define ALIGN(x) EFI_ALIGN(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Also add a catch-all on __attribute__() for MS compilers */
|
/* Also add a catch-all on __attribute__() for MS compilers */
|
||||||
|
@ -10,6 +10,6 @@ typedef struct {
|
|||||||
UINT32 Ebp;
|
UINT32 Ebp;
|
||||||
UINT32 Esp;
|
UINT32 Esp;
|
||||||
UINT32 Eip;
|
UINT32 Eip;
|
||||||
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
} EFI_ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
||||||
|
|
||||||
#endif /* GNU_EFI_IA32_SETJMP_H */
|
#endif /* GNU_EFI_IA32_SETJMP_H */
|
||||||
|
@ -42,6 +42,6 @@ typedef struct {
|
|||||||
UINT64 Predicates;
|
UINT64 Predicates;
|
||||||
UINT64 LoopCount;
|
UINT64 LoopCount;
|
||||||
UINT64 FPSR;
|
UINT64 FPSR;
|
||||||
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
} EFI_ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
||||||
|
|
||||||
#endif /* GNU_EFI_IA64_SETJMP_H */
|
#endif /* GNU_EFI_IA64_SETJMP_H */
|
||||||
|
@ -18,6 +18,6 @@ typedef struct {
|
|||||||
UINT64 S6;
|
UINT64 S6;
|
||||||
UINT64 S7;
|
UINT64 S7;
|
||||||
UINT64 S8;
|
UINT64 S8;
|
||||||
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
} EFI_ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
||||||
|
|
||||||
#endif /* GNU_EFI_LOONGARCH64_SETJMP_H */
|
#endif /* GNU_EFI_LOONGARCH64_SETJMP_H */
|
||||||
|
@ -29,6 +29,6 @@ typedef struct {
|
|||||||
UINT64 F30;
|
UINT64 F30;
|
||||||
UINT64 F31;
|
UINT64 F31;
|
||||||
#endif
|
#endif
|
||||||
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
} EFI_ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
||||||
|
|
||||||
#endif /* GNU_EFI_MIPS64EL_SETJMP_H */
|
#endif /* GNU_EFI_MIPS64EL_SETJMP_H */
|
||||||
|
@ -35,6 +35,6 @@ typedef struct {
|
|||||||
UINT64 fs9;
|
UINT64 fs9;
|
||||||
UINT64 fs10;
|
UINT64 fs10;
|
||||||
UINT64 fs11;
|
UINT64 fs11;
|
||||||
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
} EFI_ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
||||||
|
|
||||||
#endif /* GNU_EFI_RISCV64_SETJMP_H */
|
#endif /* GNU_EFI_RISCV64_SETJMP_H */
|
||||||
|
@ -17,6 +17,6 @@ typedef struct {
|
|||||||
UINT64 Rip;
|
UINT64 Rip;
|
||||||
UINT64 MxCsr;
|
UINT64 MxCsr;
|
||||||
UINT8 XmmBuffer[160]; // XMM6 - XMM15
|
UINT8 XmmBuffer[160]; // XMM6 - XMM15
|
||||||
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
} EFI_ALIGN(JMPBUF_ALIGN) jmp_buf[1];
|
||||||
|
|
||||||
#endif /* GNU_EFI_X86_64_SETJMP_H */
|
#endif /* GNU_EFI_X86_64_SETJMP_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user