NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-cobalt/44292: -current kernels do not work on (my) cobalt qube 2 since one (1!) year
The following reply was made to PR port-cobalt/44292; it has been noted by
GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-cobalt/44292: -current kernels do not work on (my) cobalt
qube 2 since one (1!) year
Date: Thu, 20 Jan 2011 01:27:05 +0900
> > > - SET(sc->sc_mcr, MCR_PRESCALE);
> > > - sc->sc_frequency /= 4;
>
> Presumably MCR_PRESCALE is generating a divide by 4.
> So doing this more than once generates an invalid sc_frequency ??
It's in com_attach_subr() so only once per attach,
but it causes a problem if com(4) is already initialized
in cnattach(), which doesn't care prescaler.
> So should this just be dependant on whether MCR_PRESCALE is already set?
Presclaer is quite device dependent, so MCR_PRESSCALE should be set
and sc_frequency should be adjusted in MD sys/arch/amiga/dev/com_supio.c
attachment, I think.
> I guess SET(a,b) is '(a) |= (b)' just to confuse things.
It's a separate discussion. (unless you will do cleanup the whole sources)
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index