Save ACPI table address from multiboot headers
This commit is contained in:
parent
766e445122
commit
6a033344b5
@ -56,6 +56,10 @@ static int parse_multiboot2(struct taglist *tags)
|
|||||||
case MBOOT2_TAG_FBINFO:
|
case MBOOT2_TAG_FBINFO:
|
||||||
kernel_boot_data.fbinfo = (void *)tag->data;
|
kernel_boot_data.fbinfo = (void *)tag->data;
|
||||||
break;
|
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
|
// Tags are 8 byte alligned, so make sure we look for the next one in the right place
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
#define MBOOT2_TAG_BOOTLOADER 2
|
#define MBOOT2_TAG_BOOTLOADER 2
|
||||||
#define MBOOT2_TAG_MMAP 6
|
#define MBOOT2_TAG_MMAP 6
|
||||||
#define MBOOT2_TAG_FBINFO 8
|
#define MBOOT2_TAG_FBINFO 8
|
||||||
|
#define MBOOT2_TAG_OLD_RSDP 14
|
||||||
|
#define MBOOT2_TAG_NEW_RSDP 15
|
||||||
|
|
||||||
#ifndef __ASSEMBLER__
|
#ifndef __ASSEMBLER__
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
@ -36,6 +38,7 @@ struct kernel_boot_data_st{
|
|||||||
unsigned int mmap_len;
|
unsigned int mmap_len;
|
||||||
void *mmap;
|
void *mmap;
|
||||||
struct fbinfo *fbinfo;
|
struct fbinfo *fbinfo;
|
||||||
|
void *rsdp;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MMAP_FREE 1
|
#define MMAP_FREE 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user