[arm-m][fpu] Fix m0 SP load

This commit is contained in:
Eric Holland
2016-03-29 17:52:09 -04:00
parent cbb6e05127
commit 648684f63d

View File

@@ -100,7 +100,7 @@ struct arm_cm_context_switch_frame {
"str " #tempreg ", [" #basereg "," #offset "];"
#define LOAD_SP(basereg, tempreg, offset) \
"ldr " #tempreg ", [" #basereg "," #offset "];" \
"mov " #tempreg ", sp;"
"mov sp, " #tempreg ";"
/* there is no clrex on armv6m devices */
#define CLREX ""