Skip to content

Commit

Permalink
Shrink exception stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1968 authored and jhand2 committed Jun 17, 2024
1 parent 43e6af9 commit a8fa928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions drivers/src/memory_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ pub const ROM_ESTACK_ORG: u32 = 0x5001F800;
pub const NSTACK_ORG: u32 = ESTACK_ORG + ESTACK_SIZE;
pub const ROM_NSTACK_ORG: u32 = 0x5001FC00;


//
// Memory Sizes In Bytes
//
Expand All @@ -74,9 +73,9 @@ pub const PCR_RESET_COUNTER_SIZE: u32 = 1024;
pub const DATA_SIZE: u32 = 78 * 1024;
pub const STACK_SIZE: u32 = 22 * 1024;
pub const ROM_STACK_SIZE: u32 = 14 * 1024;
pub const ESTACK_SIZE: u32 = 1024;
pub const ESTACK_SIZE: u32 = 512;
pub const ROM_ESTACK_SIZE: u32 = 1024;
pub const NSTACK_SIZE: u32 = 1024;
pub const NSTACK_SIZE: u32 = 512;
pub const ROM_NSTACK_SIZE: u32 = 1024;

pub const ICCM_RANGE: core::ops::Range<u32> = core::ops::Range {
Expand Down
4 changes: 2 additions & 2 deletions rom/dev/tests/rom_integration_tests/test_symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fn test_linker_symbols_match_memory_layout() {
assert_symbol_addr(&symbols, "DCCM_ORG", memory_layout::DCCM_ORG);
assert_symbol_addr(&symbols, "DATA_ORG", memory_layout::ROM_DATA_ORG);
assert_symbol_addr(&symbols, "STACK_ORG", memory_layout::ROM_STACK_ORG);
assert_symbol_addr(&symbols, "ESTACK_ORG", memory_layout::ESTACK_ORG);
assert_symbol_addr(&symbols, "NSTACK_ORG", memory_layout::NSTACK_ORG);
assert_symbol_addr(&symbols, "ESTACK_ORG", memory_layout::ROM_ESTACK_ORG);
assert_symbol_addr(&symbols, "NSTACK_ORG", memory_layout::ROM_NSTACK_ORG);

assert_symbol_addr(
&symbols,
Expand Down

0 comments on commit a8fa928

Please sign in to comment.