What is the difference between a cold and a warm boot?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
ClarionCoder51
Member
Member
Posts: 28
Joined: Sun Aug 16, 2009 11:52 am
Location: Georgia, USA

What is the difference between a cold and a warm boot?

Post by ClarionCoder51 »

This is a very simple question. What's the difference between a cold boot and a warm boot? This has been bothering me for a few days now, and I just want to get it out of my head.
"The n00b zone is for loading and unloading newbies only."
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: What is the difference between a cold and a warm boot?

Post by Troy Martin »

IIRC cold boots are from no power and warm boots are a reboot. I think.

EDIT: Yeah, cold boot is resetting the power and warm boot is like a software reboot (no power change.)
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
AndrewAPrice
Member
Member
Posts: 2303
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: What is the difference between a cold and a warm boot?

Post by AndrewAPrice »

Troy Martin wrote:IIRC cold boots are from no power and warm boots are a reboot. I think.

EDIT: Yeah, cold boot is resetting the power and warm boot is like a software reboot (no power change.)
Even warm boots could have double meaning. The software could invoke the processor to reboot just as pressing the reset button could, or the OS loads the bootloader and jumps into it self, effectively doing the whole thing in software and avoiding POST. Perhaps some OS's take this a step further and just unload and reload all modules, and reset all kernel variables.
My OS is Perception.
mybura
Posts: 18
Joined: Wed Sep 02, 2009 12:59 am

Re: What is the difference between a cold and a warm boot?

Post by mybura »

A cold boot refers to a power cycle on the hardware.

A warm boot (aka Int 19h) refers to IPL usually controlled by the BIOS but the OS could also simulate one. In essence a warm boot could be initiated by setting the initial processor state to what it is with a cold boot. Other hardware would also have to be "reset" otherwise drivers would get it in an unexpected state when they load initially in the OS. The requirement for hardware reset is best done by the BIOS as it knows most about the controllers attached to the devices.

An alternative method of Warm boot would be for the BIOS to "press" the reset button on the motherboard which is probably what most BIOSes would do to keep the process simple and consistent.
Post Reply