lx_emul: shadow ARM-specific asm/uaccess.h file

Fix genodelabs/genode#4939
This commit is contained in:
Stefan Kalkowski 2023-06-28 15:04:52 +02:00 committed by Norman Feske
parent b15fd68b60
commit edcd44d9a7

View File

@ -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 <asm/uaccess.h>
#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