[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 5/7] plat/linuxu: Add linuxu (ARM) interrupts support
Changes: - ARM syscall numbers for SIGACTION and SIGPROCMASK - ARM asm restorer Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx> --- plat/linuxu/include/linuxu/syscall-arm_32.h | 4 ++++ plat/linuxu/irq.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/plat/linuxu/include/linuxu/syscall-arm_32.h b/plat/linuxu/include/linuxu/syscall-arm_32.h index e28224d..5c1a919 100644 --- a/plat/linuxu/include/linuxu/syscall-arm_32.h +++ b/plat/linuxu/include/linuxu/syscall-arm_32.h @@ -46,6 +46,10 @@ #define __SC_MUNMAP 91 #define __SC_EXIT 1 #define __SC_IOCTL 54 + +#define __SC_RT_SIGACTION 43 +#define __SC_RT_SIGPROCMASK 126 + #define __SC_PSELECT6 335 /* NOTE: from `man syscall`: diff --git a/plat/linuxu/irq.c b/plat/linuxu/irq.c index 4dbdd20..1a9cd67 100644 --- a/plat/linuxu/irq.c +++ b/plat/linuxu/irq.c @@ -106,7 +106,14 @@ void irq_restore(unsigned long flags) } void __restorer(); + +#if defined __X86_64__ asm("__restorer:mov $15,%rax\nsyscall"); +#elif defined __ARM_32__ +asm("__restorer:mov r7, #0x77\nswi 0x0"); +#else +#error "Unsupported architecture" +#endif void irq_register(int irq, irq_handler_func_t func, void *arg) { -- 2.1.4 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |