Kernel: Parse RSDP from multiboot headers if exists
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <BAN/String.h>
|
||||
#include <BAN/StringView.h>
|
||||
#include <BAN/Vector.h>
|
||||
#include <kernel/RSDP.h>
|
||||
|
||||
namespace Kernel
|
||||
{
|
||||
@@ -34,7 +35,8 @@ namespace Kernel
|
||||
struct BootInfo
|
||||
{
|
||||
BAN::String command_line;
|
||||
FramebufferInfo framebuffer;
|
||||
FramebufferInfo framebuffer {};
|
||||
RSDP rsdp {};
|
||||
BAN::Vector<MemoryMapEntry> memory_map_entries;
|
||||
};
|
||||
|
||||
|
||||
23
kernel/include/kernel/RSDP.h
Normal file
23
kernel/include/kernel/RSDP.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Kernel
|
||||
{
|
||||
|
||||
struct RSDP
|
||||
{
|
||||
uint8_t signature[8];
|
||||
uint8_t checksum;
|
||||
uint8_t oemid[6];
|
||||
uint8_t revision;
|
||||
uint32_t rsdt_address;
|
||||
|
||||
// only in revision >= 2
|
||||
uint32_t length;
|
||||
uint64_t xsdt_address;
|
||||
uint8_t extended_checksum;
|
||||
uint8_t reserved[3];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user