Skip to contentSkip to conversation

arm64: ipipe: route syscalls to co-kernel

PATCH New Philippe Gerum 1 participant 1 message Sep 5, 2018 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 arm64: ipipe: route syscalls to co-kernel

This commit introduces the changes redirecting "foreign" system calls to the co-kernel.

---
 arch/arm64/include/asm/unistd.h |  2 ++
 arch/arm64/kernel/entry.S       | 51 +++++++++++++++++++++++++++++++++++++++++
 arch/arm64/kernel/ipipe.c       | 14 +++++++++++
 3 files changed, 67 insertions(+)
arch/arm64/include/asm/unistd.h +2 -0
index a0baa9af5487..90e64fd5e50b 100644
@@ -53,3 +53,5 @@
 #endif
 
 #define NR_syscalls (__NR_syscalls)
+
+#define __ARM_ipipe_syscall	0x10000000
arch/arm64/kernel/entry.S +51 -0

57 lines not on this page · raw message

arch/arm64/kernel/ipipe.c +14 -0
index f7d5e0ab8943..10273ce8a846 100644
@@ -225,6 +225,20 @@ static void __ipipe_do_IRQ(unsigned irq, void *cookie)
 	__handle_domain_irq(NULL, irq, false, regs);
 }
 
+void __ipipe_root_sync(void)
+{
+	struct ipipe_percpu_domain_data *p;
+	unsigned long flags;
+
+	flags = hard_local_irq_save();
+
+	p = ipipe_this_cpu_root_context();
+	if (__ipipe_ipending_p(p))
+		__ipipe_sync_stage();
+
+	hard_local_irq_restore(flags);
+}
+
 static struct __ipipe_tscinfo tsc_info;
 
 void __init __ipipe_tsc_register(struct __ipipe_tscinfo *info)
Signature · 1 line
2.14.4