Thanks Stenfan for your valuable inputs. I have implemented the code suggested by you after completing the ddr initialization :
#if defined(CONFIG_DDR_DATA_EYE) /* * Running denali_core_search_data_eye() when ECC is enabled * causes non-ECC machine checks. This clears them. */ print_mcsr(); mtspr(SPRN_MCSR, mfspr(SPRN_MCSR)); print_mcsr(); #endif before mtspr and after mtspr i am getting the same prints i.e EE,ME,CE disabled. I am further debugging the same issue. On Thu, Jan 14, 2010 at 3:54 PM, Stefan Roese <s...@denx.de> wrote: > On Thursday 14 January 2010 10:39:57 anupbeh...@gmail.com wrote: > > now as I am getting u-boot prompt that means DDR initilised properly. > > now I am debuging for trap_init and flash_init(). > > Could be that your DDR init code somehow generates an exception that is > triggered once trap_init() is called. This is also know to happen in the > common denali_data_eye code. See here: > > #if defined(CONFIG_DDR_DATA_EYE) > /* > * Running denali_core_search_data_eye() when ECC is enabled > * causes non-ECC machine checks. This clears them. > */ > print_mcsr(); > mtspr(SPRN_MCSR, mfspr(SPRN_MCSR)); > print_mcsr(); > #endif > > I suggest you analyse this and the Denali registers for any source/status > of a > generated exception. > > Cheers, > Stefan > > -- > DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de >
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot