From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Tue, 21 Apr 2009 12:54:19 +0200 Subject: [U-Boot] standalone application for ppc internal registers access In-Reply-To: <23148835.post@talk.nabble.com> (eija flight's message of "Mon, 20 Apr 2009 21:02:06 -0700 (PDT)") References: <23148835.post@talk.nabble.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi eija_flight, > I am using GCC inline assembly in standalone applications to access my cpu > (ppc) internal registers. And it seems some of the registers were needed by > U-boot to run, because when I am accessing some of these registers via > standalone applications, the board will go reset or hangs. > > Is there any method to avoid this reset/hangs matter and peacefully back to > U-boot after exiting the standalone applications? because I need to use each > of registers, respectively. There once was the extraordinary idea of saving registers before usage and restoring them on exit. Cheers Detlev -- "Oh, didn't you know, the Lord did the original programming of the universe in COBOL." - "That's why the world is the evil work of Satan. A true divine being would have used Scheme." - "And, if so, Jesus would have been crucified on a big lambda symbol." -- K. Chafin, K. Schilling & D. Hanley, on comp.lang.lisp -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de