diff options
author | chuck <chuck@cvs.openbsd.org> | 1995-11-19 03:04:17 +0000 |
---|---|---|
committer | chuck <chuck@cvs.openbsd.org> | 1995-11-19 03:04:17 +0000 |
commit | bfd83a99f0a4ceac125f36b17bbfd25cf77945ca (patch) | |
tree | d034bc7641edaca220cb6dcff499c1ebbe65d3da | |
parent | b0f740e109fee323bd57d68d575c4797dcbc929d (diff) |
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).
-rw-r--r-- | sys/arch/mvme68k/dev/cl.c | 6 |
1 files changed, 3 insertions, 3 deletions
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? */ |