Skip to content

Commit

Permalink
Kernel: Run clang-format on Process.cpp & ACPIDynamicParser.h
Browse files Browse the repository at this point in the history
  • Loading branch information
supercomputer7 authored and awesomekling committed Mar 5, 2020
1 parent 1b8cd6d commit 85eb1d2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
49 changes: 24 additions & 25 deletions Kernel/ACPI/ACPIDynamicParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,29 @@

namespace Kernel {
namespace ACPI {
class DynamicParser final : public IRQHandler
, StaticParser {
public:
static void initialize(PhysicalAddress rsdp);
static void initialize_without_rsdp();

virtual void enable_aml_interpretation() override;
virtual void enable_aml_interpretation(File& dsdt_file) override;
virtual void enable_aml_interpretation(u8* physical_dsdt, u32 dsdt_payload_legnth) override;
virtual void disable_aml_interpretation() override;
virtual void try_acpi_shutdown() override;
virtual bool can_shutdown() override { return true; }

protected:
DynamicParser();
explicit DynamicParser(PhysicalAddress);

private:
void build_namespace();
// ^IRQHandler
virtual void handle_irq(RegisterState&) override;

OwnPtr<Region> m_acpi_namespace;
};

class DynamicParser final : public IRQHandler
, StaticParser {
public:
static void initialize(PhysicalAddress rsdp);
static void initialize_without_rsdp();

virtual void enable_aml_interpretation() override;
virtual void enable_aml_interpretation(File& dsdt_file) override;
virtual void enable_aml_interpretation(u8* physical_dsdt, u32 dsdt_payload_legnth) override;
virtual void disable_aml_interpretation() override;
virtual void try_acpi_shutdown() override;
virtual bool can_shutdown() override { return true; }

protected:
DynamicParser();
explicit DynamicParser(PhysicalAddress);

private:
void build_namespace();
// ^IRQHandler
virtual void handle_irq(RegisterState&) override;

OwnPtr<Region> m_acpi_namespace;
};
}
}
1 change: 0 additions & 1 deletion Kernel/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,6 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
dbg() << "Process " << pid() << " exec: PD=" << m_page_directory.ptr() << " created";
#endif


InodeMetadata loader_metadata;

// FIXME: Hoooo boy this is a hack if I ever saw one.
Expand Down

0 comments on commit 85eb1d2

Please sign in to comment.