Skip to content

Move some boot code from assembly to C

Frediano Ziglio xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 13 repliesIn review
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- rebased (with conflicts).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Use an include/boot directory to override headers for boot codexen/arch/x86/boot/Makefile+1 -13 replies
2/4x86/boot: Use header to allows inclusion of public xen.h headerxen/arch/x86/include/boot/public/xen.h+28 -05 replies
3/4x86/boot: Move some settings to Cxen/arch/x86/boot/build32.lds.S xen/arch/x86/boot/head.S xen/arch/x86/boot/reloc.c +1 more+26 -163 replies
4/4x86/boot: Use external symbols from cmdline_parse_earlyxen/arch/x86/boot/build32.lds.S xen/arch/x86/boot/cmdline.c xen/arch/x86/boot/head.S +4 more+28 -111 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] Move some boot code from assembly to C

As a continuation of this series start sorting out the issue of headers not compatible with 32 bit.
Instead of having to change headers which are almost only used for 64 bit allows to override headers or move reusable definitions to new shared headers.
This results in less changes.

Changes since v1:
- rebased (with conflicts).

Frediano Ziglio (4):
Use an include/boot directory to override headers for boot code x86/boot: Use header to allows inclusion of public xen.h header x86/boot: Move some settings to C
x86/boot: Use external symbols from cmdline_parse_early

 xen/arch/x86/boot/Makefile                |  2 +-
 xen/arch/x86/boot/build32.lds.S           |  4 ++++
 xen/arch/x86/boot/cmdline.c               | 14 ++++++++++--
 xen/arch/x86/boot/head.S                  | 19 +--------------
 xen/arch/x86/boot/reloc.c                 | 28 ++++++++++++++++++-----
 xen/arch/x86/boot/trampoline.S            |  2 +-
 xen/arch/x86/include/asm/guest/pvh-boot.h |  1 +
 xen/arch/x86/include/asm/setup.h          |  2 ++
 xen/arch/x86/include/boot/public/xen.h    | 28 +++++++++++++++++++++++
 xen/arch/x86/include/boot/xen/cpumask.h   |  1 +
 xen/arch/x86/include/boot/xen/string.h    | 10 ++++++++
 11 files changed, 83 insertions(+), 28 deletions(-)
 create mode 100644 xen/arch/x86/include/boot/public/xen.h
 create mode 100644 xen/arch/x86/include/boot/xen/cpumask.h
 create mode 100644 xen/arch/x86/include/boot/xen/string.h
Signature · 1 line
2.34.1