X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fhw%2Fswitch_arm.S;h=bde843cda734cd14ed7066fcb69dfa096dc2c4b2;hb=2f1343e2774ac66a35c63ee90535265d67c78feb;hp=531b18a54f6d9b1a229e9436309a5d460054b4ee;hpb=3e2d80120922e13d77e2497290f96a3f0ed08488;p=bertos.git diff --git a/bertos/cpu/arm/hw/switch_arm.S b/bertos/cpu/arm/hw/switch_arm.S index 531b18a5..bde843cd 100644 --- a/bertos/cpu/arm/hw/switch_arm.S +++ b/bertos/cpu/arm/hw/switch_arm.S @@ -26,7 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. * - * Copyright 2007 Develer S.r.l. (http://www.develer.com/) + * Copyright 2007, 2008 Develer S.r.l. (http://www.develer.com/) * * --> * @@ -38,14 +38,7 @@ * \author Francesco Sacchi */ - -/* - * NOTE: At each change of this function affecting proc.c - * (i.e. arguments, data stored in the stack) bump up version - * number in asm_switch_version(). - */ - -/* void asm_switch_context(void **new_sp, void **save_sp) */ +/* void asm_switch_context(void **new_sp [r0], void **save_sp [r1]) */ .globl asm_switch_context asm_switch_context: mrs r2, cpsr /* Save status. */ @@ -58,10 +51,3 @@ asm_switch_context: msr cpsr, r2 /* restore flags reg. */ mov pc, lr - - -/* int asm_switch_version(void) */ -.globl asm_switch_version -asm_switch_version: - mov r0, #1 - mov pc, lr