From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chetan Nanda Date: Tue, 20 May 2008 15:10:13 +0530 Subject: [U-Boot-Users] question about interrupt In-Reply-To: <20080520092345.D27B224312@gemini.denx.de> References: <7f245da80805200136y297e5309k110f1b193981ac16@mail.gmail.com> <20080520092345.D27B224312@gemini.denx.de> Message-ID: <7f245da80805200240o7dde7b3bl83875b910d69ad08@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, May 20, 2008 at 2:53 PM, Wolfgang Denk wrote: > In message <7f245da80805200136y297e5309k110f1b193981ac16@mail.gmail.com> you wrote: >> >> as i have mentioned, u-boot do not handle any interrupt, and neither > > In this general form, the statement is wrong. > > Depending on architecture, U-Boot does implement and use interrupts. > It even exports an interface to standalone applications which allows > to register custom interrupt handlers. So if someone enable a interrupt and handled it properly then at the time of interrupt handler will be called, but how then control reaches back to u-boot original task that was running prior to interrupt delivery? I mean who is taking care of context switch at the time of interrupts? > > It's just just most U-Boot drivers do not use interrupts but polling > mode - note that there are exceptions from this rule, too. > > Best regards, > > Wolfgang Denk > > -- > DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de > A modem is a baudy house. >