* 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