-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added missing requests for x86_64
- Loading branch information
1 parent
1cda20d
commit 5638ec1
Showing
8 changed files
with
117 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include <logging> | ||
#include <string.h> | ||
#include <tiny-efi/efi.h> | ||
|
||
uintptr_t uefi_find_rsdp(void) | ||
{ | ||
EfiGuid acpi = ACPI_TABLE_GUID; | ||
EfiGuid acpi2 = ACPI2_TABLE_GUID; | ||
void *acpi_table = NULL; | ||
|
||
for (size_t i = 0; i < efi_st()->num_table_entries; i++) | ||
{ | ||
if (memcmp(&efi_st()->config_table[i].vendor_guid, &acpi, sizeof(EfiGuid)) == 0) | ||
{ | ||
acpi_table = efi_st()->config_table[i].vendor_table; | ||
break; | ||
} | ||
else if (memcmp(&efi_st()->config_table[i].vendor_guid, &acpi2, sizeof(EfiGuid)) == 0) | ||
{ | ||
acpi_table = efi_st()->config_table[i].vendor_table; | ||
break; | ||
} | ||
} | ||
|
||
debug$("ACPI table at %p", acpi_table); | ||
return (uintptr_t)acpi_table; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters