WIP FPC-III support
[linux/fpc-iii.git] / arch / csky / abiv1 / inc / abi / vdso.h
blob14352f524f1d11a4612c9628729db8121e82107c
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include <linux/uaccess.h>
5 static inline int setup_vdso_page(unsigned short *ptr)
7 int err = 0;
9 /* movi r1, 127 */
10 err |= __put_user(0x67f1, ptr + 0);
11 /* addi r1, (139 - 127) */
12 err |= __put_user(0x20b1, ptr + 1);
13 /* trap 0 */
14 err |= __put_user(0x0008, ptr + 2);
16 return err;