[okl4-developer] About jiffies in wombat

kashin Lin kashin08 at gmail.com
Wed Jan 9 04:29:18 EST 2008


Hi Nelson & glee,

thanks for your quick reply.

when i build okl4 with "driver" example, i got following warnings and abort
building process.

[CC ] build/iguana/drivers_example/object/src/drivers_example.o
iguana/example/drivers/src/drivers_example.c: In function `init_serial':
iguana/example/drivers/src/drivers_example.c:378: warning: implicit
declaration of function `iguana_getenv'
iguana/example/drivers/src/drivers_example.c:378: warning: nested extern
declaration of `iguana_getenv'
iguana/example/drivers/src/drivers_example.c: In function `init_timer':
iguana/example/drivers/src/drivers_example.c:504: warning: nested extern
declaration of `iguana_getenv'
iguana/example/drivers/src/drivers_example.c:378: warning: redundant
redeclaration of 'iguana_getenv'
iguana/example/drivers/src/drivers_example.c:378: warning: previous implicit
declaration of 'iguana_getenv' was here
scons: *** [build/iguana/drivers_example/object/src/drivers_example.o] Error
1
scons: building terminated because of errors.

i didn't change any source code of it. how to fix it?


i have some addition question about timer driver:
what does"handling timeouts correctly" mean?
does it mean i should check if timer's period setting effectively?
or there are some actions i should do when timeout occurs? (ex: ?)

what should i implement in "device_interrupt_impl" ?
what does the return value indicate?

thanks in advance


Best,
kashin lin

2008/1/8, Nelson Tam <nelson at ok-labs.com>:
>
> On 08/01/2008, at 3:09 AM, Geoffrey Lee wrote:
>
> > On Mon, Jan 07, 2008 at 05:11:46PM +0800, kashin Lin wrote:
> >>
> >> but when i tried to use wombat as l4 application, it stop at "while
> >> (ticks
> >> == jiffies) ;"  in src/linux/kernel-2.6.11-v2/init/calibrate.c.
> >>
> >> it seems the
> >> "jiffies" doesn't change in this case. so i wonder what may cause
> >> this ?
> >>
> >> i guess it may related to timer driver in src/drivers/. (i port a
> >> timer
> >> driver named "davinci_timer" too)
> >>
> >> if the
> >> problem resulted from that driver, are there anything i should take
> >> care or
> >> must implement when i write the timer driver ?
> >
> >
> > At the very least you need to make sure that your timer driver can
> > correctly
> > handle timeouts.  Try running the drivers example, that has code which
> > does some basic tests for your timer.
>
>
> Hi Kashin,
>
> In particular, do make sure that when the drivers example calls
> virtual_timer_current_time(), the return value is increasing over time.
>
> Possible reasons why it isn't working:
>
> 1. the mapping isn't actually pointing to device registers (check your
> physical address defined in device core)
>
> 2. timer needs to be enabled or setup properly (this really depends on
> your
> hardware)
>
> 3. the mapping is mapped as cached (nasty, but I don't think this is
> your
> problem)
>
> Also like Geoff said, make sure that your driver is handling timeouts
> correctly.
>
> Enjoy,
>
> Nelson.
> --
> (nt)
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080109/75c27c3e/attachment.htm 


More information about the Developer mailing list