bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 2/6] fix hardcoded physical address


From: Luca Dariz
Subject: [PATCH 2/6] fix hardcoded physical address
Date: Sun, 12 Feb 2023 18:03:09 +0100

* i386/i386at/com.c use proper helper to convert physical to virtual
  address.
---
 i386/i386at/com.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index 000475db..de21206c 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -276,7 +276,7 @@ comcninit(struct consdev *cp)
 
        {
                char    msg[128];
-               volatile unsigned char *p = (volatile unsigned char *)0xb8000;
+               volatile unsigned char *p = (volatile unsigned char 
*)phystokv(0xb8000);
                int     i;
 
                sprintf(msg, "    **** using COM port %d for console ****",
-- 
2.30.2




reply via email to

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