Module: xenomai-forge
Branch: next
Commit: aade4615cc0834d6d78f4cf2eee70ea33007ac06
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=aade4615cc0834d6d78f4cf2eee70ea33007ac06

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Sep 25 18:01:41 2014 +0200

cobalt/arm: fix mayday trampoline bits

---

 kernel/cobalt/arch/arm/mayday.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/cobalt/arch/arm/mayday.c b/kernel/cobalt/arch/arm/mayday.c
index d6b7924..724200b 100644
--- a/kernel/cobalt/arch/arm/mayday.c
+++ b/kernel/cobalt/arch/arm/mayday.c
@@ -35,7 +35,7 @@ void xnarch_setup_mayday_page(void *page)
         * ef000000     svc     0x00000000
         * e3a00000     mov     r0, #0
         * e5800000     str     r0, [r0]        ; <bug>
-        * 0a00022b     .word   0x0a00022b      ; __xn_sys_mayday << 24
+        * 1000005e     .word   0x1000005e      ; sc_cobalt_mayday | 
__COBALT_SYSCALL_BIT
         * 000f0042     .word   0x000f0042
         *
         * elif ARM_OABI
@@ -44,7 +44,7 @@ void xnarch_setup_mayday_page(void *page)
         * ef9f0042     swi     0x009f0042
         * e3a00000     mov     r0, #0
         * e5800000     str     r0, [r0]        ; <bug>
-        * 0a00022b     .word   0x0a00022b      ; __xn_sys_mayday << 24
+        * 1000005e     .word   0x1000005e      ; sc_cobalt_mayday | 
__COBALT_SYSCALL_BIT
         *
         * endif
         *
@@ -69,7 +69,7 @@ void xnarch_setup_mayday_page(void *page)
                .swi_0 = 0xef000000,
                .mov_r0 = 0xe3a00000,
                .str_r0 = 0xe5800000,
-               .cst_r0 = 0x0a00022b,
+               .cst_r0 =  sc_cobalt_mayday | __COBALT_SYSCALL_BIT,
                .cst_r7 = 0x000f0042,
        };
 #else /* OABI */
@@ -84,7 +84,7 @@ void xnarch_setup_mayday_page(void *page)
                .swi_syscall = 0xef9f0042,
                .mov_r0 = 0xe3a00000,
                .str_r0 = 0xe5800000,
-               .cst_r0 = 0x0a00022b,
+               .cst_r0 =  sc_cobalt_mayday | __COBALT_SYSCALL_BIT,
        };
 #endif /* OABI */
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to