[go: up one dir, main page]

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 PDF

Info

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
Application number
CNB031390935A
Other languages
Chinese (zh)
Other versions
CN1604048A (en
Inventor
陈振德
郭英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HTC Corp
Original Assignee
HTC Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by HTC Corp filed Critical HTC Corp
Priority to CNB031390935A priority Critical patent/CN100334556C/en
Publication of CN1604048A publication Critical patent/CN1604048A/en
Application granted granted Critical
Publication of CN100334556C publication Critical patent/CN100334556C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A starting-up method for warm or cold starting-up when CPU is shut down is used in computer system with CPU and memory. First, when the CPU is in a down state, it is detected whether a hardware reset function or a software reset function is to be executed by a user. Then, the CPU is restarted by executing a hardware reset operation. Then, when the user selects to execute the hardware reset function, the data and the set value of the memory are cleared, so that the computer system is returned to the preset state. Then, when the user selects to execute the software resetting function, the hardware resetting action is regarded as an action for replacing a software resetting action, and the computer system stores the data and the set value of the memory, so that the computer system is restored to the set state before the computer system is in the current state.

Description

在中央处理器当机时进行的开机方法及其计算机系统Start-up method and computer system thereof when central processing unit is down

技术领域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 traditional computer system 100 includes: a CPU 102 , an SDRAM 104 , a software reset generating circuit 106 and a hardware reset generating circuit 108 . The SDRAM 104 is used for storing data and setting values of the computer system 100 and is controlled by the CPU 102 . The software reset generating circuit 106 is used for sending a software reset signal SR to the CPU 102 to start the CPU 102 to perform a software reset when the user chooses to perform the software reset function. The hardware reset generating circuit 108 is used to send a hardware reset signal HR to the CPU 102 to start the CPU 102 to perform a hardware reset when the user chooses to perform the hardware reset function.

请参照图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 conventional computer system 100 . Firstly, step 202 is executed to determine whether the CPU 100 is in a shutdown state, if yes, execute step 204 ; if not, execute step 206 . In step 204, since the CPU 102 has been shut down, the CPU 102 cannot execute the software reset action, so the user can only select the hardware reset function. After step 204 , enter step 208 , the computer system 100 performs a cold boot, and all data and setting values stored in the SDRAM 104 will disappear.

当CPU102未当机时,使用者可以选择硬件重置功能或是软件重置功能。故在步骤206中,计算机系统100判断使用者选择硬件重置功能或是软件重置功能。若使用者选择软件重置功能,则接着执行步骤210,计算机系统100进行暖开机,而SDRAM104所存储的所有数据与设定值将全部保留;若使用者选择软件重置功能,则执行步骤208。When the CPU 102 is not down, the user can select a hardware reset function or a software reset function. Therefore, in step 206 , the computer system 100 determines whether the user selects the hardware reset function or the software reset function. If the user selects the software reset function, then step 210 is performed, and the computer system 100 is warmed up, and all data and setting values stored in the SDRAM 104 will be fully reserved; if the user selects the software reset function, then step 208 is performed. .

在传统的计算机系统100中,当CPU102当机时,计算机系统100无法执行软件重置动作,而只能执行硬件重置动作以完成冷开机。但是,当计算机系统100完成冷开机之后,使用者在计算机系统当机前存储于SDRAM104的数据及计算机系统100的设定值都将完全消失。对于使用者而言,使用者必须重新对计算机系统100进行设定,相当浪费时间,而且,重要的数据极可能因此遗失,而造成使用者的严重损害。In the conventional computer system 100, when the CPU 102 is down, the computer system 100 cannot perform a software reset operation, but can only perform a hardware reset operation to complete a cold boot. However, when the computer system 100 is cold booted, the data stored in the SDRAM 104 and the settings of the computer system 100 before the computer system shuts down will completely disappear. For the user, the user has to reset the computer system 100, which is a waste of time, and important data may be lost, causing serious damage to the user.

发明内容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: computer system 102, 302: CPU

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 step 418. In step 404, it is determined whether a user wants to perform a hardware reset function or a software reset function. When the user wants to execute the software reset function, go to step 406; when the user wants to execute the hardware reset function, go to step 408.

步骤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 step 410 .

在步骤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 step 410 .

在步骤410中,当CPU302重新启动后,CPU302接收从判断组合电路310发出的判断信号DT。若CPU302根据判断信号DT得知第二硬件重置信号HR2为替代软件重置信号的指示信号时,则进入步骤412;若CPU302根据判断信号DT判断出第二硬件重置信号HR2代表应进行硬件重置动作的指示信号时,进入步骤416。在步骤410中,CPU302还发出初始化信号Int,以初始化判断组合电路310。In step 410 , after the CPU 302 restarts, the CPU 302 receives the judgment signal DT sent from the judgment combination circuit 310 . If the CPU 302 learns that the second hardware reset signal HR2 is an indication signal to replace the software reset signal according to the judgment signal DT, then enter step 412; if the CPU 302 judges according to the judgment signal DT that the second hardware reset signal HR2 represents that the hardware When the indication signal of the action is reset, go to step 416 . In step 410 , the CPU 302 also sends out an initialization signal Int to initialize the judgment combination circuit 310 .

在步骤412中,判断SDRAM304上的数据是否正确,若是,则进入步骤414,保存SDRAM304的数据与设定值,使计算机系统300恢复至当机前的设定状态以完成暖开机;若否,则进入步骤416,清除SDRAM304的数据与设定值,使计算机系统300回复到预设状态以完成冷开机。In step 412, judge whether the data on the SDRAM304 is correct, if so, then enter step 414, save the data and the setting value of SDRAM304, make computer system 300 return to the setting state before the current machine to complete the warm boot; if not, Then enter step 416, clear the data and setting values of the SDRAM 304, and make the computer system 300 return to the default state to complete the cold boot.

此外,在步骤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 step 420, CPU302 receives the software reset signal SR, executes the software reset action, CPU302 and sends the initialization signal Int, to initialize the judging combination circuit 310, then enters step 422, CPU302 restart, and the data and setting values in SDRAM 304 will be retained. When the user wants to execute the hardware reset function, step 424 is executed, the hardware reset combination circuit 312 receives the first hardware reset signal HR1, and sends out the second hardware reset signal HR2 to make the CPU 302 perform a hardware reset operation. At this point, the CPU302 will be restarted, and the data and setting values in the SDRAM304 will be cleared.

本发明的计算机系统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)

