Restarting
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Restarting
What needs to be done in order to restart the machine? Probably jumping back to real mode and executing POST? Am I far from it?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: Restarting
you could invoke a triple-fault to make the machine reboot.
Website: https://joscor.com
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Restarting
What's the standard way? A triple fault sounds like a hack
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: Restarting
Update the reset word in BDA with 1234h and pulse bit 0 of keyboard controller output port with 0b using the command 0FEh.
If you have seen bad English in my words, tell me what's wrong, please.
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Re: Restarting
Except, a triple fault will always work. If the keyboard controller doesn't support that command, it won't work.
You could also use ACPI.
You could also use ACPI.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Restarting
How does say, windows or linux do it?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: Restarting
I hope that now they both use ACPI.Love4Boobies wrote:How does say, windows or linux do it?
If you have seen bad English in my words, tell me what's wrong, please.
Re: Restarting
Hi,
I would suggest trying a few things in order - if ACPI is present use that, if not, fall back on the keyboard controller. If that doesn't work, you can either triple-fault or display a message saying "It is now safe to reset / shutdown..." as Windows used to on older PC's (in the days of Windows 95, I think it exclusively used that method when you selected the shutdown command).
Cheers,
Adam
I would suggest trying a few things in order - if ACPI is present use that, if not, fall back on the keyboard controller. If that doesn't work, you can either triple-fault or display a message saying "It is now safe to reset / shutdown..." as Windows used to on older PC's (in the days of Windows 95, I think it exclusively used that method when you selected the shutdown command).
Cheers,
Adam
Re: Restarting
Knoppix for example still does it that way to give you a chance to remove the CD / DVD before reboot.
Every good solution is obvious once you've found it.
Re: Restarting
Of course, if you don't mind annoying your users you open the CD drawer at the start of the shutdown procedure, close it at the end and with a fast shutdown you can trap the user's fingers in the CD tray
Re: Restarting
Yeah... Most CD or DVD drives will try to eject the tray if they detect that it cannot be fully closed. But that's not the pointAJ wrote:Of course, if you don't mind annoying your users you open the CD drawer at the start of the shutdown procedure, close it at the end and with a fast shutdown you can trap the user's fingers in the CD tray
Anyway, some VMware implementations will complain if you use a triple fault to reboot the machine. I would only use it as a last resort.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Restarting
Anyway, of all things, what does the keyboard controller have to do with anything? Does it assert some signal to the CPU to restore it to its initial state (and therefore because of CS:IP control will be passed to the BIOS initialization code)?
I presume they had another extra pin around the 8042 and decided to use that, just like with A20
I presume they had another extra pin around the 8042 and decided to use that, just like with A20
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: Restarting
You want Ctrl - Alt - Del to work when the OS hangs or not?
Every good solution is obvious once you've found it.
Re: Restarting
That is correct. The keyboard controller on the motherboard has a reset CPU command. It pulls down the RESET# line of the processor or something.Love4Boobies wrote:Anyway, of all things, what does the keyboard controller have to do with anything? Does it assert some signal to the CPU to restore it to its initial state (and therefore because of CS:IP control will be passed to the BIOS initialization code)?