From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: In-Reply-To: <4609BF47.6030306@am.sony.com> References: <20070327222840.GA1266@mag.az.mvista.com> <4609BF47.6030306@am.sony.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [PATCH] powerpc: Disable external interrupts in bootwrapper Date: Wed, 28 Mar 2007 18:57:09 +0200 To: Geoff Levand Cc: linuxppc-dev , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> Disable external interrupts very early in the bootwrapper in case >> the firmware left a device generating interrupts. > > This is just a guess at what is happening, but I think the OF on my > G5 uses the timer interrupt as a kind of watchdog timer, so that if > the loaded code hangs, OF will regain control. If you disable > interrupts, you may loose this functionality. Apple OF uses the decrementer to implement all kinds of alarms. Calling "quiesce" will shut off EE. Shutting it off manually before that might result in weird behaviour. Segher