esp_expression_with_stack: renamed macro and functions to have esp_ prefix
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
/**
|
||||
* extern void switch_stack_enter(portSTACK_TYPE *stack, portSTACK_TYPE *backup_stack);
|
||||
*/
|
||||
.globl switch_stack_enter
|
||||
.type switch_stack_enter,@function
|
||||
.globl esp_switch_stack_enter
|
||||
.type esp_switch_stack_enter,@function
|
||||
.align 4
|
||||
switch_stack_enter:
|
||||
esp_switch_stack_enter:
|
||||
entry sp, 0x10
|
||||
mov a4, a1
|
||||
s32i a4, a3, 0 /* on a3 there is a safe place to save the current stack */
|
||||
@@ -19,10 +19,10 @@ switch_stack_enter:
|
||||
/**
|
||||
* extern void switch_stack_exit(portSTACK_TYPE *backup_stack);
|
||||
*/
|
||||
.globl switch_stack_exit
|
||||
.type switch_stack_exit,@function
|
||||
.globl esp_switch_stack_exit
|
||||
.type esp_switch_stack_exit,@function
|
||||
.align 4
|
||||
switch_stack_exit:
|
||||
esp_switch_stack_exit:
|
||||
entry sp, 0x10
|
||||
l32i a4, a2, 0 /* recover the original task stack */
|
||||
mov a1, a4 /* put it on sp register again */
|
||||
|
||||
Reference in New Issue
Block a user