bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 03/12] bios32: Use phystokv() on low bios addresses


From: Damien Zammit
Subject: [PATCH 03/12] bios32: Use phystokv() on low bios addresses
Date: Tue, 25 Oct 2022 10:55:42 +0000

---
 linux/src/arch/i386/kernel/bios32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux/src/arch/i386/kernel/bios32.c 
b/linux/src/arch/i386/kernel/bios32.c
index c10cc0c0..71cc3f98 100644
--- a/linux/src/arch/i386/kernel/bios32.c
+++ b/linux/src/arch/i386/kernel/bios32.c
@@ -877,8 +877,8 @@ unsigned long pcibios_init(unsigned long memory_start, 
unsigned long memory_end)
         *
         */

-       for (check = (union bios32 *) 0xe0000;
-            check <= (union bios32 *) 0xffff0;
+       for (check = (union bios32 *) phystokv(0xe0000);
+            check <= (union bios32 *) phystokv(0xffff0);
             ++check) {
                if (check->fields.signature != BIOS32_SIGNATURE)
                        continue;
--
2.34.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]