From 7c3f010cd6d378936bdeb43317d6f7717d36c9e5 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Mon, 14 Mar 2022 11:34:08 +0100 Subject: [PATCH] lx_emul: shadow asm/uaccess_32/64.h Issue #4450 --- .../spec/x86/lx_emul/shadow/asm/uaccess_32.h | 13 +++++++++++++ .../spec/x86/lx_emul/shadow/asm/uaccess_64.h | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 repos/dde_linux/src/include/spec/x86/lx_emul/shadow/asm/uaccess_32.h create mode 100644 repos/dde_linux/src/include/spec/x86/lx_emul/shadow/asm/uaccess_64.h diff --git a/repos/dde_linux/src/include/spec/x86/lx_emul/shadow/asm/uaccess_32.h b/repos/dde_linux/src/include/spec/x86/lx_emul/shadow/asm/uaccess_32.h new file mode 100644 index 0000000000..d2d1d7c99b --- /dev/null +++ b/repos/dde_linux/src/include/spec/x86/lx_emul/shadow/asm/uaccess_32.h @@ -0,0 +1,13 @@ +/* + * \brief Shadow copy of asm/uaccess_32.h + * \author Alexander Boettcher + * \date 2022-02-17 + */ + +#ifndef _ASM__UACCESS_32_H_ +#define _ASM__UACCESS_32_H_ + +unsigned long raw_copy_from_user(void *to, const void * from, unsigned long n); +unsigned long raw_copy_to_user(void *to, const void *from, unsigned long n); + +#endif /* _ASM__UACCESS_32_H_ */ diff --git a/repos/dde_linux/src/include/spec/x86/lx_emul/shadow/asm/uaccess_64.h b/repos/dde_linux/src/include/spec/x86/lx_emul/shadow/asm/uaccess_64.h new file mode 100644 index 0000000000..30218e162b --- /dev/null +++ b/repos/dde_linux/src/include/spec/x86/lx_emul/shadow/asm/uaccess_64.h @@ -0,0 +1,13 @@ +/* + * \brief Shadow copy of asm/uaccess_64.h + * \author Alexander Boettcher + * \date 2022-02-17 + */ + +#ifndef _ASM__UACCESS_64_H_ +#define _ASM__UACCESS_64_H_ + +unsigned long raw_copy_from_user(void *to, const void * from, unsigned long n); +unsigned long raw_copy_to_user(void *to, const void *from, unsigned long n); + +#endif /* _ASM__UACCESS_64_H_ */