@ai-ecoverse/slicc-kernel 1.195.39 → 1.195.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9446,7 +9446,7 @@ function satisfies(version, range2) {
9446
9446
  }
9447
9447
 
9448
9448
  // src/version.ts
9449
- var KERNEL_VERSION = true ? "1.195.39" : "0.0.0-dev";
9449
+ var KERNEL_VERSION = true ? "1.195.40" : "0.0.0-dev";
9450
9450
  var OS_RELEASE = "6.0.0-slicc";
9451
9451
  function procVersion() {
9452
9452
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -31365,7 +31365,19 @@ var WasmProcess = class _WasmProcess {
31365
31365
  }
31366
31366
  async syscall(req, cancelled, block, preparedSpawn) {
31367
31367
  const hook = testSyscallHook();
31368
- if (hook) await hook({ pid: this.pid, op: req.op });
31368
+ if (hook) {
31369
+ const clockBlock = block;
31370
+ await hook({
31371
+ pid: this.pid,
31372
+ op: req.op,
31373
+ onBlock: (notify) => {
31374
+ block = () => {
31375
+ clockBlock?.();
31376
+ notify();
31377
+ };
31378
+ }
31379
+ });
31380
+ }
31369
31381
  this.options.onSyscall?.(req);
31370
31382
  this.calls += 1;
31371
31383
  const started = performance.now();