[U-Boot] standalone application for ppc internal registers access

Detlev Zundel dzu at denx.de
Tue Apr 21 12:54:19 CEST 2009


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


More information about the U-Boot mailing list