Skip to content

Commit 7ea2112

Browse files
Andrew Boieandrewboie
authored andcommitted
userspace: properly namespace handler functions
Now prefixed with z_hdlr_ instead of just hdlr_. Signed-off-by: Andrew Boie <[email protected]>
1 parent 50be938 commit 7ea2112

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

kernel/include/syscall_handler.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static inline int z_obj_validation_check(struct _k_object *ko,
524524
*/
525525

526526
#define Z__SYSCALL_HANDLER0(name_) \
527-
u32_t hdlr_ ## name_(u32_t arg1 __unused, \
527+
u32_t z_hdlr_ ## name_(u32_t arg1 __unused, \
528528
u32_t arg2 __unused, \
529529
u32_t arg3 __unused, \
530530
u32_t arg4 __unused, \
@@ -533,7 +533,7 @@ static inline int z_obj_validation_check(struct _k_object *ko,
533533
void *ssf)
534534

535535
#define Z__SYSCALL_HANDLER1(name_, arg1_) \
536-
u32_t hdlr_ ## name_(u32_t arg1_, \
536+
u32_t z_hdlr_ ## name_(u32_t arg1_, \
537537
u32_t arg2 __unused, \
538538
u32_t arg3 __unused, \
539539
u32_t arg4 __unused, \
@@ -542,7 +542,7 @@ static inline int z_obj_validation_check(struct _k_object *ko,
542542
void *ssf)
543543

544544
#define Z__SYSCALL_HANDLER2(name_, arg1_, arg2_) \
545-
u32_t hdlr_ ## name_(u32_t arg1_, \
545+
u32_t z_hdlr_ ## name_(u32_t arg1_, \
546546
u32_t arg2_, \
547547
u32_t arg3 __unused, \
548548
u32_t arg4 __unused, \
@@ -551,7 +551,7 @@ static inline int z_obj_validation_check(struct _k_object *ko,
551551
void *ssf)
552552

553553
#define Z__SYSCALL_HANDLER3(name_, arg1_, arg2_, arg3_) \
554-
u32_t hdlr_ ## name_(u32_t arg1_, \
554+
u32_t z_hdlr_ ## name_(u32_t arg1_, \
555555
u32_t arg2_, \
556556
u32_t arg3_, \
557557
u32_t arg4 __unused, \
@@ -560,7 +560,7 @@ static inline int z_obj_validation_check(struct _k_object *ko,
560560
void *ssf)
561561

562562
#define Z__SYSCALL_HANDLER4(name_, arg1_, arg2_, arg3_, arg4_) \
563-
u32_t hdlr_ ## name_(u32_t arg1_, \
563+
u32_t z_hdlr_ ## name_(u32_t arg1_, \
564564
u32_t arg2_, \
565565
u32_t arg3_, \
566566
u32_t arg4_, \
@@ -569,7 +569,7 @@ static inline int z_obj_validation_check(struct _k_object *ko,
569569
void *ssf)
570570

571571
#define Z__SYSCALL_HANDLER5(name_, arg1_, arg2_, arg3_, arg4_, arg5_) \
572-
u32_t hdlr_ ## name_(u32_t arg1_, \
572+
u32_t z_hdlr_ ## name_(u32_t arg1_, \
573573
u32_t arg2_, \
574574
u32_t arg3_, \
575575
u32_t arg4_, \
@@ -578,7 +578,7 @@ static inline int z_obj_validation_check(struct _k_object *ko,
578578
void *ssf)
579579

580580
#define Z__SYSCALL_HANDLER6(name_, arg1_, arg2_, arg3_, arg4_, arg5_, arg6_) \
581-
u32_t hdlr_ ## name_(u32_t arg1_, \
581+
u32_t z_hdlr_ ## name_(u32_t arg1_, \
582582
u32_t arg2_, \
583583
u32_t arg3_, \
584584
u32_t arg4_, \

scripts/gen_syscall_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def gen_make_syscall(ret, argc, tabcount):
8181
# from gc-sections; these references will not consume space.
8282

8383
sys.stdout.write(
84-
"static Z_GENERIC_SECTION(hndlr_ref) __used void *href = (void *)&hdlr_##name; \\\n")
84+
"static Z_GENERIC_SECTION(hndlr_ref) __used void *href = (void *)&z_hdlr_##name; \\\n")
8585
tabs(tabcount)
8686
if (ret != Retval.VOID):
8787
sys.stdout.write("return (ret)")

scripts/gen_syscalls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def analyze_fn(match_group):
168168

169169
invocation = "%s(%s)" % (macro, argslist)
170170

171-
handler = "hdlr_" + func_name
171+
handler = "z_hdlr_" + func_name
172172

173173
# Entry in _k_syscall_table
174174
table_entry = "[%s] = %s" % (sys_id, handler)

0 commit comments

Comments
 (0)