fixed a heisenbug and reset openos

This commit is contained in:
2026-04-29 23:21:28 +03:00
parent 01fb18b538
commit 871a7d4e17
4 changed files with 5 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
os.exit = nil
os.execute = nil
local sysyieldobj = {}
local sysyieldobj = "__SYSYIELD__"
local coroutine = coroutine
local function sysyield()
@@ -88,7 +88,7 @@ function component.invoke(address, method, ...)
else
-- must sync
syncedMethodStats = {address, method, ...}
coroutine.yield()
sysyield()
local rets = syncedMethodStats
syncedMethodStats = nil
return table.unpack(rets)

View File

@@ -484,7 +484,7 @@ int main(int argc, char **argv) {
nn_mountComponent(c, eepromCard, 0, false);
nn_mountComponent(c, managedfs, 1, false);
nn_mountComponent(c, gpuCard, 2, false);
nn_mountComponent(c, testingfs, 3, false);
//nn_mountComponent(c, testingfs, 3, false);
nn_mountComponent(c, testDrive, 4, false);
nn_mountComponent(c, testFlash, 5, false);
while(true) {