Module: xenomai-2.5
Branch: master
Commit: 263e81be280aede07242aca11bfa2f8e78d48f7f
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=263e81be280aede07242aca11bfa2f8e78d48f7f

Author: Roland Stigge <sti...@antcom.de>
Date:   Sun Feb  7 14:25:15 2010 +0100

x86 syscalls: fix __xn_get_eip

Get it to generate relocatable code.

---

 include/asm-x86/syscall.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/asm-x86/syscall.h b/include/asm-x86/syscall.h
index 13a7a07..f77fd55 100644
--- a/include/asm-x86/syscall.h
+++ b/include/asm-x86/syscall.h
@@ -161,9 +161,11 @@ asm (".L__X'%ebx = 1\n\t"
      ".endif\n\t"
      ".endm\n\t");
 
-static inline void __xn_get_eip(void **dest)
+__attribute__((always_inline))
+extern inline void __xn_get_eip(void **dest)
 {
-        asm volatile("movl $1f, %0; 1:": "=m"(*dest));
+addr:
+       *dest = &&addr;
 }
 
 static inline void __xn_get_ebp(void **dest)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to