1. starting-up method that can warm up start or cold boot during when machine at central processing unit (CPU), be to use in a computer system, this computer system has a CPU and a storer, this CPU is in order to control this storer, this storer is in order to data of storing this computer system and setting value, and this starting-up method comprises:
(a) when CPU is in when the machine state, what this computer system detected the desire execution of user institute is hardware function of reset or software-reset function;
(b) reset action so that CPU is restarted by carrying out a hardware;
(c) when this user selects to carry out the hardware function of reset, remove the data and the setting value of this storer, make this computer system be returned to preset state; And
(d) when this user selects the executive software function of reset, the action of resetting of this hardware is regarded as substituting the action of software-reset action, and this computer system is preserved the data and the setting value of this storer, makes this computer system return to set condition before machine.
2. starting-up method as claimed in claim 1, wherein, this step (d) also comprises the action that the data judged on this storer are whether correct, if, then this computer system is preserved the data and the setting value of this storer, makes this computer system return to set condition before machine; If not, then remove the data and the setting value of this storer, make this computer system be returned to preset state.
3. starting-up method as claimed in claim 1, wherein, this computer system is a personal digital assistant, and this storer is a synchronous dynamic storage (SDRAM), and the operating system of this personal digital assistant is the WinCE system.
4. computer system that can warm up start or cold boot at central processing unit during when machine comprises:
One CPU;
One storer in order to the data and the setting value of storing this computer system, and is controlled by this CPU;
One judges combinational circuit, is in order to judge whether this CPU works as machine;
One hardware replacement combinational circuit is to electrically connect with this CPU, and is controlled by this judgement combinational circuit;
One software-reset produces circuit, in order to when the user selects to carry out the software-reset function, transmits a software-reset signal to this CPU and this judgement combinational circuit; And
One hardware is reset and is produced circuit, in order to when the user selects to carry out the hardware function of reset, transmits one first hardware reset signal to this judgement combinational circuit and this hardware replacement combinational circuit;
Wherein, when judging that combinational circuit receives this software-reset signal, and judge this CPU for when the machine state, this judgement combinational circuit is controlled this hardware replacement combinational circuit, make this hardware replacement combinational circuit send one second hardware reset signal to this CPU, so that CPU is restarted, afterwards, this judgement combinational circuit is to transmit one to judge that signal is to CPU, to inform that this second hardware reset signal of this CPU is for substituting the indicator signal of this software-reset signal, then, this computer system is preserved the data and the setting value of this storer, makes this computer system return to set condition before machine;
Wherein, when this hardware replacement combinational circuit received this hardware reset signal, this hardware replacement combinational circuit transmitted one second hardware reset signal to this CPU, so that CPU is restarted, this CPU also removes the data and the setting value of this storer, makes this computer system be returned to preset state.
5. computer system as claimed in claim 4, wherein, preserve in this computer system before the data and setting value of this storer, whether correct this computer system carry out the action of the data judged on this storer earlier, if, then this computer system is preserved the data and the setting value of this storer, makes this computer system return to set condition before machine; If not, then remove the data and the setting value of this storer, make this computer system be returned to preset state.
6. starting-up method as claimed in claim 4, wherein, this computer system is a personal digital assistant, and this storer is a SDRAM, and the operating system of this personal digital assistant is the WinCE system.
7. starting-up method that can warm up start or cold boot during when machine at central processing unit, be to use in a computer system, this computer system has a CPU, one storer, one judges combinational circuit, one hardware replacement combinational circuit, one software-reset produces circuit and hardware replacement produces circuit, this storer is in order to data of storing this computer system and setting value, and controlled by this CPU, this judges that combinational circuit is in order to judge whether this CPU works as machine, this hardware replacement combinational circuit is that this CPU electrically connects, and controlled by this judgement combinational circuit, it is in order to when the user selects to carry out the software-reset function that this software-reset produces circuit, transmit a software-reset signal to this CPU and this judgement combinational circuit, and this hardware replacement generation circuit is in order to when the user selects to carry out the hardware function of reset, transmit one first hardware reset signal to this judgement combinational circuit and this hardware replacement combinational circuit, this starting-up method comprises:
(a) judge whether this CPU is in when the machine state, if then enter step (b);
What (b) judgement one user institute desire was carried out is hardware function of reset or software-reset function, when this user desires the executive software function of reset, enters step (c), when this user's desire is carried out hardware function of reset, enters step (d);
(c) receive this software-reset signal when this judgement combinational circuit, and this judgement combinational circuit learns that this CPU is for after the machine state, this judgement combinational circuit is controlled this hardware replacement combinational circuit, make this hardware replacement combinational circuit send this second hardware reset signal to this CPU, so that this CPU is restarted, and enter step (e);
(d) after this hardware replacement combinational circuit receives this first hardware reset signal, this hardware replacement combinational circuit sends this second hardware reset signal to this CPU, so that this CPU is restarted, and enters step (e);
(e) after this CPU restarts, this CPU receives a judgement signal that sends from this judgement combinational circuit, if this CPU learns that according to this judgement signal this second hardware reset signal is when substituting the indicator signal of this software-reset signal, then enter step (f), if when this CPU judges the indicator signal of this second hardware reset signal representative should carrying out hardware replacement action according to this judgement signal, enter step (g);
(f) judge whether the data on this storer are correct, if, the data and the setting value of then preserving this storer, the set condition that this computer system is returned to before machine warms up start to finish, and if not, then enters step (g); And
(g) remove the data and the setting value of this storer, make this computer system be returned to preset state finishing cold boot, and method ends.
8. starting-up method as claimed in claim 7, wherein, this computer system is a personal digital assistant, and this storer is a SDRAM, and the operating system of this personal digital assistant is the WinCE system.
9. starting-up method as claimed in claim 7, wherein, this step (a) also comprises, be in when the machine state if this CPU is non-, what then judge this user institute desire execution is hardware function of reset or software-reset function, and when this user desired the executive software function of reset, this CPU received this software-reset signal, executive software is reset and is moved, and initialization should be judged combinational circuit; When this user's desire was carried out the hardware function of reset, this hardware replacement combinational circuit received this first hardware reset signal, and sent this second hardware reset signal so that this CPU carries out hardware replacement action.
10. starting-up method as claimed in claim 7, wherein, this step (e) comprises that also this CPU initialization should be judged combinational circuit.
CNB031390935A 2003-09-30 2003-09-30 Start-up method and computer system thereof when central processing unit is down Expired - Lifetime CN100334556C (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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