File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 55 *
66 * Change Logs:
77 * Date Author Notes
8+ * 2024-07-04 rcitach init ver.
89 * 2025-04-22 ScuDays Add VDSO functionality under the riscv64 architecture.
910 */
1011
Original file line number Diff line number Diff line change @@ -22,12 +22,10 @@ src = Glob('kernel/*.c')
2222src += Glob ('kernel/*.S' )
2323
2424
25-
26- PREFIX = rtconfig .PREFIX
27- CPP = PREFIX + 'cpp'
28- CPPFLAGS = ' -E -P -x assembler-with-cpp'
29- rtconfig .CPP = CPP
30- rtconfig .CPPFLAGS = CPPFLAGS
25+ if not hasattr (rtconfig , 'CPP' ) or rtconfig .CPP is None :
26+ rtconfig .CPP = rtconfig .PREFIX + 'cpp'
27+ if not hasattr (rtconfig , 'CPPFLAGS' ) or rtconfig .CPPFLAGS is None :
28+ rtconfig .CPPFLAGS = ' -E -P -x assembler-with-cpp'
3129
3230if not os .path .exists (cwd + "/user" + "/arch" + "/" + rtconfig .ARCH + "/vdso.lds" ):
3331 Preprocessing ("user/arch/" + rtconfig .ARCH + "/vdso.lds.S" , ".lds" , CPPPATH = [cwd ])
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ static inline uint64_t __arch_get_hw_counter()
3434 arch_counter_enforce_ordering ;
3535 return res ;
3636}
37-
37+ // 使用了rt_weak弱符号标记该函数,默认为10000000,请根据对应平台实现这个函数。
3838rt_weak inline uint64_t __arch_get_hw_frq ()
3939{
4040 return 10000000 ;
You can’t perform that action at this time.
0 commit comments