Commit 26acd9bf authored by Christian Dietrich's avatar Christian Dietrich

os_wired: labels before and after synchroneus syscalls

Change-Id: I239c2c81f0946568c9a027d8c5004d0a691399f4
parent 243a06f0
......@@ -167,8 +167,8 @@ public:
#define __asm_label(a) #a
#define _asm_label(a) __asm_label(a)
// #define asm_label(label) asm volatile (".asm_label." label "_%=:" :: "m" (*(void *)0))
#define asm_label(label)
#define asm_label(label) asm volatile (".asm_label." label "_%=:" :: "m" (*(void *)0))
// #define asm_label(label)
#endif // __MACHINE_H__
......@@ -110,7 +110,8 @@ class WiredOS(GenericOS):
pre_hook = None
post_hook = None
self.arch_rules.asm_marker(userspace, "syscall_start_%s" % userspace.name)
if not abb.subtask.conf.is_isr:
self.arch_rules.asm_marker(userspace, "syscall_start_%s" % userspace.name)
self.__instantiate_kernelspace(abb)
......@@ -125,7 +126,8 @@ class WiredOS(GenericOS):
else:
assert False, "Not yet supported %s"% abb.syscall_type
self.arch_rules.asm_marker(userspace, "syscall_end_%s" % userspace.name)
if not abb.subtask.conf.is_isr:
self.arch_rules.asm_marker(userspace, "syscall_end_%s" % userspace.name)
# Fill up the hooks
self.system_enter_hook(abb, abb.impl.pre_hook)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment