syscall fixes

This commit is contained in:
bQUARKz 2026-02-20 22:34:22 +00:00
parent af755a1241
commit 9d9d2404a1
Signed by: bquarkz
SSH Key Fingerprint: SHA256:Z7dgqoglWwoK6j6u4QC87OveEq74WOhFN+gitsxtkf8
2 changed files with 3 additions and 1 deletions

View File

@ -178,6 +178,7 @@ pub mod caps {
pub const LOG: CapFlags = 1 << 5; pub const LOG: CapFlags = 1 << 5;
pub const ASSET: CapFlags = 1 << 6; pub const ASSET: CapFlags = 1 << 6;
pub const BANK: CapFlags = 1 << 7; pub const BANK: CapFlags = 1 << 7;
pub const ALL: CapFlags = SYSTEM | GFX | INPUT | AUDIO | FS | LOG | ASSET | BANK;
} }
/// Determinism flags for a syscall. /// Determinism flags for a syscall.

View File

@ -14,6 +14,7 @@ use prometeu_bytecode::{
TRAP_STACK_UNDERFLOW, TRAP_TYPE, TrapInfo, TRAP_STACK_UNDERFLOW, TRAP_TYPE, TrapInfo,
}; };
use prometeu_bytecode::HeapRef; use prometeu_bytecode::HeapRef;
use prometeu_hal::syscalls::caps::ALL;
use prometeu_hal::vm_fault::VmFault; use prometeu_hal::vm_fault::VmFault;
/// Reason why the Virtual Machine stopped execution during a specific run. /// Reason why the Virtual Machine stopped execution during a specific run.
@ -164,7 +165,7 @@ impl VirtualMachine {
breakpoints: std::collections::HashSet::new(), breakpoints: std::collections::HashSet::new(),
gc_alloc_threshold: 1024, // conservative default; tests may override gc_alloc_threshold: 1024, // conservative default; tests may override
last_gc_live_count: 0, last_gc_live_count: 0,
capabilities: 0, capabilities: ALL,
yield_requested: false, yield_requested: false,
sleep_requested_until: None, sleep_requested_until: None,
current_tick: 0, current_tick: 0,