-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tables: Add AcpiUninstallTable() to remove ACPI tables
There are existing internal functions that allow the removal of ACPI tables, but they are not exposed to OS in any useful way. Introduce AcpiUninstallTable() which allows table states to be "UNINSTALLED" in the global table list, resulting in failures of subsequent calls to AcpiGetTable() for those tables. The rationale for this change is the ability to remove the BGRT table during kexec boot. The BGRT table refers to memory regions that are no longer reserved by the firmware once the kexec kernel boots, having been released for general allocation by the previous kernel. Note that AcpiTbUninstallTable() is designed with limitation that it must only be called after an AcpiTbInstallTable() call as it doesn't handle table reference count synchronizations. So it is only safe in a single-threaded early booting environment. Original-by: Matt Fleming <matt@codeblueprint.co.uk> Signed-off-by: Lv Zheng <lv.zheng@intel.com>
- Loading branch information
Lv Zheng
committed
Feb 25, 2016
1 parent
6b2c3cd
commit 8a0321d
Showing
2 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters