mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Cleanup syscall numbers
This commit is contained in:
parent
61fe0e8647
commit
9d6e6790e1
19 changed files with 32 additions and 32 deletions
|
|
@ -167,6 +167,7 @@ uint32_t uvm32_run(uvm32_state_t *vmst, uvm32_evt_t *evt, uint32_t instr_meter)
|
|||
}
|
||||
// no mapping found
|
||||
if (!syscall_valid) {
|
||||
printf("BADSYS %08x halt=%08x YIELD=%08x\n", syscall, UVM32_SYSCALL_HALT, UVM32_SYSCALL_YIELD);
|
||||
setStatusErr(vmst, UVM32_ERR_BAD_SYSCALL);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
// "well-known" system UVM32_SYSCALL functions
|
||||
#define UVM32_SYSCALL_HALT 0x138
|
||||
#define UVM32_SYSCALL_YIELD 0x139
|
||||
#include "uvm32_sys.h"
|
||||
|
||||
#define LIST_OF_UVM32_ERRS \
|
||||
X(UVM32_ERR_NONE) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue