@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.
@@ -5200,7 +5200,7 @@ function satisfies(version, range2) {
5200
5200
  }
5201
5201
 
5202
5202
  // src/version.ts
5203
- var KERNEL_VERSION = true ? "1.195.39" : "0.0.0-dev";
5203
+ var KERNEL_VERSION = true ? "1.195.40" : "0.0.0-dev";
5204
5204
  var OS_RELEASE = "6.0.0-slicc";
5205
5205
  function procVersion() {
5206
5206
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -28046,7 +28046,19 @@ var WasmProcess = class _WasmProcess {
28046
28046
  }
28047
28047
  async syscall(req, cancelled, block, preparedSpawn) {
28048
28048
  const hook = testSyscallHook();
28049
- if (hook) await hook({ pid: this.pid, op: req.op });
28049
+ if (hook) {
28050
+ const clockBlock = block;
28051
+ await hook({
28052
+ pid: this.pid,
28053
+ op: req.op,
28054
+ onBlock: (notify) => {
28055
+ block = () => {
28056
+ clockBlock?.();
28057
+ notify();
28058
+ };
28059
+ }
28060
+ });
28061
+ }
28050
28062
  this.options.onSyscall?.(req);
28051
28063
  this.calls += 1;
28052
28064
  const started = performance.now();