Subject: Re: generic todr and timecounter support for next68k
To: Ken Hornstein <kenh@cmf.nrl.navy.mil>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: port-next68k
Date: 09/09/2006 10:29:49
Ken Hornstein wrote:
>> timecounters & todr patch.
>>
>> The following patch addresses support for NeXT 68k platforms for
>> timecounters and generic time-of-day support.  I've only compile tested
>> at this point, but it should work.
>>     
>
> This isn't exactly a next68k issue ... but I've been looking at
> examples of timecounter support and generic tod support (because
> the evbarm ts7200 kernel compile broke because of the generic tod
> changes, and I figure I'd look at timecounter support when I was
> in there).  The generic tod changes look simple enough.  But ... I
> was under the impression for timecounters, you need to call tc_init
> to initialize the clock source at some point, and I don't see this
> in this patch.  Am I wrong?  Is there a guide to timecountering a
> port?  Just a few paragraphs would be fine :-)
>   

You only need to call tc_init if you have a time counter.  The NeXT 68k
code lacks one, so just removing microtime and defining
__HAVE_TIMECOUNTER is adequate.

See http://kardel.dyndns.org/timecounters-status.html#converting  for
more details and advice.

    -- Garrett
> --Ken
>   


-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191