From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by ozlabs.org (Postfix) with ESMTP id 8DF06DE504 for ; Fri, 22 Aug 2008 19:48:57 +1000 (EST) Received: by rv-out-0506.google.com with SMTP id f6so362952rvb.9 for ; Fri, 22 Aug 2008 02:48:56 -0700 (PDT) Message-ID: <319b0ac50808220248x3e8b7db3s46b88b328aba9c0a@mail.gmail.com> Date: Fri, 22 Aug 2008 11:48:56 +0200 From: "=?ISO-8859-1?Q?S=E9bastien_Chr=E9tien?=" To: michael@ellerman.id.au Subject: Re: [machdep_calls] IRQ In-Reply-To: <1219382445.7861.60.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_32065_24134765.1219398536810" References: <319b0ac50808210013p677ebb91vf3b30748138c6d4c@mail.gmail.com> <1219305767.8008.14.camel@localhost> <319b0ac50808210123m81e8364od983d5dbbb601104@mail.gmail.com> <1219382445.7861.60.camel@localhost> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_32065_24134765.1219398536810 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ok thank you, I will begin to implement the irq functions 2008/8/22, Michael Ellerman : > > On Thu, 2008-08-21 at 10:23 +0200, S=E9bastien Chr=E9tien wrote: > > Exactly, I mean ppc_md.init_IRQ(). > > > Ok. What have I to setup in this function ? I set the mask and other > > registers. Is it right ? How do I chose the mask ? > > > It totally depends on your platform, I really can't tell you. You can > look at similar platform code if there is some, otherwise the reference > manual for your hardware or similar should have what you need. > > > > At the end of this funtion, IRQ are disable. Is that right ? So who > > does enable IRQs ? > > > Yes, irqs get enabled a bit later in start_kernel(). > > > cheers > > -- > Michael Ellerman > OzLabs, IBM Australia Development Lab > > wwweb: http://michael.ellerman.id.au > phone: +61 2 6212 1183 (tie line 70 21183) > > We do not inherit the earth from our ancestors, > we borrow it from our children. - S.M.A.R.T Person > > ------=_Part_32065_24134765.1219398536810 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ok thank you, I will begin to implement the irq functions

2008/8/22, Michael Ellerman <michael@ellerman.id.au>:
On Thu, 2008-08-21 at 10:23 +0200, S=E9bastien Chr=E9tien wrote:
> E= xactly, I mean ppc_md.init_IRQ().

> Ok. What have I to setup in= this function ? I set the mask and other
> registers. Is it right ?=   How do I chose the mask ?


It totally depends on your platform, I really can't tell you.= You can
look at similar platform code if there is some, otherwise the = reference
manual for your hardware or similar should have what you need= .


> At the end of this funtion, IRQ are disable. Is that right ?= So who
> does enable IRQs ?


Yes, irqs get enabled a bi= t later in start_kernel().


cheers

--
Michael Elle= rman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 62= 12 1183 (tie line 70 21183)

We do not inherit the earth from our a= ncestors,
we borrow it from our children. - S.M.A.R.T Person


------=_Part_32065_24134765.1219398536810--