added rsdt parse functionality
this function prints out the RSDT entries present in the system
This commit is contained in:
parent
0cc86fc37d
commit
2146b49bb3
6 changed files with 76 additions and 9 deletions
|
|
@ -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
12
include/string.h
Normal 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_ */
|
||||
Loading…
Reference in a new issue