public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: angelo <angelo70@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] m68k _int_handler help
Date: Tue, 24 May 2011 13:31:10 +0200	[thread overview]
Message-ID: <4DDB96FE.6060304@gmail.com> (raw)

Hi all,

i successfully ported u-boot on a custom board, that use mcf5307, and i 
would like to share my job in the next days.

I still have a strange issue anyway, maybe some u-boot / m68k expert can 
help me:
After relocation into SDRAM, timer_init (from board.c) is called, timer 
2 is initialized, and just after the first interrupt (31) is triggered. 
Once the handler terminate, the assembly "rte" make the u-boot to crash,
with exception (VEC 3, FMT 4, FAULT 4).


I verified the following:
1) after relocation in SDRAM the stack is set up properly, in the area 
just below the monitor code.
2) after relocation, the stack seems to be working properly, since many 
functions are called from ram before the timer_init().
3) i disabled all inside _int_handler, leaving it as (start.S)

_int_handler:
         rte

I can stop the program here before rte with a loop, so program until 
here works. But just after, rte generate the exception 3.

This is really a misterious issue. I don't see any reason why the stack 
frame should be wrong. Could it be compiler-related ?

Reagrds,
angelo

             reply	other threads:[~2011-05-24 11:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24 11:31 angelo [this message]
2011-05-25  3:46 ` [U-Boot] m68k _int_handler help Jin Zhengxiong-R64188

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=4DDB96FE.6060304@gmail.com \
    --to=angelo70@gmail.com \
    --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