What is purgatory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mips32 , kexec



mips-setup-simpile.S:


In purgatory code, kexec setuped  boot_note structure for kernel to
reboot.It accomplished

this by copying the "kexec" string address to the end of boot_note
struct ,  followed by the commandline

pointer stored behind,  and passed in the address of command_line to
second kernel by setting

the value of a1 register to the address of "kexec" string.



What puzzled me is that,in purgatory code,

why      "lw      t2,12(t4)"     could put t2 with the value of  size
of boot_notes?

As I know , t4 is the entry address of kernel , why this code above
could get the size of

boot_notes? how?

Does this mean every kernel of elf format has a head structure of boot_note?



Thank you



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux