From: chuck Date: Sun, 19 Nov 1995 03:04:16 +0000 (+0000) Subject: in clcninit: we need to use IIOV to convert the physical address of X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=22da66df00989250d9f518f2826c27daf9fb7fce;p=openbsd in clcninit: we need to use IIOV to convert the physical address of the console to a virtual address. otherwise we can not print anything because our register pointer is wrong (this is on the 167). --- diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c index ae43b4f5851..f6f384f2a4b 100644 --- a/sys/arch/mvme68k/dev/cl.c +++ b/sys/arch/mvme68k/dev/cl.c @@ -1,4 +1,4 @@ -/* $Id: cl.c,v 1.3 1995/11/07 08:48:52 deraadt Exp $ */ +/* $Id: cl.c,v 1.4 1995/11/19 03:04:16 chuck Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -814,8 +814,8 @@ struct consdev *cp; cl_cons.cl_vaddr = mapiodev(cl_cons.cl_paddr,size); cd_pcc2_base = mapiodev(0xfff42000,pcc2_size); #else - cl_cons.cl_vaddr = (struct clreg *)cl_cons.cl_paddr; - cl_cons.pcctwoaddr = (void *)0xfff42000; + cl_cons.cl_vaddr = (struct clreg *)IIOV(cl_cons.cl_paddr); + cl_cons.pcctwoaddr = (void *)IIOV(0xfff42000); #endif cl_reg = cl_cons.cl_vaddr; /* reset the chip? */