Change to a more readable name.
[bertos.git] / bertos / cpu / frame.h
index f7eac47e41cd0b8c187685d4f59618fcb0518fec..117667e45e1f855a76f8ad1f0c1e740e15101b7b 100644 (file)
 #elif CPU_CM3
 
        #if CONFIG_KERN_PREEMPT
-               INLINE void asm_switch_context(cpu_stack_t **new_sp, cpu_stack_t **old_sp)
+               INLINE void cm3_preempt_switch_context(cpu_stack_t **new_sp, cpu_stack_t **old_sp)
                {
                        register cpu_stack_t **__new_sp asm ("r0") = new_sp;
                        register cpu_stack_t **__old_sp asm ("r1") = old_sp;
                        asm volatile ("svc #0"
                                : : "r"(__new_sp), "r"(__old_sp) : "memory", "cc");
                }
-               #define asm_switch_context asm_switch_context
+               #define asm_switch_context cm3_preempt_switch_context
 
                #define CPU_PUSH_CALL_FRAME(sp, func) \
                        do { \