31449 Commits

Author SHA1 Message Date
Marvin Häuser
4166d3ffd3 ImageTool: Support XIP configuration 2023-07-19 13:45:31 +03:00
Marvin Häuser
8957da50bb ImageTool: Update relocation logic 2023-07-19 13:45:31 +03:00
Marvin Häuser
8db3b2a6a2 ImageTool: Ensure PE section names are terminated 2023-07-19 13:45:31 +03:00
Marvin Häuser
e239aed80d ImageTool: Update RelocateImage internal prototype 2023-07-19 13:45:31 +03:00
Mikhail Krichanov
c6265d1374 MdePkg/UefiImageLib: Introduce DebugAddress
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-07-19 13:45:31 +03:00
Marvin Häuser
d1d136dfcd MdePkg/BasePeCoffLib2: Slight adjustments 2023-07-19 13:45:31 +03:00
Marvin Häuser
24c3bf2c4b ImageTool: Rework PeEmit with dynamically-growing buffers 2023-07-19 13:45:31 +03:00
Mikhail Krichanov
f84c36f7ea MdePkg/UefiImageLib: Support multi-format and multi-source architecture
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-07-19 13:45:31 +03:00
Marvin Häuser
832bf1df71 MdeModulePkg/DxeCore: Re-use ImageIsFromFv for memory protection 2023-07-19 13:45:31 +03:00
Marvin Häuser
3a50f54cab MdeModulePkg/DxeCore: Check FileAuthenticationStatus for caller buffers 2023-07-19 13:45:31 +03:00
Marvin Häuser
4a541b7183 Remove unused dependencies on UefiImageLib 2023-07-19 13:45:31 +03:00
Marvin Häuser
c36bf0ae08 MdeModulePkg/UefiBootManagerLib: Do not parse the UEFI image 2023-07-19 13:45:31 +03:00
Marvin Häuser
1e673c4935 SecurityPkg/Tcd2Dxe: Fix UefiImage initialization 2023-07-19 13:45:31 +03:00
Mikhail Krichanov
8aac54287a Build: Upgraded OpenCorePkg. 2023-07-07 13:44:21 +03:00
Mikhail Krichanov
fbcfdbc069 CI: Fixed nolto tests. 2023-07-07 13:06:11 +03:00
Savva Mitrofanov
517e906518 CI: Remove Dependabot configuration 2023-07-07 10:51:30 +03:00
Pedro Falcato
609600b7ee Ext4Pkg: Skip zero-sized extents
Zero-sized extents should not be cached nor considered valid, as they
have no meaning. As such, reject them outright when caching extents.
This makes it so callers do not need to check for ee_len = 0 before
using the result, which, if not done, can result in possible infinite
loops.

Cc: Marvin Häuser <mhaeuser@posteo.de>
Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.")
Reported-by: Savva Mitrofanov <savvamtr@gmail.com>
Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
2023-07-07 10:51:30 +03:00
Savva Mitrofanov
b84aa16df8 Ext4Pkg: Fix GdtCsum calculation for block group descriptor
Doesn't take into account the empty checksum field and passes the correct initial value of 0xFFFF into the CRC16-ANSI function

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-07-07 10:51:30 +03:00
Savva Mitrofanov
71cbd3cb57 MdePkg/BaseLib: Correct CRC-16-ANSI implementation
The ANSI implementation assumes that initial value should be 0xFFFF and
the result shouldn't be inverted

Fixes: 92288f4 ("MdePkg/BaseLib: Add CRC16-ANSI and CRC32c implementations")
Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-07-07 10:51:30 +03:00
Mikhail Krichanov
43134dc60f CI: Added tests for NOLTO builds. 2023-07-07 10:51:30 +03:00
Mikhail Krichanov
0303f6c239 BaseTools/Conf: Added EDK2_GCC_NOLTO build option. 2023-07-07 10:51:30 +03:00
Mikhail Krichanov
2f0285fa75 Build: Replaced GCC5 toolchain with GCC. 2023-07-07 10:51:02 +03:00
Mikhail Krichanov
de7ca36a15 Fixed compilation of all packages tracked by CI after rebasing upon edk2-stable202305. 2023-07-07 09:47:25 +03:00
Mikhail Krichanov
810bae60d1 Revert "MdeModulePkg: Enable forward edge CFI in mem attributes table"
This reverts commit e4ef609319236a018c60b84f68d9d923c4ba383e.
2023-07-07 09:46:08 +03:00
Mikhail Krichanov
a3d73d44ee MdeModulePkg/Core/Dxe: Integrate CPU Architectural producer
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3223

