libsel4: Allow invocations to not use IPC buffer

Reintroduces Kconfig option removed in 5271925ba5
that allows invocations to use the WithMRs variants of syscalls instead of
using the IPC buffer
This commit is contained in:
Adrian Danis 2016-10-28 15:24:09 +11:00
parent dc3d53417e
commit be68b0c0bd
2 changed files with 11 additions and 1 deletions

View file

@ -26,6 +26,16 @@ config LIB_SEL4_INLINE_INVOCATIONS
for verification, so setting to 'n' will forcively prevent the function
from being inlined
config LIB_SEL4_STUBS_USE_IPC_BUFFER_ONLY
bool "use only IPC buffer for syscalls"
depends on LIB_SEL4
default n
help
When generating syscall wrappers, only use the IPC buffer for
marshalling and unmarshalling arguments. Without this option set,
arguments will be passed in registers where possible for better
performance.
config HAVE_LIB_SEL4
bool
endmenu

View file

@ -121,5 +121,5 @@ include/interfaces/sel4_client.h: \
@mkdir -p $(dir $@)
@${CHANGED_PATH} $@ \
${PYTHON} ${SOURCE_DIR}/tools/syscall_stub_gen.py \
--buffer \
$(if ${CONFIG_LIB_SEL4_STUBS_USE_IPC_BUFFER_ONLY},--buffer,) \
-a $(SEL4_ARCH) -c ${srctree}/.config -o $@ $^