Thanks for your reply very much. In my scenario, I want to write the panic info into the flash, but the panic is caused by interrupt routine, I cannot access the flash, so I think that if the flash-write function from u-boot can be called, the issue should be resolved.
Any other comments? Thanks! Shuyou -----Original Message----- From: Wolfgang Denk [mailto:w...@denx.de] Sent: 2011年3月31日 18:01 To: sywang Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] how does Linux call the function from u-boot? Dear "sywang", In message <E20D124831AF42E094DEFD4F59B45E9E@sywangPC> you wrote: > > how does Linux call the function from u-boot? Simply: it does not. When Linux starts running, U-Boot is gone and dead; nothing of it survives the boot of Linux except for the parameters passed to the Linux kernel. Linux has no idea which boot loader has been used to start it, nor can Linux call any functions from the boot loader. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Punishment becomes ineffective after a certain point. Men become in- sensitive. -- Eneg, "Patterns of Force", stardate 2534.7 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot