What is the meaning of _NTO_INTR_SPARE at the startup_intrinfo ?
"Pusik Park" <parksik-nG/[email protected]> Mon, 18 Feb 2008 17:48:17 +0900
| Newsgroups | gmane.os.qnx.openqnx.devel |
|---|---|
| Message-ID | <001f01c8720b$01e2b2e0$05a818a0$@kr> |
?)7/ :N:P@87N 18<:5H MIME G|=D@G 8^=CAv@T4O4Y.
--===============1432744876==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0020_01C87256.71CA5AE0"
Content-Language: ko
?)7/ :N:P@87N 18<:5H MIME G|=D@G 8^=CAv@T4O4Y.
------=_NextPart_000_0020_01C87256.71CA5AE0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hello.
My 32-bit ARM9 RISC SoC has just 1 interrupt controller with 29 interrupt
sources.
If I understood the cascaded vector's meaning well, I doesn't need cascaded
vectors.
Is it right ?
const static struct startup_intrinfo intrs[] = {
{ _NTO_INTR_CLASS_EXTERNAL, // vector
base
32, //
number of vectors
_NTO_INTR_SPARE, //
cascade vector
0, //
CPU vector base
0, //
CPU vector stride
0, //
flags
{ INTR_GENFLAG_LOAD_SYSPAGE, 0, &interrupt_id_jaguar2
},
{ INTR_GENFLAG_LOAD_SYSPAGE |
INTR_GENFLAG_LOAD_INTRMASK, 0, &interrupt_eoi_jaguar2 },
&interrupt_mask_jaguar2, // mask callout
&interrupt_unmask_jaguar2, // unmask callout
0, // config
callout
}
The upper source code is my startup_intrinfo but I think its source code has
the problem.
I think that there is some proper value for a cascade vector instead of
_NTO_INTR_SPACE.
Actually, I didn't understand the meaning of the cascade vector.
Please help me.
Best regards.
Pusik.
------=_NextPart_000_0020_01C87256.71CA5AE0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"\B9D1\C740 \ACE0\B515";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:"\@\B9D1\C740 \ACE0\B515";
panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
text-autospace:none;
word-break:break-hangul;
font-size:10.0pt;
font-family:"\B9D1\C740 \ACE0\B515";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"\B9D1\C740 \ACE0\B515";
color:windowtext;}
..MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DKO link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US>Hello.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>My 32-bit ARM9 RISC SoC has just =
1
interrupt controller with 29 interrupt sources.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>If I understood the cascaded =
vector’s
meaning well, I doesn’t need cascaded =
vectors.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Is it right =
?<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>const static struct =
startup_intrinfo intrs[]
=3D {<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
{ =
_NTO_INTR_CLASS_EXTERNAL,
=
//
vector base<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
=
32, &nbs=
p; =
&=
nbsp; =
//
number of vectors<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
=
_NTO_INTR_SPARE, &nb=
sp; &nbs=
p; //
cascade vector<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
=
0,  =
; =
&=
nbsp; &n=
bsp; //
CPU vector base<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
=
0,  =
; =
&=
nbsp; &n=
bsp; //
CPU vector stride<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
=
</span><span
lang=3DDE>0, &=
nbsp; =
&=
nbsp; &n=
bsp; //
flags<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DDE> &nb=
sp; {
INTR_GENFLAG_LOAD_SYSPAGE, 0, &interrupt_id_jaguar2 =
},<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DDE> &nb=
sp; {
INTR_GENFLAG_LOAD_SYSPAGE | INTR_GENFLAG_LOAD_INTRMASK, 0, =
&interrupt_eoi_jaguar2
},<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DDE> &nb=
sp; =
&interrupt_mask_jaguar2, &nb=
sp; //
mask callout<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DDE> &nb=
sp; </span><span
lang=3DEN-US>&interrupt_unmask_jaguar2, =
//
unmask callout<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
=
0, =
&=
nbsp; &n=
bsp; //
config callout<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
}<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>The upper source code is my
startup_intrinfo but I think its source code has the =
problem.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I think that there is some =
proper value for
a cascade vector instead of _<i>NTO_INTR</i>_SPACE. =
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Actually, I didn’t =
understand the meaning
of the cascade vector.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Please help =
me.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Best =
regards.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Pusik.<o:p></o:p></span></p>
</div>
</body>
</html>
------=_NextPart_000_0020_01C87256.71CA5AE0--
--===============1432744876==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============1432744876==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
openqnx-developer mailing list
openqnx-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
--===============1432744876==--