Prusa-Firmware/Firmware/variants
Yuri D'Elia f18d4757c6 Introduce STACK_GUARD_MARGIN in all variants
Create a gap between the BSS and the stack guard.
Set this gap (STACK_GUARD_MARGIN) to 32 bytes in all variants.

The gap serves two purposes:

- Detect a stack overflow earlier (falsely triggering in overtight
  situations is OK!), so that we can hopefully avoid smashing
  the heap and have a clean view during the dump.

- Reserve spack space itself for the stack dumping machinery,
  which is going to grow the stack even further.

Remove get_stack_guard_test_value() which was unused.
2021-06-12 12:08:53 +02:00
..
1_75mm_MK2-RAMBo10a-E3Dv6full.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
1_75mm_MK2-RAMBo13a-E3Dv6full.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
1_75mm_MK3-EINSy10a-E3Dv6full.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
1_75mm_MK3S-EINSy10a-E3Dv6full.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
1_75mm_MK25-RAMBo10a-E3Dv6full.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
1_75mm_MK25-RAMBo13a-E3Dv6full.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
1_75mm_MK25S-RAMBo10a-E3Dv6full.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
1_75mm_MK25S-RAMBo13a-E3Dv6full.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00