mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:28:12 +00:00
Kernel: Simplify scanning BIOS/EBDA and MP parser initialization
Add a MappedROM::find_chunk_starting_with() helper since that's a very common usage pattern in clients of this code. Also convert MultiProcessorParser from a persistent singleton object to a temporary object constructed via a failable factory function.
This commit is contained in:
parent
84b7bc5e14
commit
4b847810bf
8 changed files with 47 additions and 101 deletions
|
@ -336,8 +336,10 @@ class DynamicParser;
|
|||
class Parser;
|
||||
|
||||
namespace StaticParsing {
|
||||
PhysicalAddress find_rsdp();
|
||||
Optional<PhysicalAddress> find_rsdp();
|
||||
PhysicalAddress find_table(PhysicalAddress rsdp, const StringView& signature);
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue