kexec: Clearing registers just before jumping into purgatory

Daniel Kiper daniel.kiper at oracle.com
Fri Oct 11 05:28:37 EDT 2013


Hi,

Could you explain why do you clear all registers just before jumping
into purgatory (please look into arch/x86/kernel/relocate_kernel_64.S
for more details)? There is no any single word about that. I do not
count comment which states what is going on. purgatory on entry does
not assume any value in registers. Are you going to use that feature
for something in the future (e.g. to differentiate between callers
and/or Linux versions if it be needed)?

By the way, interestingly it is not done if preserve_context is in force.

Daniel



More information about the kexec mailing list