[U-Boot] how does Linux call the function from u-boot?

sywang
2011-03-31T23:59:58Z

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 at denx.de]
Sent: 2011?3?31? 18:01
To: sywang
Cc: u-boot at 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: wd at denx.de
Punishment becomes ineffective after a certain point. Men become in-
sensitive.
-- Eneg, "Patterns of Force", stardate 2534.7