1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Author: Huacai Chen <chenhuacai@loongson.cn>
4 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
12 static inline unsigned long get_vdso_base(void)
17 " la.pcrel %0, _start\n"
25 static inline const struct vdso_data *get_vdso_data(void)
27 return (const struct vdso_data *)(get_vdso_base() - PAGE_SIZE);
30 #endif /* __ASSEMBLY__ */