From: raj shekar <rajshekar_py@yahoo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] program exception trap 700
Date: Sun, 23 Nov 2008 19:55:58 -0800 (PST) [thread overview]
Message-ID: <831719.70215.qm@web52812.mail.re2.yahoo.com> (raw)
?
I ?am working on ?mpc8548cds board ?
?
Feature : POST DIAGNOSTICS;
?
In ?u-boot :? post/memory.c,cpu.c..etc..
?
Need your suggestion?
?
There is function pointers in post.c which calls the respective function to perform diag test ( example ram , cpu, ether ..etc ) which will be picked from tests.c ( This is the structure which defines all the fileds of the tests)
?
Function pointer defined in post.c
?
static int post_run_single (struct post_test *test,
??????????????????????????????????????????????????????? int test_flags, int flags, unsigned int i) {
?
..
if ((*test->test) (flags) != 0) {???????????? ( This function pointers will call cpu tests from post/cpu.c defined below based tested entered from u-boot promt ?)
? post_log ("FAILED\n")
} else {
post_log ("PASSED\n")
}
?
------------------------------------------------------------------------------------------------------------
CASE 1 Experiment :
Post/cpu.c
?
int cpu_post_test (int flags)
{
??????? int ic = icache_status ();
??????? int? ret = 0;
??????? int c;
??????? post_result_cpu = 0;
??????? cpu_dbg = 0;
??????? boot_flag_post = 0;
?
?????? printf( ? Testing cpu diag \n?);?? ? TRAP IS Generated and box got rebooted.
?
?????? Other part of code exits..
}
?
?
next reply other threads:[~2008-11-24 3:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 3:55 raj shekar [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-11-23 11:59 [U-Boot] program exception trap 700 raj shekar
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=831719.70215.qm@web52812.mail.re2.yahoo.com \
--to=rajshekar_py@yahoo.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