CN100334556C - Start-up method and computer system thereof when central processing unit is down - Google Patents
Start-up method and computer system thereof when central processing unit is down Download PDFInfo
- Publication number
- CN100334556C CN100334556C CNB031390935A CN03139093A CN100334556C CN 100334556 C CN100334556 C CN 100334556C CN B031390935 A CNB031390935 A CN B031390935A CN 03139093 A CN03139093 A CN 03139093A CN 100334556 C CN100334556 C CN 100334556C
- Authority
- CN
- China
- Prior art keywords
- cpu
- computer system
- hardware
- reset
- combinational circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000009471 action Effects 0.000 claims abstract description 33
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 abstract description 54
- 230000015654 memory Effects 0.000 abstract description 19
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明是有关于一种开机方法及其计算机系统,且特别是有关于一种可在中央处理器当机时进行暖开机或冷开机的开机方法及其计算机系统。The present invention relates to a booting method and its computer system, and in particular to a booting method capable of warm booting or cold booting when a central processing unit is down and its computer system.
背景技术Background technique
一般而言,计算机系统都会提供硬件重置功能(Hardware reset function)和软件重置功能(Software reset function),以分别使计算机系统进行冷开机(cold boot)及暖开机(warm boot)。当计算机系统当机之后,使用者可以选择硬件重置功能与软件重置功能,以使计算机系统恢复正常。Generally speaking, the computer system will provide a hardware reset function (Hardware reset function) and a software reset function (Software reset function), so as to make the computer system perform a cold boot (cold boot) and a warm boot (warm boot) respectively. When the computer system crashes, the user can select a hardware reset function and a software reset function to restore the computer system to normal.
其中,软件重置功能是,以软件的方式执行系统重置的动作。然而,当计算机系统发生连计算机系统的中央处理器(Central Processing Unit,CPU)都当机,而无法执行软件指令时,此软件重置功能便无法使用。而硬件重置功能是指,以硬件的方式执行计算机系统重置的动作。所以,不管CPU是否当机,此硬件重置功能均可以使用。当执行完软件重置功能后,计算机系统是完成暖开机(Warm boot),亦即计算机系统将重新启动,且计算机系统当机前的设定及存储在计算机系统的同步动态存储器(Synchronous Dynamic RandomAccess Memory,SDRAM)的数据仍然存在。而当执行完硬件重置功能后,计算机系统是完成冷开机(Cold boot),也就是计算机系统将重新启动并回复到出厂时的预设(default)状态。所有计算机系统当机前的设定及存储在SDRAM的数据都会消失。Wherein, the software reset function is to perform a system reset action in a software manner. However, when the computer system crashes even the central processing unit (CPU) of the computer system and cannot execute software instructions, the software reset function cannot be used. The hardware reset function refers to performing an action of resetting the computer system by means of hardware. Therefore, regardless of whether the CPU is down or not, this hardware reset function can be used. After executing the software reset function, the computer system will complete the warm boot (Warm boot), that is, the computer system will be restarted, and the current settings of the computer system and the synchronous dynamic memory (Synchronous Dynamic Random Access) stored in the computer system Memory, SDRAM) data still exist. And after executing the hardware reset function, the computer system is to complete the cold boot (Cold boot), that is, the computer system will restart and return to the default state when leaving the factory. All current settings of the computer system and data stored in SDRAM will disappear.
请参照图1,其所绘示乃传统的计算机系统的主要架构图。传统的计算机系统100包括有:一CPU102、一SDRAM104、一软件重置产生电路106及一硬件重置产生电路108。SDRAM104用以存储计算机系统100的数据与设定值,并由CPU102所控制。软件重置产生电路106用以当使用者选择进行软件重置功能时,传送一软件重置信号SR至CPU102,以启动CPU102进行软件重置动作。而硬件重置产生电路108是用以当使用者选择进行硬件重置功能时,传送一硬件重置信号HR至CPU102,以启动CPU102进行硬件重置动作。Please refer to FIG. 1 , which shows the main structure diagram of a traditional computer system. The
请参照图2,其所绘示乃传统计算机系统100进行暖开机或冷开机的开机方法的流程图。首先,执行步骤202,判断CPU100是否处于当机状态,若是,则执行步骤204;若否,则执行步骤206。在步骤204中,由于CPU102已经当机,CPU102是无法执行软件重置动作,故使用者只能选择硬件重置功能。在步骤204之后,进入步骤208,计算机系统100进行冷开机,而SDRAM104所存储的所有数据与设定值将全部消失。Please refer to FIG. 2 , which is a flow chart of a method for warm booting or cold booting of the
当CPU102未当机时,使用者可以选择硬件重置功能或是软件重置功能。故在步骤206中,计算机系统100判断使用者选择硬件重置功能或是软件重置功能。若使用者选择软件重置功能,则接着执行步骤210,计算机系统100进行暖开机,而SDRAM104所存储的所有数据与设定值将全部保留;若使用者选择软件重置功能,则执行步骤208。When the
在传统的计算机系统100中,当CPU102当机时,计算机系统100无法执行软件重置动作,而只能执行硬件重置动作以完成冷开机。但是,当计算机系统100完成冷开机之后,使用者在计算机系统当机前存储于SDRAM104的数据及计算机系统100的设定值都将完全消失。对于使用者而言,使用者必须重新对计算机系统100进行设定,相当浪费时间,而且,重要的数据极可能因此遗失,而造成使用者的严重损害。In the
发明内容Contents of the invention
有鉴于此,本发明的目的就是在提供一种可在中央处理器当机时进行暖开机或冷开机的开机方法及其计算机系统。本发明可在CPU当机时,让使用者仍然可以选择软件重置功能以进行暖开机。如此,计算机系统当机前存储于SDRAM的数据及设定值将可被保存,而避免传统的重要的数据遗失的缺点,并省去使用者对计算机系统进行重新设定的时间浪费。In view of this, the object of the present invention is to provide a booting method and computer system thereof capable of warm booting or cold booting when the central processing unit is down. The present invention allows the user to still select the software reset function for warm booting when the CPU is down. In this way, the data and setting values stored in the SDRAM before the computer system is turned on can be saved, thereby avoiding the traditional shortcoming of important data loss, and saving the time wasted for the user to reset the computer system.
根据本发明的目的,提出一种可在中央处理器当机时进行暖开机或冷开机的开机方法,是使用于一计算机系统中。计算机系统具有一CPU与一存储器,CPU是用以控制存储器,存储器是用以存储计算机系统的数据与设定值。本发明的开机方法包括:首先,当CPU处于当机状态时,计算机系统检测一使用者所欲执行的是硬件重置功能或是软件重置功能。接着,藉由执行一硬件重置动作以将CPU重新启动。然后,当使用者选择执行硬件重置功能时,清除存储器的数据与设定值,使计算机系统回复到预设状态。之后,当使用者选择执行软件重置功能时,硬件重置动作被视为替代一软件重置动作的动作,计算机系统保存存储器的数据与设定值,使计算机系统恢复至当机前的设定状态。According to the object of the present invention, a booting method for warm booting or cold booting is proposed when the central processing unit is down, which is used in a computer system. The computer system has a CPU and a memory, the CPU is used to control the memory, and the memory is used to store data and setting values of the computer system. The booting method of the present invention includes: firstly, when the CPU is in a shutdown state, the computer system detects whether a user wants to execute a hardware reset function or a software reset function. Then, the CPU is restarted by performing a hardware reset operation. Then, when the user chooses to execute the hardware reset function, the data and setting values in the memory are cleared, so that the computer system returns to the default state. Afterwards, when the user chooses to execute the software reset function, the hardware reset action is regarded as an action to replace a software reset action, and the computer system saves the data and setting values of the memory, so that the computer system returns to the current setting. fixed state.
根据本发明的另一目的,提出一种可在CPU当机时进行暖开机或冷开机的计算机系统,包括:一CPU、一存储器、一判断组合电路、一硬件重置组合电路、一软件重置产生电路及一硬件重置产生电路。存储器是用以存储计算机系统的数据与设定值,并由CPU所控制。判断组合电路是用以判断CPU是否当机。硬件重置组合电路是与CPU电性连接,并由判断组合电路所控制。软件重置产生电路是用以当使用者选择进行软件重置功能时,传送一软件重置信号至CPU及判断组合电路。而硬件重置产生电路是用以当使用者选择进行硬件重置功能时,传送一第一硬件重置信号至判断组合电路及硬件重置组合电路。其中,当判断组合电路接收到软件重置信号,且判断出CPU为当机状态时,判断组合电路控制硬件重置组合电路,使硬件重置组合电路发出一第二硬件重置信号至CPU,以将CPU重新启动。之后,判断组合电路传送一判断信号至CPU,以告知CPU第二硬件重置信号为替代软件重置信号的指示信号,然后,计算机系统保存存储器的数据与设定值,使计算机系统恢复至当机前的设定状态。而当硬件重置组合电路接收到硬件重置信号时,硬件重置组合电路传送一第二硬件重置信号至CPU,以将CPU重新启动,CPU并清除存储器的数据与设定值,使计算机系统回复到预设状态。According to another object of the present invention, a computer system that can perform warm boot or cold boot when the CPU is down is proposed, including: a CPU, a memory, a judgment combination circuit, a hardware reset combination circuit, a software reset A reset generation circuit and a hardware reset generation circuit. The memory is used to store data and setting values of the computer system, and is controlled by the CPU. The judging combination circuit is used to judge whether the CPU is down. The hardware reset combination circuit is electrically connected with the CPU and controlled by the judgment combination circuit. The software reset generation circuit is used for sending a software reset signal to the CPU and the judging combination circuit when the user chooses to perform the software reset function. The hardware reset generation circuit is used to send a first hardware reset signal to the judging combination circuit and the hardware reset combination circuit when the user chooses to perform the hardware reset function. Wherein, when the judging combination circuit receives the software reset signal and judges that the CPU is in a shutdown state, the judging combination circuit controls the hardware reset combination circuit so that the hardware reset combination circuit sends a second hardware reset signal to the CPU, to restart the CPU. Afterwards, the judging combination circuit sends a judging signal to the CPU to inform the CPU that the second hardware reset signal is an indication signal to replace the software reset signal, and then the computer system saves the data and setting values of the memory so that the computer system returns to the current state. The setting state before the machine. And when the hardware reset combination circuit receives the hardware reset signal, the hardware reset combination circuit sends a second hardware reset signal to the CPU to restart the CPU, and the CPU clears the data and setting values of the memory, so that the computer The system returns to the default state.
本发明还提供一种可在中央处理器当机时进行暖开机或冷开机的开机方法,是使用于一计算机系统中,该计算机系统具有一CPU、一存储器、一判断组合电路、一硬件重置组合电路、一软件重置产生电路及一硬件重置产生电路,该存储器是用以存储该计算机系统的数据与设定值,并由该CPU所控制,该判断组合电路是用以判断该CPU是否当机,该硬件重置组合电路是该CPU电性连接,并由该判断组合电路所控制,该软件重置产生电路是用以当使用者选择进行软件重置功能时,传送一软件重置信号至该CPU及该判断组合电路,而该硬件重置产生电路是用以当使用者选择进行硬件重置功能时,传送一第一硬件重置信号至该判断组合电路及该硬件重置组合电路,该开机方法包括:(a)判断该CPU是否处于当机状态,若是,则进入步骤(b);(b)判断一使用者所欲执行的是硬件重置功能或是软件重置功能,当该使用者欲执行软件重置功能时,进入步骤(c),当该使用者欲执行硬件重置功能时,进入步骤(d);(c)当该判断组合电路接收该软件重置信号,且该判断组合电路得知该CPU为当机状态之后,该判断组合电路控制该硬件重置组合电路,使该硬件重置组合电路发出该第二硬件重置信号至该CPU,以将该CPU重新启动,并进入步骤(e);(d)当该硬件重置组合电路接收到该第一硬件重置信号之后,该硬件重置组合电路发出该第二硬件重置信号至该CPU,以将该CPU重新启动,并进入步骤(e);(e)当该CPU重新启动后,该CPU接收从该判断组合电路发出的一判断信号,若该CPU根据该判断信号得知该第二硬件重置信号为替代该软件重置信号的指示信号时,则进入步骤(f);若该CPU根据该判断信号判断出该第二硬件重置信号代表应进行硬件重置动作的指示信号时,进入步骤(g);(f)判断该存储器上的数据是否正确,若是,则保存该存储器的数据与设定值,使该计算机系统恢复至当机前的设定状态以完成暖开机,若否,则进入步骤(g);以及(g)清除该存储器的数据与设定值,使该计算机系统回复到预设状态以完成冷开机,并结束本方法。The present invention also provides a booting method capable of warm booting or cold booting when the central processing unit is down, which is used in a computer system. Set combination circuit, a software reset generation circuit and a hardware reset generation circuit, the memory is used to store the data and setting values of the computer system, and is controlled by the CPU, the judgment combination circuit is used to judge the Whether the CPU is down, the hardware reset combination circuit is electrically connected to the CPU and controlled by the judgment combination circuit, and the software reset generation circuit is used to transmit a software when the user chooses to perform the software reset function A reset signal is sent to the CPU and the judging combination circuit, and the hardware reset generation circuit is used to send a first hardware reset signal to the judging combination circuit and the hardware reset function when the user chooses to perform a hardware reset function. The combined circuit is set, and the starting method includes: (a) judging whether the CPU is in a shutdown state, if so, entering step (b); (b) judging whether a user wants to perform a hardware reset function or a software reset Setting function, when the user wants to execute the software reset function, enter step (c), when the user intends to execute the hardware reset function, enter step (d); (c) when the judging combination circuit receives the software reset signal, and after the judging combination circuit learns that the CPU is in a shutdown state, the judging combination circuit controls the hardware reset combination circuit so that the hardware reset combination circuit sends the second hardware reset signal to the CPU, to restart the CPU, and enter step (e); (d) after the hardware reset combination circuit receives the first hardware reset signal, the hardware reset combination circuit sends the second hardware reset signal to The CPU, to restart the CPU, and enter step (e); (e) after the CPU restarts, the CPU receives a judgment signal sent from the judgment combination circuit, if the CPU knows according to the judgment signal When the second hardware reset signal is an indication signal to replace the software reset signal, then enter step (f); if the CPU judges that the second hardware reset signal represents that the hardware reset action should be performed according to the judgment signal When indicating signal, enter step (g); (f) judge whether the data on this memory is correct, if so, then save the data and setting value of this memory, make this computer system return to the setting state before the machine to finish Warm boot, if not, then enter step (g); and (g) clear the data and setting values of the memory, make the computer system return to the default state to complete the cold boot, and end the method.
本发明可以在CPU当机时,使用者仍然可以进行暖开机,以保存SDRAM中既有的数据与设定值。In the present invention, when the CPU is down, the user can still perform a warm boot to save the existing data and setting values in the SDRAM.
附图说明Description of drawings
图1绘示乃传统的计算机系统的主要架构图;FIG. 1 shows the main structure diagram of a traditional computer system;
图2绘示乃传统计算机系统进行暖开机或冷开机的开机方法的流程图;Fig. 2 depicts a flowchart of a method for warm booting or cold booting of a traditional computer system;
图3绘示依照本发明一优选实施例的一种可在中央处理器当机时进行暖开机或冷开机的计算机系统的架构图;以及FIG. 3 shows a structure diagram of a computer system capable of warm booting or cold booting when the CPU is down according to a preferred embodiment of the present invention; and
图4A至图4C绘示乃本发明的开机方法的详细流程图。4A to 4C are detailed flowcharts of the booting method of the present invention.
附图标号说明Explanation of reference numbers
100、300:计算机系统 102、302:CPU100, 300:
104、304:SDRAM 106、306:软件重置产生电路104, 304: SDRAM 106, 306: Software reset generating circuit
108、308:硬件重置产生电路 202~210、402~422:流程步骤108, 308: Hardware reset generating circuit 202~210, 402~422: Process steps
310:判断组合电路 312:硬件重置组合电路310: Judgment combination circuit 312: Hardware reset combination circuit
具体实施方式Detailed ways
为让本发明的上述目的、特征、和优点能更明显易懂,下文特举一优选实施例,并配合所附图式,作详细说明如下:In order to make the above-mentioned purposes, features, and advantages of the present invention more obvious and understandable, a preferred embodiment is specifically cited below, and in conjunction with the accompanying drawings, the detailed description is as follows:
本发明的应用于一计算机系统的可在中央处理器当机时进行暖开机或冷开机的开机方法的主要精神在于,当CPU处于当机状态时,计算机系统检测一使用者所欲执行的是硬件重置功能或是软件重置功能。然后,藉由执行一硬件重置动作以将CPU重新启动。接着,当使用者选择执行硬件重置功能时,清除SDRAM的数据与设定值,使计算机系统回复到预设状态。而当使用者选择执行软件重置功能时,硬件重置动作被视为替代一软件重置动作的动作,计算机系统保存SDRAM的数据与设定值,使计算机系统恢复至当机前的设定状态。本发明可以在CPU当机时,使用者仍然可以进行暖开机,以保存SDRAM中既有的数据与设定值。The main spirit of the method for warm booting or cold booting applied to a computer system of the present invention when the central processing unit is down is that when the CPU is in a down state, the computer system detects that a user wants to execute Hardware reset function or software reset function. Then, restart the CPU by performing a hardware reset operation. Then, when the user chooses to execute the hardware reset function, the data and setting values of the SDRAM are cleared, so that the computer system returns to the default state. And when the user chooses to execute the software reset function, the hardware reset action is regarded as an action to replace a software reset action, and the computer system saves the data and setting values of SDRAM, so that the computer system returns to the current setting. state. In the present invention, when the CPU is down, the user can still perform a warm boot to save the existing data and setting values in the SDRAM.
请参照图3,其绘示依照本发明一优选实施例的一种可在中央处理器当机时进行暖开机或冷开机的计算机系统的架构图。本发明的计算机系统300包括有:一CPU302、一SDRAM304、一判断组合电路310、一硬件重置组合电路312、一软件重置产生电路306及一硬件重置产生电路308。SDRAM304是用以存储计算机系统300的数据与设定值,并由CPU302所控制。判断组合电路310是用以藉由当机信号CH判断CPU302是否当机。硬件重置组合电路308是与CPU302电性连接,并由判断组合电路310所控制。软件重置产生电路306是用以当使用者选择进行软件重置功能时,传送一软件重置信号SR至CPU302及判断组合电路310,以通知CPU302及判断组合电路310使用者希望计算机系统300执行软件重置动作。而硬件重置产生电路308则是用以当使用者选择进行硬件重置功能时,传送一第一硬件重置信号HR1至判断组合电路310及硬件重置组合电路312,以通知判断组合电路310及硬件重置组合电路312使用者希望计算机系统300执行硬件重置动作。Please refer to FIG. 3 , which shows a structure diagram of a computer system capable of warm booting or cold booting when the CPU is down according to a preferred embodiment of the present invention. The computer system 300 of the present invention includes: a CPU 302 , an SDRAM 304 , a judgment combination circuit 310 , a hardware reset combination circuit 312 , a software reset generation circuit 306 and a hardware reset generation circuit 308 . The SDRAM 304 is used to store data and setting values of the computer system 300 and is controlled by the CPU 302 . The judging combination circuit 310 is used for judging whether the CPU 302 is down or not according to the shutdown signal CH. The hardware reset combination circuit 308 is electrically connected to the CPU 302 and controlled by the judgment combination circuit 310 . The software reset generation circuit 306 is used to send a software reset signal SR to the CPU 302 and the judgment combination circuit 310 when the user chooses to perform the software reset function, so as to notify the CPU 302 and the judgment combination circuit 310 that the user wants the computer system 300 to execute Software reset action. The hardware reset generation circuit 308 is used to send a first hardware reset signal HR1 to the judgment combination circuit 310 and the hardware reset combination circuit 312 when the user chooses to perform the hardware reset function, so as to notify the judgment combination circuit 310 And the hardware reset combination circuit 312 The user wants the computer system 300 to perform a hardware reset operation.
其中,当判断组合电路310接收到软件重置信号SR,且由当机信号CH判断出CPU302为当机状态时,判断组合电路310输出控制信号CS至硬件重置组合电路312,以通知硬件重置组合电路312执行硬件重置动作。此时,硬件重置组合电路312将发出一第二硬件重置信号HR2至CPU302,以将CPU重新启动。之后,判断组合电路传送一判断信号DT至CPU,以告知CPU302第二硬件重置信号HR2为替代软件重置信号的指示信号。然后,计算机系统300保存SDRAM304的数据与设定值,使计算机系统300恢复至当机前的设定状态。而当硬件重置组合电路312接收到硬件重置信号HR1时,硬件重置组合电路312传送一第二硬件重置信号HR2至CPU302,以将CPU302重新启动,并使CPU302进行硬件重置动作,CPU302并清除SDRAM304的数据与设定值,使计算机系统300回复到预设状态。Wherein, when the judging combination circuit 310 receives the software reset signal SR and judges that the CPU 302 is in a shutdown state by the shutdown signal CH, the judging combination circuit 310 outputs a control signal CS to the hardware reset combination circuit 312 to notify the hardware reset The combination circuit 312 is configured to perform a hardware reset operation. At this time, the hardware reset combination circuit 312 will send a second hardware reset signal HR2 to the CPU 302 to restart the CPU. Afterwards, the judging combination circuit transmits a judging signal DT to the CPU to inform the CPU 302 that the second hardware reset signal HR2 is an indication signal replacing the software reset signal. Then, the computer system 300 saves the data and setting values of the SDRAM 304 to restore the computer system 300 to the current setting state. When the hardware reset combination circuit 312 receives the hardware reset signal HR1, the hardware reset combination circuit 312 sends a second hardware reset signal HR2 to the CPU 302 to restart the CPU 302 and make the CPU 302 perform a hardware reset action. The CPU 302 clears the data and setting values of the SDRAM 304, so that the computer system 300 returns to the default state.
请参照图4A至图4C,其所绘示乃本发明的开机方法的详细流程图。请同时参照图3。本发明的开机方法首先执行步骤402,判断CPU302是否处于当机状态,若是,则进入步骤404;若否,则进入步骤418。在步骤404中,判断一使用者所欲执行的是硬件重置功能或是软件重置功能。当使用者欲执行软件重置功能时,进入步骤406;当使用者欲执行硬件重置功能时,进入步骤408。Please refer to FIG. 4A to FIG. 4C , which are detailed flowcharts of the booting method of the present invention. Please also refer to Figure 3. The booting method of the present invention first executes step 402 to determine whether the CPU 302 is in a down state, if yes, then enters step 404; if not, then enters
步骤406至步骤410是以执行部分的硬件重置动作替代部分的软件重置动作的步骤,此部分的硬件重置动作是指仅利用硬件重置动作来使CPU302恢复正常状态来执行软件程序,而CPU302将接着根据判断信号DT来决定是否将SDRAM304的内容清除,以执行完整的硬件重置动作或软件重置动作。Steps 406 to 410 are the steps of replacing part of the software reset action by performing a part of the hardware reset action. This part of the hardware reset action refers to only using the hardware reset action to restore the CPU 302 to a normal state to execute the software program. The CPU 302 then determines whether to clear the contents of the SDRAM 304 according to the judgment signal DT, so as to perform a complete hardware reset or software reset.
在步骤406中,当判断组合电路310接收软件重置信号SR,且判断组合电路310由当机信号CH得知CPU为当机状态之后,判断组合电路310发出控制信号CS,以控制硬件重置组合电路312,使硬件重置组合电路312发出第二硬件重置信号HR2至CPU302,以将CPU302重新启动,并进入步骤410。In step 406, when the judging combination circuit 310 receives the software reset signal SR, and the judging combination circuit 310 learns that the CPU is in a down state from the down signal CH, the judging combination circuit 310 sends a control signal CS to control the hardware reset The combination circuit 312 makes the hardware reset combination circuit 312 send a second hardware reset signal HR2 to the CPU 302 to restart the CPU 302 and enter
在步骤408中,当硬件重置组合电路312接收到第一硬件重置信号HR1之后,硬件重置组合电路312发出第二硬件重置信号HR2至CPU302,以将CPU302重新启动,并进入步骤410。In step 408, after the hardware reset combination circuit 312 receives the first hardware reset signal HR1, the hardware reset combination circuit 312 sends a second hardware reset signal HR2 to the CPU 302 to restart the CPU 302, and enter
在步骤410中,当CPU302重新启动后,CPU302接收从判断组合电路310发出的判断信号DT。若CPU302根据判断信号DT得知第二硬件重置信号HR2为替代软件重置信号的指示信号时,则进入步骤412;若CPU302根据判断信号DT判断出第二硬件重置信号HR2代表应进行硬件重置动作的指示信号时,进入步骤416。在步骤410中,CPU302还发出初始化信号Int,以初始化判断组合电路310。In
在步骤412中,判断SDRAM304上的数据是否正确,若是,则进入步骤414,保存SDRAM304的数据与设定值,使计算机系统300恢复至当机前的设定状态以完成暖开机;若否,则进入步骤416,清除SDRAM304的数据与设定值,使计算机系统300回复到预设状态以完成冷开机。In
此外,在步骤402中,当判断CPU302非处于当机状态之后,接着执行步骤418,判断使用者所欲执行的是硬件重置功能或是软件重置功能。当使用者欲执行软件重置功能时,则进入步骤420,CPU302接收软件重置信号SR,执行软件重置动作,CPU302并发出初始化信号Int,以初始化判断组合电路310,接着进入步骤422,CPU302重新启动,而SDRAM 304中的数据与设定值将被保留。当使用者欲执行硬件重置功能时,则执行步骤424,硬件重置组合电路312接收第一硬件重置信号HR1,并发出第二硬件重置信号HR2以使CPU302进行硬件重置动作。此时,CPU302将重新启动,而SDRAM304中的数据与设定值将会被清除。In addition, in step 402, after it is determined that the CPU 302 is not in a shutdown state, then step 418 is executed to determine whether the user wants to perform a hardware reset function or a software reset function. When the user wants to execute the software reset function, then enter
本发明的计算机系统300较佳为一个人数字助理(Personal DigitalAssistant,PDA),而PDA的操作系统较佳为WinCE系统。SDRAM304也可用其它具有相同功能的存储器所取代,本发明并不限定于使用SDRAM。The computer system 300 of the present invention is preferably a personal digital assistant (Personal Digital Assistant, PDA), and the operating system of the PDA is preferably the WinCE system. SDRAM 304 can also be replaced by other memories with the same function, and the present invention is not limited to using SDRAM.
本发明上述实施例所揭露的可在中央处理器当机时进行暖开机或冷开机的开机方法及其计算机系统,CPU302当机且使用者欲执行暖开机时,判断组合电路310会判断出CPU302是处于当机状态,并自动地以执行硬件重置动作的方式,先使CPU302恢复正常状态,并告知CPU302此次硬件重置动作乃替代软件重置动作的动作,而使SDRAM304中的数据与设定值得以保存,并可使计算机系统300恢复至当机前的状态。对于使用者而言,不管CPU302当机与否,使用者均能选择暖开机与冷开机。对使用者而言,CPU有没有当机并没有差别。相较于传统作法的CPU当机时使用者仅能选择冷开机,本发明可让使用者于CPU当机时,还能选择暖开机,以将存储于SDRAM的数据及设定值救回,避免遗失重要的数据,并可省去使用者对计算机系统进行重新设定的时间浪费。In the method and computer system disclosed in the above-mentioned embodiments of the present invention that can perform warm or cold boot when the central processing unit is down, when the CPU 302 is down and the user wants to perform a warm boot, the judging combination circuit 310 will judge that the CPU 302 It is in a crash state, and automatically executes a hardware reset action to restore the CPU 302 to a normal state, and informs the CPU 302 that this hardware reset action is an action to replace the software reset action, so that the data in the SDRAM 304 and The set value can be saved, and the computer system 300 can be restored to the state before the shutdown. For the user, regardless of whether the CPU 302 is down or not, the user can choose between a warm boot and a cold boot. For the user, it makes no difference whether the CPU hangs or not. Compared with the traditional method where the user can only choose a cold boot when the CPU is down, the present invention allows the user to choose a warm boot when the CPU is down, so as to restore the data and setting values stored in SDRAM. Avoid the loss of important data, and save the time wasted for users to reset the computer system.
综上所述,虽然本发明已以一优选实施例揭露如上,然其并非用以限定本发明,本领域技术人员,在不脱离本发明的精神和范围内,当可作各种的更动与润饰,因此本发明的保护范围当视所附的权利要求书所界定者为准。In summary, although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Those skilled in the art may make various modifications without departing from the spirit and scope of the present invention. and retouching, so the scope of protection of the present invention should be defined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031390935A CN100334556C (en) | 2003-09-30 | 2003-09-30 | Start-up method and computer system thereof when central processing unit is down |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031390935A CN100334556C (en) | 2003-09-30 | 2003-09-30 | Start-up method and computer system thereof when central processing unit is down |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1604048A CN1604048A (en) | 2005-04-06 |
CN100334556C true CN100334556C (en) | 2007-08-29 |
Family
ID=34659292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031390935A Expired - Lifetime CN100334556C (en) | 2003-09-30 | 2003-09-30 | Start-up method and computer system thereof when central processing unit is down |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100334556C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100530039C (en) * | 2006-06-02 | 2009-08-19 | 鸿富锦精密工业(深圳)有限公司 | Computer system reset device |
CN100545785C (en) * | 2007-01-04 | 2009-09-30 | 盛群半导体股份有限公司 | Improved microcontroller resetting method |
CN100468354C (en) * | 2007-02-15 | 2009-03-11 | 威盛电子股份有限公司 | Method and system for judging computer downtime and restarting according to input/output signals |
CN101871795B (en) * | 2009-04-24 | 2013-01-02 | 英业达股份有限公司 | Method for detecting sensor function |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1299483A (en) * | 1998-04-30 | 2001-06-13 | 英特尔公司 | Initializing and restarting operating systems |
CN1362672A (en) * | 2001-01-05 | 2002-08-07 | 神基科技股份有限公司 | Configure the boot method |
CN1405676A (en) * | 2002-11-18 | 2003-03-26 | 威盛电子股份有限公司 | Method for turning-on computer capable of using debugging system, computer system and its bridge connector |
CN1405677A (en) * | 2002-11-18 | 2003-03-26 | 威盛电子股份有限公司 | Method for turning-on computer capable of debugging system and computer system thereof |
-
2003
- 2003-09-30 CN CNB031390935A patent/CN100334556C/en not_active Expired - Lifetime
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1299483A (en) * | 1998-04-30 | 2001-06-13 | 英特尔公司 | Initializing and restarting operating systems |
CN1362672A (en) * | 2001-01-05 | 2002-08-07 | 神基科技股份有限公司 | Configure the boot method |
CN1405676A (en) * | 2002-11-18 | 2003-03-26 | 威盛电子股份有限公司 | Method for turning-on computer capable of using debugging system, computer system and its bridge connector |
CN1405677A (en) * | 2002-11-18 | 2003-03-26 | 威盛电子股份有限公司 | Method for turning-on computer capable of debugging system and computer system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN1604048A (en) | 2005-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4873839B2 (en) | Startup method and computer system | |
TWI528284B (en) | Method for switching operating system and electronic apparatus using thereof | |
US20080162901A1 (en) | Computer Multiple Operation System Switching Method | |
JPWO2002095556A1 (en) | Apparatus having standby mode, program, and method of controlling apparatus having standby mode | |
JP2008217530A (en) | Information processing apparatus and setting method | |
JPH09282056A (en) | Network hibernation system and control method thereof | |
WO2016101519A1 (en) | Method and device for realizing restart of operating system | |
JPH11184703A (en) | Information processor and boot method | |
CN113032788A (en) | Firmware image switching method, device and medium in computer system | |
WO2012149774A1 (en) | Method and apparatus for activating processor | |
CN100334556C (en) | Start-up method and computer system thereof when central processing unit is down | |
CN112463226A (en) | Starting control method, system, equipment and storage medium of server | |
JP2013097529A (en) | Information processing apparatus, startup mode switching method of information processing apparatus, program and recording medium | |
US20120233451A1 (en) | Method for fast resuming computer system and computer system | |
TWI460658B (en) | In the BIOS stage to perform a quick boot and general boot method | |
JP2001195242A5 (en) | Data processing system and initialization method | |
CN102681921B (en) | Computer fast boot system and method thereof | |
CN109922014B (en) | Method and system for judging cold and hot start of switch | |
CN116028129B (en) | UEFI (unified extensible firmware interface) quick starting method based on Feiteng platform and Feiteng platform | |
CN101630277A (en) | Overclocking module, computer system and overclocking method thereof | |
CN117971330A (en) | Control method, device, medium and equipment of embedded system | |
TW201216159A (en) | Method for automatically setting up system | |
EP1562112A1 (en) | Booting method capable of executing a warm boot or a cold boot when a CPU crash occurs and computer system therefor | |
JP4359646B1 (en) | Information processing device, external storage device, and control method | |
JP2003044284A (en) | Starting method of computer device and starting program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CX01 | Expiry of patent term |
Granted publication date: 20070829 |
|
CX01 | Expiry of patent term |