projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop ABI versioning for asm_switch_context(), as it could be easily done by renaming...
[bertos.git]
/
bertos
/
cpu
/
arm
/
hw
/
switch_arm.S
diff --git
a/bertos/cpu/arm/hw/switch_arm.S
b/bertos/cpu/arm/hw/switch_arm.S
index 531b18a54f6d9b1a229e9436309a5d460054b4ee..bde843cda734cd14ed7066fcb69dfa096dc2c4b2 100644
(file)
--- 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.
*
* 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 <batt@develer.com>
*/
* \author Francesco Sacchi <batt@develer.com>
*/
-
-/*
- * 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. */
.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
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