diff options
| author | bernard <[email protected]> | 2025-05-12 19:29:35 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-05-19 18:29:26 +0800 |
| commit | 721dfbfe017583914d37ad30aea5d5634070ede2 (patch) | |
| tree | 7131d15474c0bd6e42b664280eda3ddee7a2f53c /components/lwp/SConscript | |
| parent | 2a525e82be23e13fe23e1bf96051ecb8f26f9cb2 (diff) | |
[smart] Add vDSO support for RISC-V architecture and refactor related components
- Implemented vDSO functionality for the RISC-V architecture, including the necessary source files and linker scripts.
- Introduced a new `vdso_sys.c` file for RISC-V, containing functions to handle time retrieval using the vDSO mechanism.
- Created architecture-specific linker scripts (`vdso.lds.S`) for both AArch64 and RISC-V.
- Updated the build system to support vDSO compilation for RISC-V, including necessary adjustments in `SConstruct` files.
- Refactored existing vDSO code to improve compatibility and maintainability across architectures.
- Adjusted the maximum number of PTY devices in the terminal configuration from 64 to 32 for better resource management.
- Fixed minor issues in existing code, including correcting the path for the vDSO shared library and ensuring proper function definitions.
Diffstat (limited to 'components/lwp/SConscript')
| -rw-r--r-- | components/lwp/SConscript | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/lwp/SConscript b/components/lwp/SConscript index cd8a2428a5..6eb8763fde 100644 --- a/components/lwp/SConscript +++ b/components/lwp/SConscript @@ -25,11 +25,14 @@ if platform in platform_file.keys(): # support platforms if arch in support_arch.keys() and cpu in support_arch[arch]: asm_path = 'arch/' + arch + '/' + cpu + '/*_' + platform_file[platform] arch_common = 'arch/' + arch + '/' + 'common/*.c' + common = 'arch/common/*.c' if not GetDepend('RT_USING_VDSO'): vdso_files = ['vdso_data.c', 'vdso.c'] src += [f for f in Glob(arch_common) if os.path.basename(str(f)) not in vdso_files] + src += [f for f in Glob(common) if os.path.basename(str(f)) not in vdso_files] else: src += Glob(arch_common) + src += Glob(common) if not GetDepend('ARCH_MM_MMU'): excluded_files = ['ioremap.c', 'lwp_futex.c', 'lwp_mm_area.c', 'lwp_pmutex.c', 'lwp_shm.c', 'lwp_user_mm.c'] src += [f for f in Glob('*.c') if os.path.basename(str(f)) not in excluded_files] + Glob(asm_path) |
