From edcd44d9a7b87ac64bc47a6fb82c3e575dc2902f Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Wed, 28 Jun 2023 15:04:52 +0200 Subject: [PATCH] lx_emul: shadow ARM-specific asm/uaccess.h file Fix genodelabs/genode#4939 --- .../shadow/arch/arm/include/asm/uaccess.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 repos/dde_linux/src/include/lx_emul/shadow/arch/arm/include/asm/uaccess.h diff --git a/repos/dde_linux/src/include/lx_emul/shadow/arch/arm/include/asm/uaccess.h b/repos/dde_linux/src/include/lx_emul/shadow/arch/arm/include/asm/uaccess.h new file mode 100644 index 0000000000..f9cc087240 --- /dev/null +++ b/repos/dde_linux/src/include/lx_emul/shadow/arch/arm/include/asm/uaccess.h @@ -0,0 +1,21 @@ +/** + * \brief Shadow copy of asm/uaccess.h + * \author Josef Soentgen + * \date 2022-01-14 + */ + +#ifndef _ASM__UACCESS_H_ +#define _ASM__UACCESS_H_ + +#include_next + +#undef put_user +#undef get_user + +#define get_user(x, ptr) ({ (x) = *(ptr); 0; }) +#define put_user(x, ptr) ({ *(ptr) = (x); 0; }) + +#undef __put_user +#define __put_user(x, ptr) ({ *(ptr) = (x); 0; }) + +#endif