b82e6b6f | 21-Jul-2020 |
Kagurazaka Kotori <kagurazakakotori@gmail.com> |
Add Simple Text Input Ex Protocol support
Signed-off-by: Kagurazaka Kotori <kagurazakakotori@gmail.com> |
d857a968 | 09-May-2020 |
Pete Batard <pete@akeo.ie> |
Add SMBIOS 3.0 table support
Also fix some small whitespace issues. |
d34132e6 | 09-Jan-2019 |
Nigel Croxon <ncroxon@redhat.com> |
* Fixed typeo lib/error.c EFI_WARN_UNKNOWN_GLYPH definition. On couple of locations in runtime string library (rtstr.c) there are calls to non-runtime variant of StrLen function. * Another issue is w
* Fixed typeo lib/error.c EFI_WARN_UNKNOWN_GLYPH definition. On couple of locations in runtime string library (rtstr.c) there are calls to non-runtime variant of StrLen function. * Another issue is with formatting 1394 paths. The F1394_DEVICE_PATH::Guid is formatted as %g, but 1394 GUID is 8 byte integer, not EFI_GUID and therefore should be formatted as e.g. %016lx (as edk2 does). * Beyond what's mentioned above, changed the format of the harddrive path, so it's in line with edk2 format and spec (2.7 errata A, chapter 10.6.1.6, table 102).
Signed-off-by: Nigel Croxon <ncroxon@redhat.com> Signed-off-by: manison <manison@users.sf.net>
show more ...
|
5bb5032f | 09-Oct-2018 |
Gary Lin <glin@suse.com> |
Set '\0' properly in StrnCpy()
The arguments to SetMem() were wrong. Besides, SetMem() should start at "Dest + Size" since "Size" will be smaller than "Len" if they are not equal.
Signed-off-by: Ga
Set '\0' properly in StrnCpy()
The arguments to SetMem() were wrong. Besides, SetMem() should start at "Dest + Size" since "Size" will be smaller than "Len" if they are not equal.
Signed-off-by: Gary Lin <glin@suse.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
ba250504 | 11-Oct-2018 |
Gary Lin <glin@suse.com> |
Implement StrnCat() without StrnCpy()
StrnCpy() doesn't guarantee the dest string will be null-terminated, so we shouldn't use StrnCpy().
Signed-off-by: Gary Lin <glin@suse.com> Signed-off-by: Nige
Implement StrnCat() without StrnCpy()
StrnCpy() doesn't guarantee the dest string will be null-terminated, so we shouldn't use StrnCpy().
Signed-off-by: Gary Lin <glin@suse.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
6058ffcd | 11-Oct-2018 |
Gary Lin <glin@suse.com> |
Set '\0' properly in StpnCpy()
The arguments to SetMem() were wrong. Besides, SetMem() should start at "Dest + Size" since "Size" will be smaller than "Len" if they are not equal.
Signed-off-by: Ga
Set '\0' properly in StpnCpy()
The arguments to SetMem() were wrong. Besides, SetMem() should start at "Dest + Size" since "Size" will be smaller than "Len" if they are not equal.
Signed-off-by: Gary Lin <glin@suse.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
85f1c797 | 24-Apr-2018 |
Pete Batard <pete@akeo.ie> |
Fix conversion from 'UINTN' to 'UINT8' warnings
* MSVC generates two of the following in rtstr.c: warning C4244: 'function': conversion from 'UINTN' to 'UINT8', possible loss of data |
28793041 | 13-Mar-2018 |
Peter Jones <pjones@redhat.com> |
Add %D to print device paths
Add %D to print device paths.
Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com> |
9485c65f | 13-Mar-2018 |
Peter Jones <pjones@redhat.com> |
gnu-efi: add some more common string functions.
This adds bounded string helper functions:
StrnLen() StrnCpy() StrnCat() StpnCpy()
And the unbounded function StpCpy().
Signed-off-by: Peter Jones
gnu-efi: add some more common string functions.
This adds bounded string helper functions:
StrnLen() StrnCpy() StrnCat() StpnCpy()
And the unbounded function StpCpy().
Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
5abc3858 | 13-Mar-2018 |
Peter Jones <pjones@redhat.com> |
Fix another place clang complains about
Fix another place clang complains about.
Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com> |
0e6995a9 | 28-Jan-2018 |
Sergei Trofimovich <slyfox@gentoo.org> |
gnu-efi: fix lib/ia64/setjmp.S IA-64 build failure
The build failed as: lib/ia64/setjmp.S:171: Error: Unknown opcode `ldf.nt1 f26=[r10],8' lib/ia64/setjmp.S:178: Error: Operand 1 of `ldf.fill.nt
gnu-efi: fix lib/ia64/setjmp.S IA-64 build failure
The build failed as: lib/ia64/setjmp.S:171: Error: Unknown opcode `ldf.nt1 f26=[r10],8' lib/ia64/setjmp.S:178: Error: Operand 1 of `ldf.fill.nt1' should be a floating-point register
The change syncs longjmp definition with edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/setjmp.s pulling in: - branch in the end of function - registers used wrong instruction for float restore
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
show more ...
|
d039cd62 | 10-Jan-2018 |
Nigel Croxon <ncroxon@redhat.com> |
Currently we have DivU64x32 on ia32, but it tries to call __umoddi3 and __udivdi3 from libgcc, which we don't have. This fixes it to use our implementation in that case.
Signed-off-by: Peter Jones <
Currently we have DivU64x32 on ia32, but it tries to call __umoddi3 and __udivdi3 from libgcc, which we don't have. This fixes it to use our implementation in that case.
Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
b1d426ce | 06-Nov-2017 |
Nigel Croxon <ncroxon@redhat.com> |
Move memcpy/memset definition to global init.c
Following up on previous patch, I think we should move memcpy/memset definitions to the global init.c, since MSVC does also inserts calls to memset/mem
Move memcpy/memset definition to global init.c
Following up on previous patch, I think we should move memcpy/memset definitions to the global init.c, since MSVC does also inserts calls to memset/memcpy for the x86_32 platform, even when disabling standard libraries and intrinsics.
All in all, it looks like, for all platforms, we should assume that a compiler may still insert these calls regardless.
Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
39ce220c | 06-Nov-2017 |
Nigel Croxon <ncroxon@redhat.com> |
Make sure stdint.h is always used with MSVC on ARM/ARM64, since all the versions of Visual Studio that support ARM or ARM64 have that header. Without this, uint64_t would be defined to unsigned long,
Make sure stdint.h is always used with MSVC on ARM/ARM64, since all the versions of Visual Studio that support ARM or ARM64 have that header. Without this, uint64_t would be defined to unsigned long, which is 32-bits in the Microsoft world.
Also fix aarch64/initplat.c so that memset/memcpy only apply to gcc. Otherwise MSVC throws an error for __SIZE_TYPE__.
Updating this patch to v2, since it turns out MSVC will also emit memset and memcpy intrinsics that we can use an implementation for. This is true for both ARM and ARM64. To make this work, I'm defining __SIZE_TYPE__ to UINTN if not already defined.
Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
08a46615 | 07-Aug-2017 |
Nigel Croxon <ncroxon@redhat.com> |
Use ARFLAGS when invoking ar.
The use of ARFLAGS makes these flags overridable. The '-U' option is already added to ARFLAGS in Make.defaults.
Signed-off-by: Janosch Hildebrand <jnosh+git@jnosh.com>
Use ARFLAGS when invoking ar.
The use of ARFLAGS makes these flags overridable. The '-U' option is already added to ARFLAGS in Make.defaults.
Signed-off-by: Janosch Hildebrand <jnosh+git@jnosh.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
61859152 | 01-Jun-2017 |
Nigel Croxon <ncroxon@redhat.com> |
This commit inserts the libefi.a objects in a stable order.
When building libefi.a with "make -jN", the object files in libefi.a will be inserted in a random order. Although it won't hurt the functi
This commit inserts the libefi.a objects in a stable order.
When building libefi.a with "make -jN", the object files in libefi.a will be inserted in a random order. Although it won't hurt the functionality, it could make the EFI image irreproducible and invalidate the detached signature after rebuilding libefi.a without any change in the source code.
Signed-off-by: Gary Lin <glin@suse.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
8d8a3b5d | 31-May-2017 |
Nigel Croxon <ncroxon@redhat.com> |
Add the fallthrough attribute to notify gcc7 that it's on purpose.
Signed-off-by: Gary Lin <glin@suse.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com> |
72a19c3a | 07-Apr-2017 |
Nigel Croxon <ncroxon@redhat.com> |
On x86_64, newish gcc will use relocation types R_X86_64_GOTPCREL, R_X86_64_GOTPCREL64, R_X86_64_GOTPCRELX, and R_X86_64_REX_GOTPCRELX, which our _relocate() does not support, for extern declarations
On x86_64, newish gcc will use relocation types R_X86_64_GOTPCREL, R_X86_64_GOTPCREL64, R_X86_64_GOTPCRELX, and R_X86_64_REX_GOTPCRELX, which our _relocate() does not support, for extern declarations visible to things linking against a DSO. Since we're really just building a .a here, and *nothing* needs to be exported in the .so sense, we don't need any of that optimization at all, there's no point in making _relocate() know how to handle these.
Instead, this patch simply removes the visibility from everything in the .a, which gets us back to fairly normal relative relocations that wind up being R_X86_64_RELATIVE in the final binary, which we can handle.
Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
574b48d8 | 30-Mar-2017 |
Nigel Croxon <ncroxon@redhat.com> |
This is mere refactoring of the code and is not linked to any specific issue.
I think ARM's DivU64x32() would be better located along MultU64x32() and other calls in ARM's math.c, as having it in a
This is mere refactoring of the code and is not linked to any specific issue.
I think ARM's DivU64x32() would be better located along MultU64x32() and other calls in ARM's math.c, as having it in a header seems weird, even with the goal of inlining it. I doubt there's much performance to be lost from having it non-inline in math.c and it should make the code breakdown more logical.
Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
3f8935c3 | 17-Feb-2017 |
Nigel Croxon <ncroxon@redhat.com> |
add-Exit - Add Exit() library function which calls BS->Exit()
Signed-off-by: Jonathon Reinhart <jonathon.reinhart@gmail.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com> |
787cb7fc | 17-Feb-2017 |
Nigel Croxon <ncroxon@redhat.com> |
fix clang support.
Tested: make all apps + tests apps/ on x86_64 make CC=clang all apps + tests apps/ on x86_64
Signed-off-by: David Decotigny <ddecotig@gmail.com> Signed-off-by: Nigel Croxon <
fix clang support.
Tested: make all apps + tests apps/ on x86_64 make CC=clang all apps + tests apps/ on x86_64
Signed-off-by: David Decotigny <ddecotig@gmail.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
show more ...
|
3f234f5b | 08-Jan-2017 |
Nigel Croxon <noxorc@mac.com> |
Add support for 64 bit MIPS
This is a patch to add support for 64-bit MIPS.
Signed-off-by: Hev heiher <heiher@users.sf.net> Signed-off-by: Nigel Croxon <noxorc@mac.com> |
fa1b9779 | 08-Jan-2017 |
Nigel Croxon <noxorc@mac.com> |
GCC 4.8 (and others) const warnings
Calling the various Print functions picked up some warnings in my project (using GCC 4.8 and 4.9 at the moment): warning: passing argument 1 of Print discards con
GCC 4.8 (and others) const warnings
Calling the various Print functions picked up some warnings in my project (using GCC 4.8 and 4.9 at the moment): warning: passing argument 1 of Print discards const qualifier from pointer target type [enabled by default]
Signed-off-by: Nigel Croxon <noxorc@mac.com> Signed-off-by: Justinian <justinian@users.sf.net>
show more ...
|
8071303f | 21-Nov-2016 |
Nigel Croxon <ncroxon@users.sf.net> |
AARCH64 gcc error with const qualifiers
aarch64-linux-gnu-gcc on Debian/Sid fails lib compilation with: lib/aarch64/initplat.c:44:35: error: initialization discards ‘const’ qualifier from pointer ta
AARCH64 gcc error with const qualifiers
aarch64-linux-gnu-gcc on Debian/Sid fails lib compilation with: lib/aarch64/initplat.c:44:35: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]. This patch fixes it.
Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <noxorc@users.sf.net>
show more ...
|
b14cc9cb | 15-Sep-2016 |
Nigel Croxon <nigel.croxon@hpe.com> |
Add Debugger protocol support.
Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com> |