Closed ayesaac closed 1 year ago
Same issue on i7 Thinkpad x230
Also confirmed that everything but Threadpool (and SMP) works; can initialize everything else, and at least read/write from/to console in a loop.
Does it just freeze or get panic information?
Oh @iBeizsley
Try not initialize sata controller
i remember sata controller have some problems
Just freezes, no panic. Disabling SATA didn't work, went ahead and tried with Keyboard, Serial, PS2, VMware tools, SMBIOS, PCI, IDE and SATA all disabled, same result:
Just for clarity, writeline before the Native.Sti
being the last thing here, there's a second writeline immediately after, before Schedule_Next
, not getting hit.
try not initialize threadpool and smp and see if it works
i'll check it as soon as possible
just make sure it is a problem of threadpool
yeah i got the same problem
so the problem looks like the trampoline address
@iBeizsley
no the problem is ThreadPool for sure
https://github.com/nifanfa/MOOS/tree/main I just reverted the newest changes. you can use this one
it works fine on real hardware
The problem might be with native aot itself. We can't make Corlib a lib instead of shared project
So the problem is solved
i just renamed stable to main btw
let me know if it works now
I found that the real problem is that ILCompiler is not stable
Running on an I7 6700K bare metal, OS freezes/crashes without any output at
Native.Sti()
call inThreadPool.Initialize()
https://github.com/nifanfa/MOOS/blob/10737deb70ce82fe731a3debad1de298df8e47b1/Kernel/Misc/Threading.cs#L145
Same ISO works fine in QEMU, Can try to extract more information with WriteLines prior if it'd be at all helpful 😅
Console.WriteLine before and after the call in question, output looks like:
Happens with GC & GUI disabled, or enabled. Both work in VM. APIC build var can't be disabled without code changes; Timer and presumably other stuff uses it without compiler ifs.