In the current design, memory protection is not available till CpuDxe
is loaded. To resolve this, introduce CpuArchLib to move the
CPU Architectural initialization to DxeCore.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Vitaly Cheptsov <vit9696@protonmail.com>
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-07-07 09:46:08 +03:00
Savva Mitrofanov
edf7f64f14 Build: Upgrade OpenCorePkg
Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-07-07 09:46:08 +03:00
Mikhail Krichanov
42c5cd67d2 OvmfPkg, BaseTools: Fixed Amaranth compilation for gcc-12.3.0. 2023-07-07 09:46:08 +03:00
Mikhail Krichanov
6190e6380f BaseTools: Introduce new HII section design 2023-07-07 09:46:08 +03:00
Marvin Häuser
b74b98d4c3 BaseTools/C: Consume UefiImageLib and ImageToolEmit 2023-07-07 09:46:08 +03:00
Marvin Häuser
1957edbf01 BaseTools/GenFv: Remove .text and .data from FV map 2023-07-07 09:46:08 +03:00
Marvin Häuser
212716a1c4 Remove hacks related to former lack of XCODE5 .hii support 2023-07-07 09:46:08 +03:00
Mikhail Krichanov
86283f1f8b Added .md file summarizing current states of packages. 2023-07-07 09:46:08 +03:00
Marvin Häuser
e80ae38879 BaseTools/build_rule: Drop deprecated ASM16 definition 2023-07-07 09:44:53 +03:00
Mikhail Krichanov
49eba86f69 Drop support for the TE format 2023-07-07 09:44:53 +03:00
Marvin Häuser
b6eac1a574 ArmPkg/ArmMmuLib: ASSERT ArmReplaceLiveTranslationEntry alignment 2023-07-07 09:44:53 +03:00
Marvin Häuser
9c43408450 MdeModulePkg/ExtendedFirmwarePerformance: Fix FPDT struct alignment 2023-07-07 09:44:53 +03:00
Marvin Häuser
b3150e51ab UefiPayloadPkg/UefiPayloadEntry: Return image destination size as UINT32 2023-07-07 09:44:53 +03:00
Savva Mitrofanov
cd4dd49a12 ArmVirtPkg/ArmVirtQemu: Disable PcdPrePiProduceMemoryTypeInformationHob for ARM
The PcdPrePiProduceMemoryTypeInformationHob on ARM breaks Linux efistub
boot. The efistub for arm32 uncompresses Linux kernel into memory ranges
which occupied by DXE-phase drivers which leads to
'permission denied'-error during page write. So as a temporary solution
we use PcdPrePiProduceMemoryTypeInformationHob only for AARCH64

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-07-07 09:44:53 +03:00
Mikhail Krichanov
789888e652 UefiCpuPkg/CpuExceptionHandlerLib: Creates unified ExceptionHandlerAsm
This change removes Xcode5ExceptionHandlerAsm and merge it's
functionality into ExceptionHandlerAsm.
Also decreases number of vectors to 32 for:
- 64-bit PeiCpuExceptionHandlerLib
- 32-bit PeiCpuExceptionHandlerLib, SecPeiCpuExceptionHandlerLib

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-07-07 09:44:53 +03:00
Mikhail Krichanov
2c38c37510 UefiImageLib: Ensure consistently passing the full buffer size 2023-07-07 09:44:53 +03:00
Mikhail Krichanov
96ec1c3f4b BaseTools/CommonLib: Consume MemoryAllocationLib 2023-07-07 09:44:53 +03:00
Marvin Häuser
bff9ccd041 EmbeddedPkg/PrePiLib: Deduplicate MemoryAllocationLib declarations 2023-07-07 09:44:52 +03:00
Marvin Häuser
43fff71ccd EmbeddedPkg/NonCoherentDmaLib: Utilize AllocateAlignedPagesEx 2023-07-07 09:44:52 +03:00
Marvin Häuser
4b17f3031c MdePkg/UefiImageLib: Require callers to allocate aligned memory 2023-07-07 09:44:52 +03:00
Mikhail Krichanov
000ec64cbb MdePkg/MemoryAllocationLib: Add Allocate(Aligned)CodePages 2023-07-07 09:41:57 +03:00
Marvin Häuser
d8d1594eab EmulatorPkg/Host: Consume MemoryAllocationLib 2023-07-07 09:40:00 +03:00
Mikhail Krichanov
7887a8a2e7 MdePkg: Introduce CommonMemoryAllocationLib 2023-07-07 09:39:09 +03:00
Marvin Häuser
574dc7aa64 MdeModulePkg: Manage MemoryProfileLib separately 2023-07-07 09:38:00 +03:00
Marvin Häuser
8cd1fcbfe4 MdePkg/Base.h: Introduce ALIGN_VALUE_SUBTRAHEND 2023-07-07 09:38:00 +03:00
Marvin Häuser
c2a1aba688 EmulatorPkg/Host: Remove orphaned GetImageReadFunction() 2023-07-07 09:38:00 +03:00