it does work if you load compiled hypervisor

This commit is contained in:
minjaesong
2025-04-20 20:01:17 +09:00
parent 13061bc8fa
commit face633cfb
3 changed files with 40 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
if (exec_args[1] === undefined) {
println("Usage: free ptr_in_hex")
println(" This will free the pointer loaded using 'load'")
return 1
}
// check for CUM header
const ptr = parseInt(exec_args[1], 16)
const magic = sys.peek(ptr)
if (magic != 0xA5) return 1
sys.free(ptr)