Align stack variable names (#970)

This commit is contained in:
Scott Mabin 2023-11-22 15:16:16 +00:00 committed by GitHub
parent 39519dfdc9
commit 6005f92566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 12 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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