diff options
| author | Abdelkader Boudih <freebsd@seuros.com> | 2026-05-18 14:01:20 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2026-05-18 14:01:20 +0000 |
| commit | 3abc07947c14f5c30e5328d56a2da8dbf8412ebf (patch) | |
| tree | ebe99ad6c997ecdbe33d7875f8480ac605b5bbac /lib/libdiff/tests/libdiff_test.c | |
| parent | f5993872faf5dbd5c142857e9633b11e330f8c38 (diff) | |
asmc: fix asmc_key_dump() page fault on T2 MMIO backend
asmc_key_dump() used I/O port macros (ASMC_DATAPORT_WRITE/READ,
asmc_command()) unconditionally. On T2 Macs, sc_ioport is NULL
(MMIO backend is used instead), causing a page fault when
ASMC_DEBUG triggers asmc_dumpall() during attach.
Add an MMIO guard at the top of asmc_key_dump(): delegate to
asmc_key_dump_by_index() + asmc_key_read() for MMIO devices,
consistent with the rest of the T2 code paths.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D56748
Diffstat (limited to 'lib/libdiff/tests/libdiff_test.c')
0 files changed, 0 insertions, 0 deletions
