System reset using triple fault
Posted: Sun Feb 03, 2008 3:32 pm
Hello,
Upto now, ( and still ) I am using triple-fault as a system reset mechanism. When the user wants to reset the system, after making necessary OS stopping, I set-up an idt with limit zero and issue a software interrupt, the CPU triple faults and system automatically resets.
Questions are:
1) is this method good? is it guaranteed to reset the system on all types of systems?
2) I have started programming multiple cpu ( SMP ) lately ( using bochs, I have no real hardware yet ). What happens to other cpus when one of the cpu triple-faults? do they continue executing?
Best regards.
Upto now, ( and still ) I am using triple-fault as a system reset mechanism. When the user wants to reset the system, after making necessary OS stopping, I set-up an idt with limit zero and issue a software interrupt, the CPU triple faults and system automatically resets.
Questions are:
1) is this method good? is it guaranteed to reset the system on all types of systems?
2) I have started programming multiple cpu ( SMP ) lately ( using bochs, I have no real hardware yet ). What happens to other cpus when one of the cpu triple-faults? do they continue executing?
Best regards.