summaryrefslogtreecommitdiff
path: root/components/lwp/vdso/kernel/vdso.h
blob: 1cb3b44e8cad8fa36e262908efca1ef8b2484bbd (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
39
/*
 * 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 _VDSO_H
#define _VDSO_H

#include <lwp.h>
#include <mmu.h>
#include <vdso_config.h>
#include <vdso_datapage.h>

#ifdef __cplusplus
extern "C" {
#endif

extern char __vdso_text_start[];
extern char __vdso_text_end[];

#define ELF_HEAD "\177ELF"
#define ELF_HEAD_LEN 4
#define MAX_PAGES 5

#define __page_aligned_data	__attribute__((section(".data.vdso.datapage"))) __attribute__((aligned(VDSO_PAGE_SIZE)))

int arch_setup_additional_pages(struct rt_lwp *lwp);
void rt_vdso_update_glob_time(void);

#ifdef __cplusplus
}
#endif

#endif /* _VDSO_H */