LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Beisert <jbeisert@eurodsn.de>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Debugging with BDI
Date: Fri, 18 Jul 2003 11:26:35 +0200	[thread overview]
Message-ID: <200307181126.35714.jbeisert@eurodsn.de> (raw)


Hi all,

I'm trying to debug my u-boot with BDI. It's a 405GP system.
In the telnet sessoin I can insert "reset run" and the u-boot starts. When I
enter "reset halt" and then "go" it won't do anything. I have tried with ddd
and I see a few instructions work up to the mtmsr instruction (with "restart
halt", "bi 0xfffc0100"and "go" at the BDI telent and then start the ddd)

See file cpu/ppc4xx/start.S:
#if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_405)
 /*----------------------------------------------------------------------- */
 /* Clear and set up some registers. */
 /*----------------------------------------------------------------------- */
          addi    r4,r0,0x0000
          mtspr   sgr,r4
          mtspr   dcwr,r4
          mtesr   r4               /* clear Exception Syndrome Reg */
          mttcr   r4                /* clear Timer Control Reg */
          mtxer   r4               /* clear Fixed-Point Exception Reg */
          mtevpr  r4              /* clear Exception Vector Prefix Reg */
          addi  r4,r0,0x1000    /* set ME bit (Machine Exceptions) */
          oris  r4,r4,0x0002      /* set CE bit (Critical Exceptions) */
          mtmsr   r4                  /* change MSR */
When I step the mtmsr instruction ddd shows address 0x700, and the esr
register has 0x8800'0000 (illegal instruction occured?????).
Same when I place a breakpoint behind the mtmsr instruction und use "cont"
instead of "stepi".

What is the difference between "reset run" and "reset halt", "go"?

Thanks in advance for any suggestion.

-- JB

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2003-07-18  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-18  9:26 Juergen Beisert [this message]
2003-07-18 10:07 ` Debugging with BDI Wolfgang Denk
2003-07-18 10:31   ` Juergen Beisert

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=200307181126.35714.jbeisert@eurodsn.de \
    --to=jbeisert@eurodsn.de \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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