mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 15:33:40 +00:00
esp32s3: improve exception handlers, add procPin/procUnpin, and linker wrap flags
Rewrite kernel and double exception handlers to save EXCCAUSE/EPC1 to RTC STORE registers before triggering a software reset, replacing the LED-blink diagnostic with post-mortem debug info that survives reset. Add user exception dispatch in the level-1 handler with a weak espradio_user_exception symbol so programs without espradio still link. Implement procPin/procUnpin for Xtensa using RSIL/WSR PS to properly disable interrupts during atomic operations. Fix abort() to use a waiti loop instead of bare spin. Add --wrap ldflags for malloc/calloc/free/realloc/ppCheckTxConnTrafficIdle to support espradio WiFi blob integration. Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -7,6 +7,13 @@
|
||||
"scheduler": "tasks",
|
||||
"serial": "usb",
|
||||
"linker": "ld.lld",
|
||||
"ldflags": [
|
||||
"--wrap=malloc",
|
||||
"--wrap=calloc",
|
||||
"--wrap=free",
|
||||
"--wrap=realloc",
|
||||
"--wrap=ppCheckTxConnTrafficIdle"
|
||||
],
|
||||
"default-stack-size": 8192,
|
||||
"rtlib": "compiler-rt",
|
||||
"libc": "picolibc",
|
||||
|
||||
Reference in New Issue
Block a user