Commit e47ce02
committed
Component: zkvm_zisk_sim: reserve fixed RAM cell for inline bump pointer
Reserve the top 8 bytes of the heap region as a fixed-address cell holding the
downward bump pointer, shared by the C allocator and JIT-emitted inline
allocation. Lower the heap top by 16 so the cell never overlaps the heap.
zisk_sim reuses the zisk pal.o, so it needs the same g_zk_bump_ptr symbol;
mirrors modules/zkvm_zisk/script.ld.
Signed-off-by: Maxim Menshikov <maksim.menshikov@nethermind.io>1 parent 4a73a09 commit e47ce02
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
0 commit comments