public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] standalone application for ppc internal registers access
@ 2009-04-21  4:02 eija_flight
  2009-04-21 10:54 ` Detlev Zundel
  0 siblings, 1 reply; 2+ messages in thread
From: eija_flight @ 2009-04-21  4:02 UTC (permalink / raw)
  To: u-boot


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,
-- 
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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] standalone application for ppc internal registers access
  2009-04-21  4:02 [U-Boot] standalone application for ppc internal registers access eija_flight
@ 2009-04-21 10:54 ` Detlev Zundel
  0 siblings, 0 replies; 2+ messages in thread
From: Detlev Zundel @ 2009-04-21 10:54 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-21 10:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21  4:02 [U-Boot] standalone application for ppc internal registers access eija_flight
2009-04-21 10:54 ` Detlev Zundel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox