mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Add a stack canary, setup on boot
This commit is contained in:
parent
9596838a4b
commit
9baedb42e8
21 changed files with 61 additions and 16 deletions
|
|
@ -15,6 +15,7 @@
|
|||
X(UVM32_ERR_INTERNAL_CORE) \
|
||||
X(UVM32_ERR_INTERNAL_STATE) \
|
||||
X(UVM32_ERR_ARGS) \
|
||||
X(UVM32_ERR_STACKOVERFLOW) \
|
||||
|
||||
#define X(name) name,
|
||||
typedef enum {
|
||||
|
|
@ -69,6 +70,7 @@ typedef struct {
|
|||
struct MiniRV32IMAState core;
|
||||
uint8_t memory[UVM32_MEMORY_SIZE];
|
||||
uvm32_evt_t ioevt; // for building up in callbacks
|
||||
uint8_t *stack_canary;
|
||||
} uvm32_state_t;
|
||||
|
||||
void uvm32_init(uvm32_state_t *vmst);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue