]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/syscall_shim: Use global scope inline asm for execenv prologue
authorSergiu Moga <sergiu@unikraft.io>
Mon, 10 Mar 2025 16:24:54 +0000 (18:24 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 17 Apr 2025 12:12:01 +0000 (12:12 +0000)
commitf38bce203c352de98ba81da2b53561e77cbf74c9
treec90faa7d6c2aaf2bf3e18d1060a6f3ff601b417b
parent5050e9f11e57a17bd18d4f1a3478010b329c6855
lib/syscall_shim: Use global scope inline asm for execenv prologue

Avoid having to use weird and unconventional function attributes by
writing the inline assembly in a global scope. This is especially
useful for ARM64 as it does not support the naked attribute on GCC.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
GitHub-Closes: #1598
lib/syscall_shim/arch/arm64/include/arch/syscall_prologue.h
lib/syscall_shim/arch/x86_64/include/arch/syscall_prologue.h