public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] standalone application for ppc internal registers access
Date: Tue, 21 Apr 2009 12:54:19 +0200	[thread overview]
Message-ID: <m2myaa46qs.fsf@ohwell.denx.de> (raw)
In-Reply-To: <23148835.post@talk.nabble.com> (eija flight's message of "Mon, 20 Apr 2009 21:02:06 -0700 (PDT)")

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

      reply	other threads:[~2009-04-21 10:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-21  4:02 [U-Boot] standalone application for ppc internal registers access eija_flight
2009-04-21 10:54 ` Detlev Zundel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2myaa46qs.fsf@ohwell.denx.de \
    --to=dzu@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox