spi: efm32: Convert to use GPIO descriptors
[linux/fpc-iii.git] / arch / csky / abiv2 / inc / abi / vdso.h
blobb60d4a07032636e862840ee0d0432e94a3b97b67
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ABI_CSKY_VDSO_H
4 #define __ABI_CSKY_VDSO_H
6 #include <linux/uaccess.h>
8 static inline int setup_vdso_page(unsigned short *ptr)
10 int err = 0;
12 /* movi r7, 173 */
13 err |= __put_user(0xea07, ptr);
14 err |= __put_user(0x008b, ptr+1);
16 /* trap 0 */
17 err |= __put_user(0xc000, ptr+2);
18 err |= __put_user(0x2020, ptr+3);
20 return err;
23 #endif /* __ABI_CSKY_STRING_H */