Save ACPI table address from multiboot headers

This commit is contained in:
Thomas Lovén 2022-01-16 21:19:49 +01:00
parent 766e445122
commit 6a033344b5
2 changed files with 7 additions and 0 deletions

View File

@ -56,6 +56,10 @@ static int parse_multiboot2(struct taglist *tags)
case MBOOT2_TAG_FBINFO:
kernel_boot_data.fbinfo = (void *)tag->data;
break;
case MBOOT2_TAG_OLD_RSDP:
case MBOOT2_TAG_NEW_RSDP:
kernel_boot_data.rsdp = (void *)tag->data;
break;
}
// Tags are 8 byte alligned, so make sure we look for the next one in the right place

View File

@ -10,6 +10,8 @@
#define MBOOT2_TAG_BOOTLOADER 2
#define MBOOT2_TAG_MMAP 6
#define MBOOT2_TAG_FBINFO 8
#define MBOOT2_TAG_OLD_RSDP 14
#define MBOOT2_TAG_NEW_RSDP 15
#ifndef __ASSEMBLER__
#include <stddef.h>
@ -36,6 +38,7 @@ struct kernel_boot_data_st{
unsigned int mmap_len;
void *mmap;
struct fbinfo *fbinfo;
void *rsdp;
};
#define MMAP_FREE 1