standalone application for ppc internal registers access
Hello,
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.
Best regards,
Signature · 2 lines
View this message in context: http://www.nabble.com/-U-Boot--standalone-application-for-ppc-internal-registers-access-tp23148835p23148835.html Sent from the Uboot - Users mailing list archive at Nabble.com.
Hi eija_flight,
Quoted 8 lines
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
Signature · 8 lines
"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