Align stack variable names (#970)
This commit is contained in:
parent
39519dfdc9
commit
6005f92566
@ -36,8 +36,8 @@ _stack_region_bottom = _stack_end;
|
||||
/*
|
||||
use the whole remaining memory as core-0's stack
|
||||
*/
|
||||
_stack_end_cpu0 = _stack_region_top;
|
||||
_stack_start_cpu0 = _stack_region_bottom;
|
||||
_stack_start_cpu0 = _stack_region_top;
|
||||
_stack_end_cpu0 = _stack_region_bottom;
|
||||
|
||||
EXTERN(DefaultHandler);
|
||||
|
||||
|
||||
@ -34,8 +34,8 @@ INCLUDE "rtc_slow.x"
|
||||
_stack_region_top = ABSOLUTE(ORIGIN(dram_seg))+LENGTH(dram_seg);
|
||||
_stack_region_bottom = _stack_end;
|
||||
|
||||
_stack_end_cpu0 = _stack_region_top;
|
||||
_stack_start_cpu0 = _stack_region_bottom;
|
||||
_stack_start_cpu0 = _stack_region_top;
|
||||
_stack_end_cpu0 = _stack_region_bottom;
|
||||
|
||||
EXTERN(DefaultHandler);
|
||||
|
||||
|
||||
@ -51,8 +51,8 @@ _stack_region_bottom = _stack_end;
|
||||
/*
|
||||
use the whole remaining memory as core-0's stack
|
||||
*/
|
||||
_stack_end_cpu0 = _stack_region_top;
|
||||
_stack_start_cpu0 = _stack_region_bottom;
|
||||
_stack_start_cpu0 = _stack_region_top;
|
||||
_stack_end_cpu0 = _stack_region_bottom;
|
||||
|
||||
EXTERN(DefaultHandler);
|
||||
|
||||
|
||||
@ -79,11 +79,11 @@ pub unsafe extern "C" fn ESP32Reset() -> ! {
|
||||
static mut _rtc_slow_bss_start: u32;
|
||||
static mut _rtc_slow_bss_end: u32;
|
||||
|
||||
static mut _stack_end_cpu0: u32;
|
||||
static mut _stack_start_cpu0: u32;
|
||||
}
|
||||
|
||||
// set stack pointer to end of memory: no need to retain stack up to this point
|
||||
esp_hal_common::xtensa_lx::set_stack_pointer(&mut _stack_end_cpu0);
|
||||
esp_hal_common::xtensa_lx::set_stack_pointer(&mut _stack_start_cpu0);
|
||||
|
||||
// copying data from flash to various data segments is done by the bootloader
|
||||
// initialization to zero needs to be done by the application
|
||||
|
||||
@ -80,11 +80,11 @@ pub unsafe extern "C" fn ESP32Reset() -> ! {
|
||||
static mut _rtc_slow_bss_start: u32;
|
||||
static mut _rtc_slow_bss_end: u32;
|
||||
|
||||
static mut _stack_end_cpu0: u32;
|
||||
static mut _stack_start_cpu0: u32;
|
||||
}
|
||||
|
||||
// set stack pointer to end of memory: no need to retain stack up to this point
|
||||
esp_hal_common::xtensa_lx::set_stack_pointer(&mut _stack_end_cpu0);
|
||||
esp_hal_common::xtensa_lx::set_stack_pointer(&mut _stack_start_cpu0);
|
||||
|
||||
// copying data from flash to various data segments is done by the bootloader
|
||||
// initialization to zero needs to be done by the application
|
||||
|
||||
@ -129,11 +129,11 @@ pub unsafe extern "C" fn ESP32Reset() -> ! {
|
||||
static mut _rtc_slow_bss_start: u32;
|
||||
static mut _rtc_slow_bss_end: u32;
|
||||
|
||||
static mut _stack_end_cpu0: u32;
|
||||
static mut _stack_start_cpu0: u32;
|
||||
}
|
||||
|
||||
// set stack pointer to end of memory: no need to retain stack up to this point
|
||||
esp_hal_common::xtensa_lx::set_stack_pointer(&mut _stack_end_cpu0);
|
||||
esp_hal_common::xtensa_lx::set_stack_pointer(&mut _stack_start_cpu0);
|
||||
|
||||
// copying data from flash to various data segments is done by the bootloader
|
||||
// initialization to zero needs to be done by the application
|
||||
|
||||
Loading…
Reference in New Issue
Block a user