Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7be4d5

Browse files
committed
Basic support for dynamic app loading
1 parent3845943 commita7be4d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎arch/arm/core/aarch32/userspace.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ SECTION_FUNC(TEXT,z_arm_userspace_enter)
145145
#else
146146
eors.n r1, r1
147147
#endif
148-
bl memset
148+
#bl memset
149149

150150
#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE)
151151
pop {r0, r1}

‎include/toolchain/common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
* disallow us to test system calls in POSIX unit testing (currently
127127
* not used).
128128
*/
129-
#ifndefZTEST_UNITTEST
129+
#if !defined(ZTEST_UNITTEST)&& !defined(CONFIG_USERLIB)
130130
#define__syscall static inline
131131
#else
132132
#define__syscall

‎scripts/gen_syscalls.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def wrapper_defs(func_name, func_type, args):
171171
decl_arglist=", ".join([" ".join(argrec)forargrecinargs])
172172

173173
wrap="extern %s z_impl_%s(%s);\n"% (func_type,func_name,decl_arglist)
174-
wrap+="static inline%s %s(%s)\n"% (func_type,func_name,decl_arglist)
174+
wrap+="#ifndef CONFIG_USERLIB\nstatic inline\n#endif\n%s %s(%s)\n"% (func_type,func_name,decl_arglist)
175175
wrap+="{\n"
176176
wrap+="#ifdef CONFIG_USERSPACE\n"
177177
wrap+= ("\t"+"u64_t ret64;\n")ifret64else""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp