mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
oshelper.get_ACPI_table already takes care of checking if we're in native API mode.
This commit is contained in:
committed by
Nathaniel Mitchell
parent
b8ef7ddd8b
commit
138b52b9e4
+7
-9
@@ -403,11 +403,10 @@ class ACPI(hal_base.HALBase):
|
||||
except oshelper.UnimplementedNativeAPIError:
|
||||
# 2. If didn't work, try using get_ACPI_table if a helper implemented
|
||||
# reading ACPI tables via native API which some OS may provide
|
||||
if self.cs.use_native_api():
|
||||
if logger().HAL: logger().log( "[acpi] trying to enumerate ACPI tables using get_ACPI_table..." )
|
||||
for t in ACPI_TABLES.keys():
|
||||
table = self.cs.helper.get_ACPI_table( t )
|
||||
if table: self.tableList[ t ].append( 0 )
|
||||
if logger().HAL: logger().log( "[acpi] trying to enumerate ACPI tables using get_ACPI_table..." )
|
||||
for t in ACPI_TABLES.keys():
|
||||
table = self.cs.helper.get_ACPI_table( t )
|
||||
if table: self.tableList[ t ].append( 0 )
|
||||
|
||||
return self.tableList
|
||||
|
||||
@@ -488,10 +487,9 @@ class ACPI(hal_base.HALBase):
|
||||
except oshelper.UnimplementedNativeAPIError:
|
||||
# 2. If didn't work, try using get_ACPI_table if a helper implemented
|
||||
# reading ACPI tables via native API which some OS may provide
|
||||
if self.cs.use_native_api():
|
||||
if logger().HAL: logger().log( "[acpi] trying to extract ACPI table using get_ACPI_table..." )
|
||||
t_data = self.cs.helper.get_ACPI_table( name )
|
||||
acpi_tables_data.append( t_data )
|
||||
if logger().HAL: logger().log( "[acpi] trying to extract ACPI table using get_ACPI_table..." )
|
||||
t_data = self.cs.helper.get_ACPI_table( name )
|
||||
acpi_tables_data.append( t_data )
|
||||
|
||||
acpi_tables = []
|
||||
for data in acpi_tables_data:
|
||||
|
||||
Reference in New Issue
Block a user