[Xenomai-git] Gilles Chanteperdrix : cobalt/arm: remove #ifdefs for old versions
Module: xenomai-gch Branch: for-forge Commit: da2c1b80a114c1e3b123aa4b63591997f73e68d9 URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=da2c1b80a114c1e3b123aa4b63591997f73e68d9 Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Mon Jan 20 21:43:32 2014 +0100 cobalt/arm: remove #ifdefs for old versions --- kernel/cobalt/arch/arm/switch.S | 42 +++ 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/kernel/cobalt/arch/arm/switch.S b/kernel/cobalt/arch/arm/switch.S index 7048695..cbd472a 100644 --- a/kernel/cobalt/arch/arm/switch.S +++ b/kernel/cobalt/arch/arm/switch.S @@ -21,31 +21,10 @@ #include linux/version.h #include asm/assembler.h #include asm/asm-offsets.h +#include asm/tls.h #ifdef CONFIG_VFP #include asm/vfpmacros.h #endif -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 36) -#include asm/tls.h -#else - .macro set_tls tp, tmp1, tmp2 -#if defined(CONFIG_HAS_TLS_REG) - mcr p15, 0, \tp, c13, c0, 3 @ set TLS register -#elif !defined(CONFIG_TLS_REG_EMUL) - mov \tmp1, #0x0fff - str \tp, [\tmp1, #-15] @ TLS val at 0x0ff0 -#endif - .endm -#endif - -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 37) -#ifdef CONFIG_MMU -#define USE_DOMAINS -#endif /* CONFIG_MMU */ -#else /* Linux = 2.6.38 */ -#ifdef CONFIG_CPU_USE_DOMAINS -#define USE_DOMAINS -#endif /* CONFIG_CPU_USE_DOMAINS */ -#endif /* Linux = 2.6.38 */ .macro fpu_switch tmp #ifdef CONFIG_VFP @@ -65,11 +44,7 @@ @ Always disable VFP so we can lazily save/restore the old @ state. This occurs in the context of the previous thread. VFPFMRX \tmp, FPEXC -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 23) - bic \tmp, \tmp, #FPEXC_ENABLE -#else bic \tmp, \tmp, #FPEXC_EN -#endif VFPFMXR FPEXC, \tmp #if __LINUX_ARM_ARCH__ = 6 : @@ -77,16 +52,6 @@ #endif .endm - .macro clear_exclusive_monitor -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 32) __LINUX_ARM_ARCH__ = 6 -#ifdef CONFIG_CPU_MPCORE - clrex -#else - strex r5, r4, [ip]@ Clear exclusive monitor -#endif -#endif - .endm - .text #if defined(CONFIG_VFP) defined(CONFIG_XENO_HW_FPU) @@ -162,12 +127,11 @@ ENTRY(__asm_thread_switch) THUMB(stmia ip!, {r4 - sl, fp} )@ Store most regs on stack THUMB(str sp, [ip], #4 ) THUMB(str lr, [ip], #4 ) -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS ldr r6, [r1, #TI_CPU_DOMAIN] #endif - clear_exclusive_monitor set_tls r3, r4, r5 -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS mcr p15, 0, r6, c3, c0, 0 @ Set domain register #endif fpu_switch r4 ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : cobalt/arm: remove #ifdefs for old versions
Module: xenomai-forge Branch: next Commit: da2c1b80a114c1e3b123aa4b63591997f73e68d9 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=da2c1b80a114c1e3b123aa4b63591997f73e68d9 Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Mon Jan 20 21:43:32 2014 +0100 cobalt/arm: remove #ifdefs for old versions --- kernel/cobalt/arch/arm/switch.S | 42 +++ 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/kernel/cobalt/arch/arm/switch.S b/kernel/cobalt/arch/arm/switch.S index 7048695..cbd472a 100644 --- a/kernel/cobalt/arch/arm/switch.S +++ b/kernel/cobalt/arch/arm/switch.S @@ -21,31 +21,10 @@ #include linux/version.h #include asm/assembler.h #include asm/asm-offsets.h +#include asm/tls.h #ifdef CONFIG_VFP #include asm/vfpmacros.h #endif -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 36) -#include asm/tls.h -#else - .macro set_tls tp, tmp1, tmp2 -#if defined(CONFIG_HAS_TLS_REG) - mcr p15, 0, \tp, c13, c0, 3 @ set TLS register -#elif !defined(CONFIG_TLS_REG_EMUL) - mov \tmp1, #0x0fff - str \tp, [\tmp1, #-15] @ TLS val at 0x0ff0 -#endif - .endm -#endif - -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 37) -#ifdef CONFIG_MMU -#define USE_DOMAINS -#endif /* CONFIG_MMU */ -#else /* Linux = 2.6.38 */ -#ifdef CONFIG_CPU_USE_DOMAINS -#define USE_DOMAINS -#endif /* CONFIG_CPU_USE_DOMAINS */ -#endif /* Linux = 2.6.38 */ .macro fpu_switch tmp #ifdef CONFIG_VFP @@ -65,11 +44,7 @@ @ Always disable VFP so we can lazily save/restore the old @ state. This occurs in the context of the previous thread. VFPFMRX \tmp, FPEXC -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 23) - bic \tmp, \tmp, #FPEXC_ENABLE -#else bic \tmp, \tmp, #FPEXC_EN -#endif VFPFMXR FPEXC, \tmp #if __LINUX_ARM_ARCH__ = 6 : @@ -77,16 +52,6 @@ #endif .endm - .macro clear_exclusive_monitor -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 32) __LINUX_ARM_ARCH__ = 6 -#ifdef CONFIG_CPU_MPCORE - clrex -#else - strex r5, r4, [ip]@ Clear exclusive monitor -#endif -#endif - .endm - .text #if defined(CONFIG_VFP) defined(CONFIG_XENO_HW_FPU) @@ -162,12 +127,11 @@ ENTRY(__asm_thread_switch) THUMB(stmia ip!, {r4 - sl, fp} )@ Store most regs on stack THUMB(str sp, [ip], #4 ) THUMB(str lr, [ip], #4 ) -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS ldr r6, [r1, #TI_CPU_DOMAIN] #endif - clear_exclusive_monitor set_tls r3, r4, r5 -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS mcr p15, 0, r6, c3, c0, 0 @ Set domain register #endif fpu_switch r4 ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : cobalt/arm: remove #ifdefs for old versions
Module: xenomai-gch Branch: for-forge Commit: 479fef939537ec5c8ccf7d8256a5bbf0ca2bd71e URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=479fef939537ec5c8ccf7d8256a5bbf0ca2bd71e Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Mon Jan 20 21:43:32 2014 +0100 cobalt/arm: remove #ifdefs for old versions --- kernel/cobalt/arch/arm/switch.S | 42 +++ 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/kernel/cobalt/arch/arm/switch.S b/kernel/cobalt/arch/arm/switch.S index 7048695..cbd472a 100644 --- a/kernel/cobalt/arch/arm/switch.S +++ b/kernel/cobalt/arch/arm/switch.S @@ -21,31 +21,10 @@ #include linux/version.h #include asm/assembler.h #include asm/asm-offsets.h +#include asm/tls.h #ifdef CONFIG_VFP #include asm/vfpmacros.h #endif -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 36) -#include asm/tls.h -#else - .macro set_tls tp, tmp1, tmp2 -#if defined(CONFIG_HAS_TLS_REG) - mcr p15, 0, \tp, c13, c0, 3 @ set TLS register -#elif !defined(CONFIG_TLS_REG_EMUL) - mov \tmp1, #0x0fff - str \tp, [\tmp1, #-15] @ TLS val at 0x0ff0 -#endif - .endm -#endif - -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 37) -#ifdef CONFIG_MMU -#define USE_DOMAINS -#endif /* CONFIG_MMU */ -#else /* Linux = 2.6.38 */ -#ifdef CONFIG_CPU_USE_DOMAINS -#define USE_DOMAINS -#endif /* CONFIG_CPU_USE_DOMAINS */ -#endif /* Linux = 2.6.38 */ .macro fpu_switch tmp #ifdef CONFIG_VFP @@ -65,11 +44,7 @@ @ Always disable VFP so we can lazily save/restore the old @ state. This occurs in the context of the previous thread. VFPFMRX \tmp, FPEXC -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 23) - bic \tmp, \tmp, #FPEXC_ENABLE -#else bic \tmp, \tmp, #FPEXC_EN -#endif VFPFMXR FPEXC, \tmp #if __LINUX_ARM_ARCH__ = 6 : @@ -77,16 +52,6 @@ #endif .endm - .macro clear_exclusive_monitor -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 32) __LINUX_ARM_ARCH__ = 6 -#ifdef CONFIG_CPU_MPCORE - clrex -#else - strex r5, r4, [ip]@ Clear exclusive monitor -#endif -#endif - .endm - .text #if defined(CONFIG_VFP) defined(CONFIG_XENO_HW_FPU) @@ -162,12 +127,11 @@ ENTRY(__asm_thread_switch) THUMB(stmia ip!, {r4 - sl, fp} )@ Store most regs on stack THUMB(str sp, [ip], #4 ) THUMB(str lr, [ip], #4 ) -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS ldr r6, [r1, #TI_CPU_DOMAIN] #endif - clear_exclusive_monitor set_tls r3, r4, r5 -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS mcr p15, 0, r6, c3, c0, 0 @ Set domain register #endif fpu_switch r4 ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : cobalt/arm: remove #ifdefs for old versions
Module: xenomai-gch Branch: for-forge Commit: c5d0d97279a467e2cefd6b5e21077a7a19c93df4 URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=c5d0d97279a467e2cefd6b5e21077a7a19c93df4 Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Mon Jan 20 21:43:32 2014 +0100 cobalt/arm: remove #ifdefs for old versions --- kernel/cobalt/arch/arm/switch.S | 42 +++ 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/kernel/cobalt/arch/arm/switch.S b/kernel/cobalt/arch/arm/switch.S index 7048695..cbd472a 100644 --- a/kernel/cobalt/arch/arm/switch.S +++ b/kernel/cobalt/arch/arm/switch.S @@ -21,31 +21,10 @@ #include linux/version.h #include asm/assembler.h #include asm/asm-offsets.h +#include asm/tls.h #ifdef CONFIG_VFP #include asm/vfpmacros.h #endif -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 36) -#include asm/tls.h -#else - .macro set_tls tp, tmp1, tmp2 -#if defined(CONFIG_HAS_TLS_REG) - mcr p15, 0, \tp, c13, c0, 3 @ set TLS register -#elif !defined(CONFIG_TLS_REG_EMUL) - mov \tmp1, #0x0fff - str \tp, [\tmp1, #-15] @ TLS val at 0x0ff0 -#endif - .endm -#endif - -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 37) -#ifdef CONFIG_MMU -#define USE_DOMAINS -#endif /* CONFIG_MMU */ -#else /* Linux = 2.6.38 */ -#ifdef CONFIG_CPU_USE_DOMAINS -#define USE_DOMAINS -#endif /* CONFIG_CPU_USE_DOMAINS */ -#endif /* Linux = 2.6.38 */ .macro fpu_switch tmp #ifdef CONFIG_VFP @@ -65,11 +44,7 @@ @ Always disable VFP so we can lazily save/restore the old @ state. This occurs in the context of the previous thread. VFPFMRX \tmp, FPEXC -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 23) - bic \tmp, \tmp, #FPEXC_ENABLE -#else bic \tmp, \tmp, #FPEXC_EN -#endif VFPFMXR FPEXC, \tmp #if __LINUX_ARM_ARCH__ = 6 : @@ -77,16 +52,6 @@ #endif .endm - .macro clear_exclusive_monitor -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 32) __LINUX_ARM_ARCH__ = 6 -#ifdef CONFIG_CPU_MPCORE - clrex -#else - strex r5, r4, [ip]@ Clear exclusive monitor -#endif -#endif - .endm - .text #if defined(CONFIG_VFP) defined(CONFIG_XENO_HW_FPU) @@ -162,12 +127,11 @@ ENTRY(__asm_thread_switch) THUMB(stmia ip!, {r4 - sl, fp} )@ Store most regs on stack THUMB(str sp, [ip], #4 ) THUMB(str lr, [ip], #4 ) -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS ldr r6, [r1, #TI_CPU_DOMAIN] #endif - clear_exclusive_monitor set_tls r3, r4, r5 -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS mcr p15, 0, r6, c3, c0, 0 @ Set domain register #endif fpu_switch r4 ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : cobalt/arm: remove #ifdefs for old versions
Module: xenomai-gch Branch: for-forge Commit: de6bfd91abe278d8fcbe96e6bee0f3ce89771c1a URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=de6bfd91abe278d8fcbe96e6bee0f3ce89771c1a Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Mon Jan 20 21:43:32 2014 +0100 cobalt/arm: remove #ifdefs for old versions --- kernel/cobalt/arch/arm/switch.S | 42 +++ 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/kernel/cobalt/arch/arm/switch.S b/kernel/cobalt/arch/arm/switch.S index 7048695..cbd472a 100644 --- a/kernel/cobalt/arch/arm/switch.S +++ b/kernel/cobalt/arch/arm/switch.S @@ -21,31 +21,10 @@ #include linux/version.h #include asm/assembler.h #include asm/asm-offsets.h +#include asm/tls.h #ifdef CONFIG_VFP #include asm/vfpmacros.h #endif -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 36) -#include asm/tls.h -#else - .macro set_tls tp, tmp1, tmp2 -#if defined(CONFIG_HAS_TLS_REG) - mcr p15, 0, \tp, c13, c0, 3 @ set TLS register -#elif !defined(CONFIG_TLS_REG_EMUL) - mov \tmp1, #0x0fff - str \tp, [\tmp1, #-15] @ TLS val at 0x0ff0 -#endif - .endm -#endif - -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 37) -#ifdef CONFIG_MMU -#define USE_DOMAINS -#endif /* CONFIG_MMU */ -#else /* Linux = 2.6.38 */ -#ifdef CONFIG_CPU_USE_DOMAINS -#define USE_DOMAINS -#endif /* CONFIG_CPU_USE_DOMAINS */ -#endif /* Linux = 2.6.38 */ .macro fpu_switch tmp #ifdef CONFIG_VFP @@ -65,11 +44,7 @@ @ Always disable VFP so we can lazily save/restore the old @ state. This occurs in the context of the previous thread. VFPFMRX \tmp, FPEXC -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 23) - bic \tmp, \tmp, #FPEXC_ENABLE -#else bic \tmp, \tmp, #FPEXC_EN -#endif VFPFMXR FPEXC, \tmp #if __LINUX_ARM_ARCH__ = 6 : @@ -77,16 +52,6 @@ #endif .endm - .macro clear_exclusive_monitor -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 32) __LINUX_ARM_ARCH__ = 6 -#ifdef CONFIG_CPU_MPCORE - clrex -#else - strex r5, r4, [ip]@ Clear exclusive monitor -#endif -#endif - .endm - .text #if defined(CONFIG_VFP) defined(CONFIG_XENO_HW_FPU) @@ -162,12 +127,11 @@ ENTRY(__asm_thread_switch) THUMB(stmia ip!, {r4 - sl, fp} )@ Store most regs on stack THUMB(str sp, [ip], #4 ) THUMB(str lr, [ip], #4 ) -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS ldr r6, [r1, #TI_CPU_DOMAIN] #endif - clear_exclusive_monitor set_tls r3, r4, r5 -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS mcr p15, 0, r6, c3, c0, 0 @ Set domain register #endif fpu_switch r4 ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : cobalt/arm: remove #ifdefs for old versions
Module: xenomai-gch Branch: for-forge Commit: e45e2745a9ec0ce1e52333707e859c8a147b2ee0 URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=e45e2745a9ec0ce1e52333707e859c8a147b2ee0 Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Mon Jan 20 21:43:32 2014 +0100 cobalt/arm: remove #ifdefs for old versions --- kernel/cobalt/arch/arm/switch.S | 34 +- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/kernel/cobalt/arch/arm/switch.S b/kernel/cobalt/arch/arm/switch.S index 7048695..496af5e 100644 --- a/kernel/cobalt/arch/arm/switch.S +++ b/kernel/cobalt/arch/arm/switch.S @@ -21,31 +21,14 @@ #include linux/version.h #include asm/assembler.h #include asm/asm-offsets.h +#include asm/tls.h #ifdef CONFIG_VFP #include asm/vfpmacros.h #endif -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 36) -#include asm/tls.h -#else - .macro set_tls tp, tmp1, tmp2 -#if defined(CONFIG_HAS_TLS_REG) - mcr p15, 0, \tp, c13, c0, 3 @ set TLS register -#elif !defined(CONFIG_TLS_REG_EMUL) - mov \tmp1, #0x0fff - str \tp, [\tmp1, #-15] @ TLS val at 0x0ff0 -#endif - .endm -#endif -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 37) -#ifdef CONFIG_MMU -#define USE_DOMAINS -#endif /* CONFIG_MMU */ -#else /* Linux = 2.6.38 */ #ifdef CONFIG_CPU_USE_DOMAINS #define USE_DOMAINS #endif /* CONFIG_CPU_USE_DOMAINS */ -#endif /* Linux = 2.6.38 */ .macro fpu_switch tmp #ifdef CONFIG_VFP @@ -65,11 +48,7 @@ @ Always disable VFP so we can lazily save/restore the old @ state. This occurs in the context of the previous thread. VFPFMRX \tmp, FPEXC -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 23) - bic \tmp, \tmp, #FPEXC_ENABLE -#else bic \tmp, \tmp, #FPEXC_EN -#endif VFPFMXR FPEXC, \tmp #if __LINUX_ARM_ARCH__ = 6 : @@ -77,16 +56,6 @@ #endif .endm - .macro clear_exclusive_monitor -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 32) __LINUX_ARM_ARCH__ = 6 -#ifdef CONFIG_CPU_MPCORE - clrex -#else - strex r5, r4, [ip]@ Clear exclusive monitor -#endif -#endif - .endm - .text #if defined(CONFIG_VFP) defined(CONFIG_XENO_HW_FPU) @@ -165,7 +134,6 @@ ENTRY(__asm_thread_switch) #ifdef USE_DOMAINS ldr r6, [r1, #TI_CPU_DOMAIN] #endif - clear_exclusive_monitor set_tls r3, r4, r5 #ifdef USE_DOMAINS mcr p15, 0, r6, c3, c0, 0 @ Set domain register ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : cobalt/arm: remove #ifdefs for old versions
Module: xenomai-gch Branch: for-forge Commit: 08214014dff2d2adad84513aaa1f764d3fb71ab4 URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=08214014dff2d2adad84513aaa1f764d3fb71ab4 Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Mon Jan 20 21:43:32 2014 +0100 cobalt/arm: remove #ifdefs for old versions --- kernel/cobalt/arch/arm/switch.S | 42 +++ 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/kernel/cobalt/arch/arm/switch.S b/kernel/cobalt/arch/arm/switch.S index 7048695..cbd472a 100644 --- a/kernel/cobalt/arch/arm/switch.S +++ b/kernel/cobalt/arch/arm/switch.S @@ -21,31 +21,10 @@ #include linux/version.h #include asm/assembler.h #include asm/asm-offsets.h +#include asm/tls.h #ifdef CONFIG_VFP #include asm/vfpmacros.h #endif -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 36) -#include asm/tls.h -#else - .macro set_tls tp, tmp1, tmp2 -#if defined(CONFIG_HAS_TLS_REG) - mcr p15, 0, \tp, c13, c0, 3 @ set TLS register -#elif !defined(CONFIG_TLS_REG_EMUL) - mov \tmp1, #0x0fff - str \tp, [\tmp1, #-15] @ TLS val at 0x0ff0 -#endif - .endm -#endif - -#if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 37) -#ifdef CONFIG_MMU -#define USE_DOMAINS -#endif /* CONFIG_MMU */ -#else /* Linux = 2.6.38 */ -#ifdef CONFIG_CPU_USE_DOMAINS -#define USE_DOMAINS -#endif /* CONFIG_CPU_USE_DOMAINS */ -#endif /* Linux = 2.6.38 */ .macro fpu_switch tmp #ifdef CONFIG_VFP @@ -65,11 +44,7 @@ @ Always disable VFP so we can lazily save/restore the old @ state. This occurs in the context of the previous thread. VFPFMRX \tmp, FPEXC -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 23) - bic \tmp, \tmp, #FPEXC_ENABLE -#else bic \tmp, \tmp, #FPEXC_EN -#endif VFPFMXR FPEXC, \tmp #if __LINUX_ARM_ARCH__ = 6 : @@ -77,16 +52,6 @@ #endif .endm - .macro clear_exclusive_monitor -#if LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 32) __LINUX_ARM_ARCH__ = 6 -#ifdef CONFIG_CPU_MPCORE - clrex -#else - strex r5, r4, [ip]@ Clear exclusive monitor -#endif -#endif - .endm - .text #if defined(CONFIG_VFP) defined(CONFIG_XENO_HW_FPU) @@ -162,12 +127,11 @@ ENTRY(__asm_thread_switch) THUMB(stmia ip!, {r4 - sl, fp} )@ Store most regs on stack THUMB(str sp, [ip], #4 ) THUMB(str lr, [ip], #4 ) -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS ldr r6, [r1, #TI_CPU_DOMAIN] #endif - clear_exclusive_monitor set_tls r3, r4, r5 -#ifdef USE_DOMAINS +#ifdef CONFIG_CPU_USE_DOMAINS mcr p15, 0, r6, c3, c0, 0 @ Set domain register #endif fpu_switch r4 ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git