This commit is contained in:
2026-01-15 16:43:03 -05:00
parent efffc8f0d2
commit 3a8be2bdb7
27 changed files with 6085 additions and 82 deletions
+3 -3
View File
@@ -5,11 +5,11 @@ syscall.TTY_bind("tty0")
for i,v in pairs(kernel.processes) do
kernel.log("Spawning kernel task "..i)
syscall.HPV_spawn(function()
local status, err = pcall(startupFunc)
local status, err = pcall(v)
if not status then
kernel.log("Error executing kernel task '" .. filepath .. "': " .. err, "ERROR")
kernel.log("Error executing kernel task '" .. i .. "': " .. err, "ERROR")
else
kernel.log("Successfully executed kernel task: " .. filepath, "INFO")
kernel.log("Successfully executed kernel task: " .. i, "INFO")
end
end, i)
end
+2 -2
View File
@@ -149,7 +149,7 @@ ifs.makeDir("/tmp")
function kernel.newFifo()
local fifo = {}
fifo.push=function(data)
table.insert(data)
table.insert(fifo, data)
end
fifo.pop=function()
return table.remove(fifo,1)
@@ -238,6 +238,6 @@ for _,p in ipairs(modules) do
end
kernel.log("Kernel initialized successfully.")
--kernel.status="running"
kernel.status="running"
kernel.main()
kernel.PANIC("Execution complete")