Skip to content

Commit

Permalink
Reset is_ba_invalid flag when using fixed address
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
  • Loading branch information
Sae86 authored and dscott90 committed Sep 16, 2024
1 parent 069d19c commit bd074e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chipsec/hal/mmio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bd074e1

Please sign in to comment.