30958 Commits

Author SHA1 Message Date
Marvin Häuser
e15d23ca81 MdeModulePkg/RegularExpressionDxe: Fix XCODE5 build 2023-04-02 00:04:46 +02:00
Marvin Häuser
23e0a765a5 BaseTools/tools_def: Declare -Wno-unknown-warning-option for XCODE5 2023-04-02 00:04:46 +02:00
Marvin Häuser
b1851ef38d BaseTools/ImageTool: Fix PeScan error handling 2023-04-02 00:04:46 +02:00
Marvin Häuser
d5eecc2e2d BaseTools/ImageTool: Use AllocateAlignedCodePages() for images 2023-04-02 00:04:28 +02:00
Marvin Häuser
240e920841 BaseTools/ImageTool: Consume CommonMemoryAllocationLib 2023-04-01 23:59:10 +02:00
Marvin Häuser
f3fedad22d BaseTools/CommonLib: Guarantee 8-byte alignment for AllocatePool() 2023-04-01 19:17:12 +02:00
Marvin Häuser
c382e9c571 BaseTools/CommonLib: Consume MemoryAllocationLib 2023-03-30 17:15:19 +02:00
Marvin Häuser
7506a40c12 EmbeddedPkg/PrePiLib: Deduplicate MemoryAllocationLib declarations 2023-03-30 17:15:19 +02:00
Marvin Häuser
db85482684 EmbeddedPkg/NonCoherentDmaLib: Utilize AllocateAlignedPagesEx 2023-03-30 17:15:19 +02:00
Marvin Häuser
eea8ba4030 MdePkg/UefiImageLib: Require callers to allocate aligned memory 2023-03-30 17:15:14 +02:00
Marvin Häuser
227871ad94 MdePkg/MemoryAllocationLib: Add Allocate(Aligned)CodePages 2023-03-30 16:18:09 +02:00
Marvin Häuser
31979d701f EmulatorPkg/Host: Consume MemoryAllocationLib 2023-03-30 16:18:09 +02:00
Marvin Häuser
b5b858f990 MdePkg: Introduce CommonMemoryAllocationLib 2023-03-30 16:18:09 +02:00
Marvin Häuser
cc4427d20c MdeModulePkg: Manage MemoryProfileLib separately 2023-03-30 16:18:09 +02:00
Marvin Häuser
0d53d302de MdePkg/Base.h: Introduce ALIGN_VALUE_SUBTRAHEND 2023-03-30 16:18:09 +02:00
Marvin Häuser
2a12deda9b EmulatorPkg/Host: Remove orphaned GetImageReadFunction() 2023-03-30 00:18:29 +02:00
Marvin Häuser
dff189ca49 MdeModulePkg/DxeCore: Remove orphaned CoreReadImageFile() 2023-03-30 00:18:28 +02:00
Marvin Häuser
059e6ecef9 MdeModulePkg/CorePei: Remove unused ShadowedImageRead member 2023-03-30 00:18:28 +02:00
Marvin Häuser
b74a1336a5 MdePkg/BasePeCoffLib2: Move ExtraAction to UefiImageLib 2023-03-30 00:18:28 +02:00
Marvin Häuser
0cd5908c7f BaseTools/ImageTool: Rename PreferredAddress to BaseAddress 2023-03-30 00:18:28 +02:00
Marvin Häuser
6ececb9b0c BaseTools/GenFvInternalLib: Remove unused BaseOfCode parameter 2023-03-29 21:37:14 +02:00
Marvin Häuser
2428dcb8c9 MdeModulePkg/DxeCore: Fix RelocationData type 2023-03-29 21:37:14 +02:00
Marvin Häuser
4e4c413daa UefiCpuPkg/CpuExceptionHandlerLib: Fix ImageContext type 2023-03-29 21:36:28 +02:00
Marvin Häuser
0725fe2554 MdePkg/BaseOverflowLib: Add missing Base.h includes 2023-03-29 21:36:28 +02:00
Marvin Häuser
46a55a1dc4 MdePkg/BasePeCoffLib2: Fix call to RelocateExtraAction 2023-03-29 19:57:39 +02:00
Marvin Häuser
f5fe05bccc EmulatorPkg: Fix some image loader related issues 2023-03-29 19:57:33 +02:00
Marvin Häuser
dc58fd4c5f EmulatorPkg: Fix Thunk PPI/Protocol library types 2023-03-28 23:52:27 +02:00
Marvin Häuser
7c28bde9dc EmulatorPkg/Host: Remove orphaned SecImageRead() 2023-03-28 23:52:27 +02:00
Marvin Häuser
c7a6facd38 ArmPlatformPkg/PrePi: Add missing UefiImageLib include 2023-03-28 23:52:27 +02:00
Marvin Häuser
d5e49c5c2d BaseTools/GenFv: Remove duplicated alignment macros 2023-03-28 23:52:27 +02:00
Marvin Häuser
eeba662f20 MdePkg/UefiImageLib: Convert to CRLF 2023-03-28 23:52:27 +02:00
Marvin Häuser
ea97361c29 ImageTool: Fix SymbolsPathLen inconsistencies 2023-03-28 23:52:27 +02:00
Marvin Häuser
fbb0bac451 MdeModulePkg/PiSmmCore: Fix fixed address loading 2023-03-28 15:55:57 +02:00
Marvin Häuser
47a3d5dc0c CI: Drop submodule update in favour of actions/checkout 2023-03-28 01:12:12 +02:00
Marvin Häuser
f9750fd19b .gitmodules: Track main OpenCorePkg branch 2023-03-28 00:38:11 +02:00
Marvin Häuser
db6d6cd55f devcontainer: Initial import 2023-03-28 00:36:41 +02:00
Marvin Häuser
2329159b11 Docker: Extend OpenCorePkg docker-compose 2023-03-28 00:36:34 +02:00
Marvin Häuser
1e71ff04c4 EmulatorPkg/Host: Fix XCODE5 build 2023-03-28 00:29:29 +02:00
Marvin Häuser
e30809d363 UefiCpuPkg/CpuExceptionHandlerLib: Fix wrong use of relative addressing
HookAfterStubHeader is copied before execution. Thus, relative
addressing cannot safely be used for anything outside the copy range.
Fix the reference of HookAfterStubHeaderEnd to be absolute.

This change alone violates an undocumented requirement that
HookAfterStubHeader and AsmIdtVector are structurally equivalent (their
respective sizes in particular). Resolve this by treating them (and in
particular their sizes) independently.
2023-03-22 16:13:25 +01:00
Marvin Häuser
e958f25835 BaseTools/DevicePath: Consume MdePkg/UefiDevicePathLib
BaseTools has been duplicating and adapting code that is defined in
MdePkg and MdeModulePkg. This leads to desync issues where the same
symbols may be backed by different functions with slightly different
semantics and also fixes that apply only to BaseTools or only to MdePkg
and MdeModulePkg.

To address these issues, update BaseTools/Source/C to utilize the code
from MdePkg and MdeModulePkg.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-03-17 15:16:23 +03:00
Marvin Häuser
d24e8eb64a BaseTools/CommonLib: Consume MdePkg and MdeModulePkg
BaseTools has been duplicating and adapting code that is defined in
MdePkg and MdeModulePkg. This leads to desync issues where the same
symbols may be backed by different functions with slightly different
semantics and also fixes that apply only to BaseTools or only to MdePkg
and MdeModulePkg.

To address these issues, update BaseTools/Source/C to utilize the code
from MdePkg and MdeModulePkg.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-03-17 15:16:23 +03:00
Marvin Häuser
d1dd8c16ce UefiCpuPkg/MtrrLib: Add missing PcdLib.h include
MtrrLib does not include PcdLib.h despite explicitly using its
definitions. Add the include to fix compilation for modules that do not
utilize AutoGen.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-03-17 15:16:23 +03:00
Marvin Häuser
12f18049cc MdePkg/Base.h: Add support for C++ alignof
In preparation of including Base.h in C++ BaseTools programs, support
the C++ 11 alignof operator. The C _Alignof operator is not universally
supported in C++ mode across compiler toolchains and thus the current
definition may lead to compilation errors with said programs.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-03-17 15:16:23 +03:00
Marvin Häuser
21737743ca MdePkg/Base.h: Only use C++ static_assert when supported
To support GoogleTest, 933b4c3 added support for C++ static_assert.
However, this is not a mandatory or universally supported C++ feature.
Guard its usage by the __cpp_static_assert support flag.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-03-17 15:16:23 +03:00
Savva Mitrofanov
113f3d8f6e ArmPkg/DebugUefiImageExtraActionLib: Fix DEBUG statements
Ref: 57480bd8ae3b4dbda588a1fd108e826faebc28e5
2023-03-16 15:33:03 +03:00
Mikhail Krichanov
789aa9ded5 BaseTools: Returned -march=armv7-a -mthumb for ARM compilation, removed useless ARCHASM_FLAGS. 2023-03-16 15:33:03 +03:00
Mikhail Krichanov
26a4d6faf2 MdeModulePkg: Removed ASSERT to facilitate boot of AARCH64 firmware. 2023-03-16 15:33:03 +03:00
Mikhail Krichanov
be0b5fc5da MdeModulePkg: Fixed code style. 2023-03-16 15:33:03 +03:00
Mikhail Krichanov
aba1c68ac1 ImageTool: Fixed compilation for AARCH64. 2023-03-16 15:33:03 +03:00
Mikhail Krichanov
9b440f29ea BaseTools: Removed useless OBJCOPY_FLAGS, ARCHCC_FLAGS and PLATFORM_FLAGS, defined OBJCOPY_PATH for ARM, AARCH64. 2023-03-16 15:33:03 +03:00