mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion] Add comment on default collectRegisters implementation
This commit is contained in:
committed by
LeaNumworks
parent
3f6647f3ae
commit
0f61b2ccf3
@@ -7,6 +7,10 @@ namespace Ion {
|
||||
* LTO inlining can make regs lower on the stack than some just-allocated
|
||||
* pointers. */
|
||||
__attribute__((noinline))uintptr_t collectRegisters(jmp_buf buf) {
|
||||
/* TODO: we use setjmp to get the registers values to look for python heap
|
||||
* root. However, the 'setjmp' does not guarantee that it gets all registers
|
||||
* values. We should check our setjmp implementation for the device and
|
||||
* ensure that it also works for other platforms. */
|
||||
setjmp(buf);
|
||||
int dummy;
|
||||
return (uintptr_t)&dummy;
|
||||
|
||||
Reference in New Issue
Block a user