Thread (5 messages) 5 messages, 3 authors, 2002-01-25

Re: OpenPIC_NumInitSenses

flat view

From: Paul Mackerras <hidden>
Date: 2002-01-25 04:04:17

Dan Malek writes:
Just like the comment states, we need it because of the way the
107/EPIC maps on the "standard" OpenPIC structure.  The simple
Well, you need some way to tell the openpic code how many ISRs there
are.  You don't _need_ to use OpenPIC_NumInitSenses to do that. :)
answer is the interrupts are offset by 16 on the EPIC, so the
interrupt numbers don't match the offset value.  The EPIC may
say there are only 24 vectors, but for the code to work we need
to tell the OpenPIC code there are up to 16 more than that.
... and they are not contiguous either (I just looked at the MPC107
manual).  Who designed this thing?

Anyway, openpic_set_sources will let you say clearly and explicitly
where the ISRs are and how many of them there are.  I have checked it
in, have a look - I think it should let you handle the MPC107 quite
painlessly, but if not let me know what else is needed.

Paul.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help