Skip to content

kexec: Move segment code to assembly files

Magnus Damm lkml 1 version In review

Get series with b4
b4 am 20061205133757.25725.96929.sendpatchset@localhost

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kexec: Move segment code to assembly file (i386)arch/i386/kernel/machine_kexec.c arch/i386/kernel/relocate_kernel.S+53 -640 replies
2/2kexec: Move segment code to assembly file (x86_64)arch/x86_64/kernel/machine_kexec.c arch/x86_64/kernel/relocate_kernel.S+45 -630 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/02] kexec: Move segment code to assembly files

kexec: Move segment code to assembly files

The following patches rearrange the lowlevel kexec code to perform idt, gdt and segment setup code in assembly on the code page instead of doing it in inline assembly in the C files.

Our dom0 Xen port of kexec and kdump executes the code page from the hypervisor when kexec:ing into a new kernel. Putting as much code as possible on the code page allows us to keep the amount of duplicated code low.

These patches are part of the Xen port of kexec and kdump which recently has been accepted into the xen-unstable.hg tree. Sending them upstream now is an attempt to simplify future porting work.

---

Applies to 2.6.19.

 arch/i386/kernel/machine_kexec.c     |   59 ----------------------------------
 arch/i386/kernel/relocate_kernel.S   |   58 ++++++++++++++++++++++++++++++---
 arch/x86_64/kernel/machine_kexec.c   |   58 ---------------------------------
 arch/x86_64/kernel/relocate_kernel.S |   50 +++++++++++++++++++++++++---
 4 files changed, 98 insertions(+), 127 deletions(-)