From 8ef42528cdac47b4dd092154a6dbe9bc36edc11a Mon Sep 17 00:00:00 2001 From: Sara Batllori Date: Tue, 10 Sep 2024 12:07:23 -0700 Subject: [PATCH] Reset is_ba_invalid flag when using fixed address Signed-off-by: Sara Batllori --- chipsec/hal/mmio.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chipsec/hal/mmio.py b/chipsec/hal/mmio.py index 99d654a4e2..8abd394cc8 100644 --- a/chipsec/hal/mmio.py +++ b/chipsec/hal/mmio.py @@ -248,6 +248,7 @@ def get_MMIO_BAR_base_address(self, bar_name: str, bus: Optional[int] = None) -> is_ba_invalid = base == 0 or is_all_ones(base, size) if 'fixed_address' in bar and (base == reg_mask or base == 0): + is_ba_invalid = False base = bar['fixed_address'] self.logger.log_hal(f'[mmio] Using fixed address for {bar_name}: 0x{base:016X}') if 'mask' in bar: