tinygo/src/internal
Ayke van Laethem 839edec64c cortexm: fix stack size offset
The old code was broken and led to a HardFault in a rather convoluted
way:

 1. The CFA offset was incorrect, in fact it was not aligned (the stack
    is supposed to always be aligned to 4 bytes at least).
 2. This unaligned size was then used for stack size calculations.
 3. A stack that wasn't a multiple of 4 was allocated.
 4. The calleeSavedRegs struct (in `(internal/task.state).archInit`) was
    not correctly aligned.
 5. Writing to this struct resulted in a HardFault.
2023-04-27 00:11:53 +02:00
..
bytealg src/internal/bytealg: fix indexing error in Compare() 2021-09-26 11:07:19 +02:00
fuzz all: run gofmt on all source code 2022-06-19 13:00:44 +02:00
reflectlite all: add support for go 1.13 2019-09-24 16:13:26 +02:00
task cortexm: fix stack size offset 2023-04-27 00:11:53 +02:00