public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] program exception trap 700
@ 2008-11-23 11:59 raj shekar
  0 siblings, 0 replies; 2+ messages in thread
From: raj shekar @ 2008-11-23 11:59 UTC (permalink / raw)
  To: u-boot

?
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..
}
?
?

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

* [U-Boot] program exception trap 700
@ 2008-11-24  3:55 raj shekar
  0 siblings, 0 replies; 2+ messages in thread
From: raj shekar @ 2008-11-24  3:55 UTC (permalink / raw)
  To: u-boot








? 
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.. 
} 
? 
? 

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

end of thread, other threads:[~2008-11-24  3:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24  3:55 [U-Boot] program exception trap 700 raj shekar
  -- strict thread matches above, loose matches on Subject: below --
2008-11-23 11:59 raj shekar

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