coreboot-kgpe-d16/src/arch
Robert Zieba 3f01cd1453 arch/x86: Add support for catching null dereferences through debug regs
This commit adds support for catching null dereferences and execution
through x86's debug registers. This is particularly useful when running
32-bit coreboot as paging is not enabled to catch these through page
faults. This commit adds three new configs to support this feature:
DEBUG_HW_BREAKPOINTS, DEBUG_NULL_DEREF_BREAKPOINTS and
DEBUG_NULL_DEREF_HALT.

BUG=b:223902046
TEST=Ran on nipperkin device, verifying that HW breakpoints work as
expected.

Change-Id: I113590689046a13c2a552741bbfe7668a834354a
Signed-off-by: Robert Zieba <robertzieba@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63657
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
2022-05-12 15:47:18 +00:00
..
arm device/mmio.h: Move readXp/writeXp helpers to device/mmio.h 2022-03-08 08:25:36 +00:00
arm64 timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
ppc64 src/arch/ppc64/*: pass FDT address to payload 2022-02-11 20:18:05 +00:00
riscv *.h: Fix up typos in guarding 2022-05-11 06:04:10 +00:00
x86 arch/x86: Add support for catching null dereferences through debug regs 2022-05-12 15:47:18 +00:00