
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:wd@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