2 ms·
Well, there is this: http://elixir.free-electrons.com/linux/latest/source/arch/x86/kernel/process.c#L360 http://elixir.free-electrons.com/linux/latest/source/ar
by Someone 9y ago
Well, there is this: http://elixir.free-electrons.com/linux/latest/source/arch/x86/kernel/process.c#L360 http://elixir.free-electrons.com/linux/latest/source/arch/x8...
Yes, Linux does the equivalent of
while(true)
{
halt
}
I don’t think that code will loop, but why take the risk?
There is/was a detailed description of what it takes to stop an OS that included multiple ways to stop the CPUs, executed in order in the hope/expectation that one of them would work that in the end hit a similar loop, but I can’t find it anymore.