forked from Hyperion/HyperionOS
NC firmware update (thanks spsf). opencomputers now uses mutiple gpus to speed up rendering and now has net drivers. currently working on kernel memory protections to prevent malicious kernel drivers. spm does not work on opencomputers, this is a known issue i am working on fixing it :D sorry for the slow development.
This commit is contained in:
1 parent
fbaafc7cff
commit
ef4b856ee6
89 files changed
+3955
-563
No files matched your search
@@ -0,0 +1,19 @@
|
||||
--:Minify:--
|
||||
local kernel=...
|
||||
kernel.nc={}
|
||||
kernel.nc.io=kernel.apis.io
|
||||
kernel.nc.chip=kernel.apis.chip
|
||||
kernel.nc.event=kernel.apis.event
|
||||
kernel.nc.files=kernel.apis.files
|
||||
|
||||
kernel.log("Installed peripherals:")
|
||||
local ok, peripherals = pcall(kernel.nc.io.getPeripherals)
|
||||
if ok and type(peripherals)=="table" then
|
||||
for _, id in ipairs(peripherals) do
|
||||
local okT, typ = pcall(kernel.nc.io.getType, id)
|
||||
if not okT then typ = "unknown" end
|
||||
kernel.log(" "..tostring(id).." : "..tostring(typ))
|
||||
end
|
||||
else
|
||||
kernel.log(" (none)")
|
||||
end
|
||||
Reference in new issue
Block a user