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

Frediano Ziglio posted 4 patches 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20241122093358.478774-1-frediano.ziglio@cloud.com
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
[PATCH v2 0/4] Move some boot code from assembly to C
Posted by Frediano Ziglio 2 weeks ago
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

-- 
2.34.1
Re: [PATCH v2 0/4] Move some boot code from assembly to C
Posted by Frediano Ziglio 4 days, 14 hours ago
ping

On Fri, Nov 22, 2024 at 9:34 AM Frediano Ziglio
<frediano.ziglio@cloud.com> wrote:
>
> 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
>