summaryrefslogtreecommitdiff
path: root/components/lwp/vdso/vdso_config.h
blob: fd79b46b022ff79afd073062a171d4da7b088546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Copyright (c) 2006-2024 RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author         Notes
 * 2024-07-04     rcitach        init ver.
 */

#ifndef __ASM_VDSO_H
#define __ASM_VDSO_H

#ifdef __cplusplus
extern "C" {
#endif

#define __VVAR_PAGES        2
#define VDSO_PAGE_SHIFT     12
#define VDSO_PAGE_SIZE      (1 << VDSO_PAGE_SHIFT)

#define BIT_MASK(nr)        ((1) << (nr))

#ifndef read_barrier_depends
#define read_barrier_depends()      do { } while (0)
#endif

#ifndef smp_read_barrier_depends
#define smp_read_barrier_depends()  read_barrier_depends()
#endif

#define VDSO_PATH "../user/build/libvdso.so"

#ifdef __cplusplus
}
#endif

#endif  /* __ASM_VDSO_H */