:: commit 466f72d4a4bcb27ab060b196bbd8afbc9172cbcb

mintsuki <mintsuki@protonmail.com> — 2024-11-30 01:09

parents: bfab172d97

protos/limine: Change voidptrs into u64s for ptrs made physical

diff --git a/PROTOCOL.md b/PROTOCOL.md
index 7be10b95..06cf5cb9 100644
--- a/PROTOCOL.md
+++ b/PROTOCOL.md
@@ -1131,7 +1131,7 @@ Response:
 ```c
 struct limine_rsdp_response {
     uint64_t revision;
-    void *address;
+    uint64_t address;
 };
 ```
 
@@ -1157,8 +1157,8 @@ Response:
 ```c
 struct limine_smbios_response {
     uint64_t revision;
-    void *entry_32;
-    void *entry_64;
+    uint64_t entry_32;
+    uint64_t entry_64;
 };
 ```
 
@@ -1185,7 +1185,7 @@ Response:
 ```c
 struct limine_efi_system_table_response {
     uint64_t revision;
-    void *address;
+    uint64_t address;
 };
 ```
 
diff --git a/limine.h b/limine.h
index 30b9e2a1..47fe8901 100644
--- a/limine.h
+++ b/limine.h
@@ -513,7 +513,7 @@ struct limine_module_request {
 
 struct limine_rsdp_response {
     uint64_t revision;
-    LIMINE_PTR(void *) address;
+    uint64_t address;
 };
 
 struct limine_rsdp_request {
@@ -528,8 +528,8 @@ struct limine_rsdp_request {
 
 struct limine_smbios_response {
     uint64_t revision;
-    LIMINE_PTR(void *) entry_32;
-    LIMINE_PTR(void *) entry_64;
+    uint64_t entry_32;
+    uint64_t entry_64;
 };
 
 struct limine_smbios_request {
@@ -544,7 +544,7 @@ struct limine_smbios_request {
 
 struct limine_efi_system_table_response {
     uint64_t revision;
-    LIMINE_PTR(void *) address;
+    uint64_t address;
 };
 
 struct limine_efi_system_table_request {
tab: 248 wrap: offon