added rsdt parse functionality

this function prints out the RSDT entries present in the system
This commit is contained in:
Michael Shaw 2023-02-27 22:55:06 -05:00
commit 2146b49bb3
6 changed files with 76 additions and 9 deletions

View file

@ -11,14 +11,9 @@ struct rsdp {
char oemid[6];
uint8_t revision;
uint32_t rsdt_addr;
uint32_t length;
uint64_t xsdt_addr; /* the REAL address */
uint8_t checksum_ext;
char reserved[3];
} PACKED;
struct acpi_header {
struct acpi_sdt_header {
char signature[4];
uint32_t length;
uint8_t revision;
@ -30,6 +25,11 @@ struct acpi_header {
uint32_t creator_revision;
} PACKED;
struct rsdt {
struct acpi_sdt_header h;
uint32_t sdt[];
};
void acpi_init();
#endif /* __ASM__ */

12
include/string.h Normal file
View file

@ -0,0 +1,12 @@
#ifndef _STRING_H_
#define _STRING_H_
#ifndef __ASM__
#include <kernel/common.h>
void *memcpy(void *dest, const void *src, size_t num);
char *strcpy(char *dest, const char *src);
#endif /* __ASM__ */
#endif /* _STRING_H_ */