From 656872dd55fbceccc1fbc4fc65e7f0bbadb74b52 Mon Sep 17 00:00:00 2001 From: Aaron Frinzell Date: Wed, 22 Jul 2020 19:31:37 -0500 Subject: [PATCH] MMIO BAR enabled update --- chipsec/hal/mmio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chipsec/hal/mmio.py b/chipsec/hal/mmio.py index 476c7754..73971a84 100644 --- a/chipsec/hal/mmio.py +++ b/chipsec/hal/mmio.py @@ -214,6 +214,8 @@ class MMIO(hal_base.HALBase): # Check if MMIO range is enabled by MMIO BAR name # def is_MMIO_BAR_enabled(self, bar_name): + if not self.is_MMIO_BAR_defined( bar_name ): + return False bar = self.cs.Cfg.MMIO_BARS[ bar_name ] is_enabled = True if 'register' in bar: