summaryrefslogtreecommitdiff
path: root/inc/ia64
Commit message (Collapse)AuthorAgeFilesLines
* Make VOID a typedefCallum Farmer2023-04-131-1/+1
| | | | | | | 'void' is a type so VOID can be typedef instead of a '#define' to improve compiler output Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
* Make WCHAR and CHAR16 identicalCallum Farmer2023-04-081-9/+5
| | | | | | | | And actually use wchar_t gnu-efi already uses L string literals which are of type wchar_t Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
* Make CHAR8 and similar be defined the same way edk2 does it.Peter Jones2023-03-281-2/+9
| | | | Signed-off-by: Peter Jones <pjones@redhat.com>
* efibind: Fix usage of efi headers from C++ codeAlexander von Gluck IV2019-11-271-1/+1
| | | | | | | | | | * __STDC_VERSION__ is undefined when headers are called from C++ code resulting in not using stdint.h and efibind.h "making a guess" on what they are. extern "C" will not define __STDC_VERSION__. * Always leverage stdint.h on C++. * Honestly, gnu-efi should always use stdint.h, or find a better way to detect it. (or platforms without it need to catch up to 2007)
* Merge /u/esben/gnu-efi/ branch intptr-t-fix into masterNigel Croxon2019-03-221-0/+2
|\ | | | | | | https://sourceforge.net/p/gnu-efi/code/merge-requests/5/
| * Fix for problem with undeclared intptr_t typeEsben Haabendal2019-03-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building gnu-efi with old compilers with pre C90 compilers: In file included from gnu-efi-3.0.9/lib/../inc/efilib.h:25:0, from gnu-efi-3.0.9/lib/lib.h:24, from gnu-efi-3.0.9/lib/dpath.c:25: gnu-efi-3.0.9/lib/dpath.c: In function 'FileDevicePath': gnu-efi-3.0.9/lib/../inc/efilink.h:145:47: error: 'intptr_t' undeclared (first use in this function) #define EFI_FIELD_OFFSET(TYPE,Field) ((UINTN)(intptr_t)(&(((TYPE *) 0)->Field))) Problem introduced with commit a46a62b12b58139c31d4288384808365c4053bf2 (Fix some types gcc doesn't like). Avoid this by adding intptr_t (and uintptr_t) typedefs for builds that does not include stdint.h. Signed-off-by: Esben Haabendal <esben@esben1.localdomain>
* | Redefine jmp_buf to comply with C calling convention.Nigel Croxon2019-03-151-1/+1
|/ | | | | Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
* From: Pete Batard <pete@akeo.ie>Nigel Croxon2015-09-231-1/+3
| | | | | | | | | Subject: [PATCH] Fix MSVC breakage due to GNU align extensions in setjmp * __attribute__((__aligned__(x))), which is used in setjmp, is GNU only => use a macro instead Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>
* From: Pete Batard <pete@akeo.ie>Nigel Croxon2015-09-171-1/+1
| | | | | | | | | | | | Date: Wed, 16 Sep 2015 18:26:28 +0100 Subject: [PATCH] Fix VS2015 warnings * Currently, Visual Studio 2015 generates a lot of warnings such as: gnu-efi\inc\efipciio.h(7): warning C4091: 'typedef ': ignored on left of '_EFI_PCI_IO' when no variable is declared * To address this, gnu-efi should define the INTERFACE_DECL() for MS compilers as it does for GNU Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>
* Turns out we actually need setjmp in one of gnu-efi's prominentNigel Croxon2015-05-141-0/+45
| | | | | | | | | | | | | | users, and it seems to make more sense to put it here than in the application. All of these are derived from the Tiano code, but I re-wrote the x86_64 one because we use the ELF psABI calling conventions instead of the MS ABI calling conventions. Which is to say you probably shouldn't setjmp()/longjmp() between functions with EFIAPI (aka __attribute__((ms_abi))) and those without. Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>
* From: Pete Batard <pete@akeo.ie>Nigel Croxon2015-01-051-19/+25
| | | | | | | | | | | | | | | | | Date: Wed, 10 Dec 2014 21:08:34 +0000 Subject: [PATCH] fixes for MSVC compilation These fixes are needed to address the following error and warnings when compiling the library part using Visual Studio 2013 Community Edition (as in https://github.com/pbatard/uefi-simple): * "lib\x86_64\math.c(49): error C4235: nonstandard extension used : '_asm' keyword not supported on this architecture" * "lib\print.c(98): error C2059: syntax error : '('" due to placement of EFIAPI macro * "lib\cmdline.c(94): warning C4090: 'function' : different 'const' qualifiers" * "lib\smbios.c(25): warning C4068: unknown pragma" * Also update macro definitions in "inc\<arch>\efibind.h" for MSVC Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>
* The gnu-efi-3.0 toplevel subdirectory is really annoying. Kill it.Nigel Croxon2014-11-254-0/+1170
Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>