diff options
| author | Shell <[email protected]> | 2022-12-20 17:49:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-20 17:49:37 +0800 |
| commit | e8504c7cf1d03c07608e2197eaef728a6aecde7a (patch) | |
| tree | 744bbacef2efbd8afbf04cc63e4d287b38ebcc65 /libcpu/aarch64/common/hypercall.c | |
| parent | f0ef8ada33833942684a6280314160de8c355302 (diff) | |
[smart/aarch64] code sync (#6750)
* [smart/aarch64] sync aarch64
Diffstat (limited to 'libcpu/aarch64/common/hypercall.c')
| -rw-r--r-- | libcpu/aarch64/common/hypercall.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libcpu/aarch64/common/hypercall.c b/libcpu/aarch64/common/hypercall.c new file mode 100644 index 0000000000..73b64d5aae --- /dev/null +++ b/libcpu/aarch64/common/hypercall.c @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2022-02-24 GuEe-GUI first version + */ + +#include <hypercall.h> + +rt_err_t rt_hv_stage2_map(unsigned long paddr, unsigned long size) +{ + return rt_hw_hypercall(120, paddr & (~4095), (paddr & (~4095)) + size, (1 << 0) | (1 << 1) | (1 << 4), 0, 0, 0, 0); +} |
