From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.247]) by ozlabs.org (Postfix) with ESMTP id 55111DDE43 for ; Sat, 2 Feb 2008 17:59:47 +1100 (EST) Received: by ag-out-0708.google.com with SMTP id 31so5394agc.0 for ; Fri, 01 Feb 2008 22:59:45 -0800 (PST) Message-ID: Date: Fri, 1 Feb 2008 23:59:45 -0700 From: "Grant Likely" Sender: glikely@secretlab.ca To: linuxppc-dev@ozlabs.org, jwboyer@gmail.com, scottwood@freescale.com, stephen.neuendorffer@xilinx.com Subject: Re: [RFC][POWERPC] bootwrapper: Add a firmware-independent simpleboot target. In-Reply-To: <20080202065517.12920.20235.stgit@trillian.secretlab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <20080202065517.12920.20235.stgit@trillian.secretlab.ca> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 2/1/08, Grant Likely wrote: > From: Grant Likely > > This target produces a flat binary rather than an ELF file, > fixes the entry point at the beginning of the image, and takes > a complete device tree with no fixups needed. > > Based on 'raw' target written by Scott Wood. > > Signed-off-by: Grant Likely > --- > diff --git a/arch/powerpc/boot/io.h b/arch/powerpc/boot/io.h > index ccaedae..ec57ec9 100644 > --- a/arch/powerpc/boot/io.h > +++ b/arch/powerpc/boot/io.h > @@ -99,4 +99,11 @@ static inline void barrier(void) > asm volatile("" : : : "memory"); > } > > +static inline void disable_irq(void) > +{ > + int dummy; > + asm volatile("mfmsr %0; rlwinm %0, %0, 0, ~(1<<15); mtmsr %0" : > + "=r" (dummy) : : "memory"); > +} > + > #endif /* _IO_H */ Oops, ignore this bit. This is leftover cruft from the original patch. I've now removed it. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.