Make machine configuration authoritative and restore native checkpoints exactly

This commit is contained in:
2026-09-18 09:09:41 +08:00
parent 6a69511276
commit 4a568f1f4c
94 changed files with 10882 additions and 301 deletions

View File

@@ -14,6 +14,10 @@ extern "C" {
#define SIM_HAL_COMPONENT_CAPACITY 64U
#define SIM_HAL_PARAM_CAPACITY 256U
uint32_t sim_hal_checkpoint_size(void);
int32_t sim_hal_checkpoint_export(uint8_t *output, uint32_t capacity);
int32_t sim_hal_checkpoint_restore(const uint8_t *input, uint32_t length);
enum sim_hal_result {
SIM_HAL_OK = 0,
SIM_HAL_ERR_ARGUMENT = -300,