Skip to content

UML fixes for tip:x86/syscall

H. Peter Anvin linux-kbuild linux-um lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3um: Run host archheaders, allow use of host generated headersarch/um/Makefile+6 -11 reply
2/3um: Generate headers before generating user-offsets.sarch/um/Makefile+1 -10 replies
3/3x86, um: Use the same style generated syscall tables as nativearch/x86/um/Makefile arch/x86/um/sys_call_table_32.S arch/x86/um/sys_call_table_32.c +2 more+84 -460 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] UML fixes for tip:x86/syscall

From: "H. Peter Anvin" <[email protected]>

The patch series currently in -tip as x86/syscall, which builds syscall tables from a simple text file also broke UML.

I intend to apply this patch to tip:x86/syscall, but if the UML folks would either holler or ack that would be appreciated.

This patch series enables using generated host header files in UML, and then uses the new x86 generated syscall tables in the same uniform style as the native kernel.

The native kernel relies on asm-offsets.h to generate the syscall fencepost symbols automatically (it is done that way rather in the script to make the future extension to multiple supported ABIs work better.) On UML, asm-offsets.h is generated globally, but user-constants.h has per-subarchitecture support; it feels a little like an odd place for it but I put the fenceposts there. The UML folks might want to holler if that is too broken.

 arch/um/Makefile                |    9 +++++-
 arch/x86/um/Makefile            |    3 +-
 arch/x86/um/sys_call_table_32.S |   26 ------------------
 arch/x86/um/sys_call_table_32.c |   55 +++++++++++++++++++++++++++++++++++++++
 arch/x86/um/sys_call_table_64.c |   31 ++++++++-------------
 arch/x86/um/user-offsets.c      |   15 ++++++++++
 6 files changed, 91 insertions(+), 48 deletions(-)