mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
lx_emul: shadow ARM-specific asm/uaccess.h file
Fix genodelabs/genode#4939
This commit is contained in:
parent
b15fd68b60
commit
edcd44d9a7
@ -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
|
Loading…
Reference in New Issue
Block a user