summaryrefslogtreecommitdiff
path: root/Kernel/ACPI/ACPIParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/ACPI/ACPIParser.cpp')
-rw-r--r--Kernel/ACPI/ACPIParser.cpp34
1 files changed, 2 insertions, 32 deletions
diff --git a/Kernel/ACPI/ACPIParser.cpp b/Kernel/ACPI/ACPIParser.cpp
index f72d49176c..3ea46756ba 100644
--- a/Kernel/ACPI/ACPIParser.cpp
+++ b/Kernel/ACPI/ACPIParser.cpp
@@ -32,10 +32,9 @@ namespace ACPI {
static Parser* s_acpi_parser;
-Parser& Parser::the()
+Parser* Parser::the()
{
- ASSERT(s_acpi_parser);
- return *s_acpi_parser;
+ return s_acpi_parser;
}
void Parser::set_the(Parser& parser)
@@ -44,31 +43,6 @@ void Parser::set_the(Parser& parser)
s_acpi_parser = &parser;
}
-Parser::Parser(bool usable)
-{
- if (usable) {
- klog() << "ACPI: Setting up a functional parser";
- } else {
- klog() << "ACPI: Limited Initialization. Vital functions are disabled by a request";
- }
-}
-
-PhysicalAddress Parser::find_table(const char*)
-{
- klog() << "ACPI: Requested to search for a table, Abort!";
- return {};
-}
-
-void Parser::try_acpi_reboot()
-{
- klog() << "ACPI: Cannot invoke reboot!";
-}
-
-void Parser::try_acpi_shutdown()
-{
- klog() << "ACPI: Cannot invoke shutdown!";
-}
-
void Parser::enable_aml_interpretation()
{
klog() << "ACPI: No AML Interpretation Allowed";
@@ -99,9 +73,5 @@ const FADTFlags::x86_Specific_Flags& Parser::x86_specific_flags() const
klog() << "ACPI Limited: x86 specific features cannot be obtained";
ASSERT_NOT_REACHED();
}
-bool Parser::is_operable()
-{
- return false;
-}
}
}