CN106326026A - Methods and device for restarting operating system in case of exceptions - Google Patents
Methods and device for restarting operating system in case of exceptions Download PDFInfo
- Publication number
- CN106326026A CN106326026A CN201610891451.8A CN201610891451A CN106326026A CN 106326026 A CN106326026 A CN 106326026A CN 201610891451 A CN201610891451 A CN 201610891451A CN 106326026 A CN106326026 A CN 106326026A
- Authority
- CN
- China
- Prior art keywords
- operating system
- detected
- numerical value
- value
- flag register
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0745—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in an input/output transactions management context
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Retry When Errors Occur (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for restarting an operating system in case of exceptions. The method comprises steps as follows: whether a value of a marker register of a basic input/output system is a first detection value is detected at regular time in a period T1; when the detected value is the first detection value, the value of the marker register is reset as a second detection value; when the detected value is not the first detection value, exceptions of working of the operating system are informed to a complete machine control unit by a universal asynchronous transceiving transmitter interface, so that the complete machine control unit controls the operating system to restart. Besides, the invention further discloses another method for restarting the operating system in case of the exceptions and discloses a device for restarting the operating system in case of the exceptions. With the adoption of the embodiments of the invention, whether the operating system crashes can be detected in real time, the operating system is controlled to restart when the operating system crashes, and the phenomenon that the complete machine powers off and restarts is avoided.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to the method and device of a kind of operating system abnormal restarting.
Background technology
Comprise the main frame running Android operation system and run PC (such as: Windows, linux or Unix) operation
In the dual-system device of the main frame of system, such as intelligent interaction flat board, PC main frame and the discrete work of Android main frame, but can be total to
With some ancillary equipment, such as touch apparatus, MCU control unit etc., when the system crash of PC main frame, touch apparatus, MCU
The PC main frame with system crash of all having no idea such as control unit carries out normal communication, then MCU control unit still believes that PC is
At open state, it is impossible to judge that PC main frame is the system failure.Owing to the PC main frame of intelligent interaction flat board is to pass through MCU control unit
Send starting-up signal and control start, there is no peripheral button, then now can only remove to close complete machine by hard power-off, the most again
Opening, period causes complete machine interruption of work,
Summary of the invention
Whether the method and device of the operating system abnormal restarting that the embodiment of the present invention proposes, can detect operating system in real time
Collapse, and control operating system is restarted when operating system is collapsed, it is to avoid complete machine power-off restarting.
In first aspect, the embodiment of the present invention provides a kind of method of operating system abnormal restarting, including:
Whether it is the first detected value with the numerical value of the flag register of cycle T 1 timing detection basic input output system;Its
In, described first detected value is to be passed through advanced configuration and power-management interface to described mark by operating system with cycle T 2 timing
The numerical value of depositor write;T1≥T2;
When the numerical value detected is described first detected value, the numerical value of described flag register is reset to the second detection
Value;
When the numerical value detected is not for described first detected value, by universal asynchronous receiving-transmitting transmitter interface notification complete machine
Operating system operation irregularity described in control unit, so that described complete machine control unit controls described operating system and restarts.
Preferably, T1 is 30 seconds.
Further, described complete machine control unit controls at least one operating system.
In second aspect, the embodiment of the present invention also provides for a kind of method of operating system abnormal restarting, including:
Whether it is the first detected value with the numerical value of the flag register of cycle T 1 timing detection basic input output system;Its
In, described first detected value is to be passed through advanced configuration and power-management interface to described mark by operating system with cycle T 2 timing
The numerical value of depositor write;
When the numerical value detected is described first detected value, the numerical value of described flag register is reset to the second detection
Value;
When the numerical value detected is not for described first detected value, suspends and detect described flag register with cycle T 1 timing
Numerical value, and when being spaced the numerical value described flag register again being detected after duration T3 not for described first detected value, logical
Cross operating system operation irregularity described in universal asynchronous receiving-transmitting transmitter interface notification complete machine control unit, so that described complete machine controls
Unit controls described operating system to be restarted;Wherein T3 >=T1 >=T2.
Further, described method also includes:
When the numerical value detected is not for described first detected value, suspends and detect described flag register with cycle T 1 timing
Numerical value, and when being spaced the numerical value described flag register being detected after duration T3 and being described first detected value, continue with week
Phase T1 timing detects described mark and posts the numerical value of device, and the numerical value of described flag register resets to described second detected value.
Preferably, T1 is 30 seconds;T3 is 60 seconds.
Further, described complete machine control unit controls at least one operating system.
In the third aspect, the method provided based on first aspect, it is abnormal that the embodiment of the present invention also provides for a kind of operating system
The device restarted, is built in basic input output system, including:
Whether detected register module, be the first detected value for the numerical value with cycle T 1 timing detection flag register;
Wherein, described first detected value is to be passed through advanced configuration and power-management interface to described mark by operating system with cycle T 2 timing
The numerical value of will depositor write;T1≥T2;
Depositor resets module, for when the numerical value detected is described first detected value, by described flag register
Numerical value reset to the second detected value;
Operation irregularity notification module, for when the numerical value detected not is described first detected value, by universal asynchronous
Operating system operation irregularity described in receiving-transmitting transmitter interface notification complete machine control unit, so that described complete machine control unit controls institute
State operating system to restart.
In fourth aspect, the method provided based on second aspect, it is abnormal that the embodiment of the present invention also provides for a kind of operating system
The device restarted, is built in basic input output system, including:
Whether detected register module, be the first detected value for the numerical value with cycle T 1 timing detection flag register;
Wherein, described first detected value is to be passed through advanced configuration and power-management interface to described mark by operating system with cycle T 2 timing
The numerical value of will depositor write;
Depositor resets module, is used for when the numerical value detected is described first detected value, described basic input and output
The numerical value of described flag register is reset to the second detected value by system;
Operation irregularity notification module, is used for when the numerical value detected is not for described first detected value, described basic input
Output system halt detects the numerical value of described flag register with cycle T 1 timing, and institute again detected after the duration T3 of interval
When stating the numerical value of flag register not for described first detected value, described basic input output system is passed by universal asynchronous receiving-transmitting
Operating system operation irregularity described in defeated device interface notification complete machine control unit, so that described complete machine control unit controls described operation
System restarts;Wherein T3 >=T1 >=T2.
Further, described device also includes:
Continue detection module, for when the numerical value detected is not for described first detected value, suspending with cycle T 1 timing
Detect the numerical value of described flag register, and after the duration T3 of interval, detect that the numerical value of described flag register is described first
During detected value, continue to post with cycle T 1 timing detection mark the numerical value of device, and the numerical value of described flag register is reset to institute
State the second detected value.
Implement the embodiment of the present invention, have the advantages that
The method and device of the operating system abnormal restarting that the embodiment of the present invention provides, by the mark to internal memory or hard disk
Depositor writes the first detected value, and the numerical value then reading this flag register is the most consistent with the first detected value of write, comes
Whether there are data to transmit between detection operating system and internal memory or hard disk, and then judge that operating system is the most working properly, if
The numerical value read is inconsistent with the first detected value of write, illustrates that operating system cannot write to flag register, i.e. operates
System operation irregularity, and owing to detection process is to be performed by the input-output system corresponding to operating system, it is in operation system
Still can work during system operation irregularity, thus when judging operating system operation irregularity, this input-output system is by universal asynchronous
Transmitter notice complete machine control unit operating system operation irregularity, complete machine control unit i.e. would know that operating system operation irregularity,
And then control operation restart, this process still can normally work without power-off restarting, other operating systems of complete machine control unit.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of an embodiment of the method for the operating system abnormal restarting that the present invention provides;
Fig. 2 is the schematic flow sheet of another embodiment of the method for the operating system abnormal restarting that the present invention provides;
Fig. 3 is the schematic flow sheet of another embodiment of the method for the operating system abnormal restarting that the present invention provides;
Fig. 4 is the schematic flow sheet of the further embodiment of the method for the operating system abnormal restarting that the present invention provides;
Fig. 5 is the structural representation of an embodiment of the device of the operating system abnormal restarting that the present invention provides;
Fig. 6 is the structural representation of another embodiment of the device of the operating system abnormal restarting that the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
See Fig. 1, be the schematic flow sheet of an embodiment of the method for the operating system abnormal restarting that the present invention provides;
In first aspect, the method for a kind of operating system abnormal restarting that the embodiment of the present invention provides, by input-output system (BIOS,
Basic Input/Output System) perform, including step S11 to S13, particularly as follows:
Whether S11, be the first detection with the numerical value of the flag register of cycle T 1 timing detection basic input output system
Value;Wherein, described first detected value is to be passed through advanced configuration and power-management interface to institute by operating system with cycle T 2 timing
State the numerical value of flag register write;T1>T2;
S12, when the numerical value detected is described first detected value, resets to second by the numerical value of described flag register
Detected value;
S13, when the numerical value detected is not for described first detected value, by universal asynchronous receiving-transmitting transmitter interface notification
Operating system operation irregularity described in complete machine control unit, so that described complete machine control unit controls described operating system and again opens
Dynamic.
It should be noted that ACPI (Advanced Configuration and Power
Interface, ACPI) agreement be as between BIOS and operating system communication bridge, the embodiment of the present invention includes two parts
Software module, the first software module is built in operating system, operates work when os starting works, now, operation
System writes first detected value by ACPI interface to the follow-up flag register to be reset of BIOS with cycle T 2 timing.Second is soft
Part module is built in BIOS, BIOS and carries out detecting judgement to this flag register every cycle T 1;If the numerical value detected is
One detected value, then internal memory or hard disk can be normally written by explanation operating system, working properly, then by the value of this flag register
Reset to the second detected value, facilitate operating system again to write the first detected value;If the numerical value detected is not the second detected value,
And being the second detected value, then explanation operating system cannot be normally written internal memory or hard disk, and operation irregularity is, and then notify that complete machine controls
Unit, makes complete machine control unit control operation and restarts, it is not necessary to artificial power-off restarting.It addition, above-mentioned flag register
(flag) can be operation result flag bit (symbol, carry flag, parity flag, auxiliary carry flag, zero flag or symbol
Number mark), state control flag bit (tracking mark, interrupt allow mark or Directional Sign), 32 bit flag depositors increase
Any one in flag bit (I/0 privilege mark, nested task flag, restart mark or virtual 8086 mode mark VM), can
Select as required.
Preferably, T1 is 30 seconds.BIOS detects every the 30 seconds numerical value to flag register, and operating system can be at this
At least perform once to be write to this flag register by ACPI the operation of the first detected value in 30 seconds, thus T1 >=T2 is set.
Further, described complete machine control unit controls at least one operating system.The operating system of the embodiment of the present invention
Generally Windows, linux or Unix operating system, operates in PC main frame, meanwhile, comprises multiple operation for some
In the whole set equipment of system, this whole set equipment also include run Android operation system main frame, multiple operating systems jointly by
Complete machine control unit MCU controls to work in an orderly manner.
See Fig. 2, be the flow process signal of another embodiment of the method for the operating system abnormal restarting that the present invention provides
Figure;
Below will be with the first detected value for 1, the second detected value is 2, and the flow chart combining Fig. 2 describes the embodiment of the present invention
Operation principle:
When operating system normally works, operating system energy properly functioning first software module, i.e. operating system were every 30 seconds
The flag register flag of replacement is put 1 by ACPI interface to BIOS is follow-up;
Every 30 seconds, above-mentioned flag register flag detected BIOS, it is judged that the value of flag register flag be 1 or
0;
If the value of flag register flag is 1, flag register flag is reset to 0 by BIOS;
If the value of flag register flag is 0, BIOS notifies complete machine control unit MCU operating system by UART interface
Collapse;Then, complete machine control unit MCU control operating system restarts.
The method of the operating system abnormal restarting that the embodiment of the present invention provides, by the flag register to internal memory or hard disk
Writing the first detected value, the numerical value then reading this flag register is the most consistent with the first detected value of write, detects behaviour
Make between system and internal memory or hard disk, whether have data to transmit, and then judge that operating system is the most working properly, if reading
Numerical value inconsistent with the first detected value of write, illustrate that operating system cannot write to flag register, i.e. operating system work
Make abnormal, and owing to detection process is to be performed by the input-output system corresponding to operating system, it works in operating system
Still can work time abnormal, thus when judging operating system operation irregularity, this input-output system passes through universal asynchronous transmitter
Notice complete machine control unit operating system operation irregularity, complete machine control unit i.e. would know that operating system operation irregularity, and then control
Operation processed is restarted, and this process still can normally work without power-off restarting, other operating systems of complete machine control unit.
See Fig. 3, be the flow process signal of another embodiment of the method for the operating system abnormal restarting that the present invention provides
Figure;In second aspect, the method for the operating system abnormal restarting that the embodiment of the present invention provides, by input-output system (BIOS,
Basic Input/Output System) perform, including step S21 to S23, particularly as follows:
Whether S21, be the first detection with the numerical value of the flag register of cycle T 1 timing detection basic input output system
Value;Wherein, described first detected value is to be passed through advanced configuration and power-management interface to institute by operating system with cycle T 2 timing
State the numerical value of flag register write;
S22, when the numerical value detected is described first detected value, resets to second by the numerical value of described flag register
Detected value;
S23, when the numerical value detected is not for described first detected value, time-out detects described mark with cycle T 1 timing and posts
The numerical value of storage, and after the duration T3 of interval, again detect that the numerical value of described flag register is not for described first detected value
Time, by operating system operation irregularity described in universal asynchronous receiving-transmitting transmitter interface notification complete machine control unit, so that described whole
Machine control unit controls described operating system and restarts;Wherein T3 >=T1 >=T2.
It should be noted that, the embodiment of the present invention is relative to above-described embodiment, as the flag register flag that BIOS detects
Numerical value when being not the first detected value, be not the most just to differentiate operating system operation irregularity.Mark owing to detecting is deposited
The numerical value of device flag is not that the reason of the first detected value is possible as the first software module in operating system to this mark
After depositor flag writes the first detected value, and then another operation module of operating system is by this flag register flag value more
Change, and be not because operating system operation irregularity causes this flag register flag being write the first detected value, because of
And after needing to be spaced certain duration, again detect the numerical value of this flag register flag, and this flag register detected
Flag is not described first detected value, owing to this duration should be more than or equal to cycle T 1, and T1 >=T2, then illustrate now to operate
System at least performs once to write flag register flag the operation of the first detected value, thus again detects that this mark is deposited
Device flag is not the first detected value, then explanation operating system operation irregularity, improves detection operating system work the most normal accurate
Exactness.
Further, described method also includes:
S24, when the numerical value detected is not for described first detected value, time-out detects described mark with cycle T 1 timing and posts
The numerical value of storage, and when being spaced the numerical value described flag register being detected after duration T3 and being described first detected value, continue
Detect described mark with cycle T 1 timing and post the numerical value of device, and the numerical value of described flag register is reset to described second detection
Value.
It should be noted that when the certain duration in interval detects the numerical value of this flag register flag again, and detect
This numerical value is the first detected value, and the value that the numerical value i.e. read writes with operating system is consistent, and operating system is working properly, can be normal
Write, thus it is further continued for carrying out the timing detection of step S21.
Preferably, T1 is 30 seconds;T3 is 60 seconds.It should be noted that preferably T3 is two multiple value of T1, can be further
Improve the detection the most normal accuracy of operating system work.
Further, described complete machine control unit controls at least one operating system.
See Fig. 4, be the flow process signal of the further embodiment of the method for the operating system abnormal restarting that the present invention provides
Figure;
Below will be with the first detected value for 1, the second detected value is 0, and the flow chart combining Fig. 4 describes the embodiment of the present invention
Operation principle:
When operating system normally works, operating system energy properly functioning first software module, i.e. operating system were every 30 seconds
The flag register flag of replacement is put 1 by ACPI interface to BIOS is follow-up;
Above-mentioned flag register flag was detected by BIOS every 30 seconds, it is judged that the numerical value of flag register flag is 1
Or 0;
If the numerical value of flag register flag is 1, flag register flag is reset to 0 by BIOS;
If the numerical value of flag register flag is 0, BIOS suspends current entering flag register flag every 30 seconds
The operation of row detection, and again this flag register flag is detected after being spaced 60 seconds;If this flag register being detected
When the numerical value of flag is 0, collapsed by UART interface notice complete machine control unit MCU operating system;Then, complete machine control unit
MCU controls operating system to be restarted;If detecting when the numerical value of this flag register flag is 1, BIOS return continue every
This flag register flag detected in 30 seconds and the numerical value of described flag register is reset to 0.
The method of the operating system abnormal restarting that the embodiment of the present invention provides, by the flag register to internal memory or hard disk
Writing the first detected value, the numerical value then reading this flag register is the most consistent with the first detected value of write, detects behaviour
Make between system and internal memory or hard disk, whether have data to transmit, and then judge that operating system is the most working properly, if reading
Numerical value inconsistent with the first detected value of write, illustrate that operating system cannot write to flag register, i.e. operating system work
Make abnormal, and owing to detection process is to be performed by the input-output system corresponding to operating system, it works in operating system
Still can work time abnormal, thus when judging operating system operation irregularity, this input-output system passes through universal asynchronous transmitter
Notice complete machine control unit operating system operation irregularity, complete machine control unit i.e. would know that operating system operation irregularity, and then control
Operation processed is restarted, and this process still can normally work without power-off restarting, other operating systems of complete machine control unit.It addition, work as
When the numerical value detected and the first detected value are inconsistent, it is provided that perform corresponding operation after again detecting again, it is possible to increase
The most normal accuracy of detection operating system work.
See Fig. 5, be the structural representation of an embodiment of the device of the operating system abnormal restarting that the present invention provides;
In the third aspect, the method provided based on above-mentioned first aspect, the embodiment of the present invention also provides for a kind of operating system
The device of abnormal restarting, is built in basic input output system, including:
Whether detected register module 11, be the first detection for the numerical value with cycle T 1 timing detection flag register
Value;Wherein, described first detected value is to be passed through advanced configuration and power-management interface to institute by operating system with cycle T 2 timing
State the numerical value of flag register write;T1>T2;
Depositor resets module 12, for when the numerical value detected is described first detected value, is deposited by described mark
The numerical value of device resets to the second detected value;
Operation irregularity notification module 13, for when the numerical value detected not is described first detected value, by general different
Operating system operation irregularity described in step receiving-transmitting transmitter interface notification complete machine control unit, so that described complete machine control unit controls
Described operating system restarts.
Preferably, T1 is 30 seconds.
Further, described complete machine control unit controls at least one operating system.
See Fig. 6, be the structural representation of another embodiment of the device of the operating system abnormal restarting that the present invention provides
Figure;
In fourth aspect, the method provided based on above-mentioned second aspect, the embodiment of the present invention also provides for a kind of operating system
The device of abnormal restarting, is built in basic input output system, including:
Whether detected register module 21, be the first detection for the numerical value with cycle T 1 timing detection flag register
Value;Wherein, described first detected value is to be passed through advanced configuration and power-management interface to institute by operating system with cycle T 2 timing
State the numerical value of flag register write;
Depositor resets module 22, and for when the numerical value detected is described first detected value, described basic input is defeated
Go out system and the numerical value of described flag register is reset to the second detected value;
Operation irregularity notification module 23, for when the numerical value detected not is described first detected value, described the most defeated
Enter to export system halt and detect the numerical value of described flag register with cycle T 1 timing, and again detect after the duration T3 of interval
When the numerical value of described flag register is not described first detected value, described basic input output system passes through universal asynchronous receiving-transmitting
Operating system operation irregularity described in transmitter interfaces notice complete machine control unit, so that described complete machine control unit controls described behaviour
Restart as system;Wherein T3 >=T1 >=T2.
Further, described device also includes:
Continuing detection module 24, for when the numerical value detected is not for described first detected value, it is fixed to suspend with cycle T 1
Time detect the numerical value of described flag register, and after the duration T3 of interval, detect that the numerical value of described flag register is described the
During one detected value, continue to post with cycle T 1 timing detection mark the numerical value of device, and the numerical value of described flag register is reset to
Described second detected value.
Preferably, T1 is 30 seconds;T3 is 60 seconds.
Further, described complete machine control unit controls at least one operating system.
The device of the operating system abnormal restarting that the embodiment of the present invention provides, by the flag register to internal memory or hard disk
Writing the first detected value, the numerical value then reading this flag register is the most consistent with the first detected value of write, detects behaviour
Make between system and internal memory or hard disk, whether have data to transmit, and then judge that operating system is the most working properly, if reading
Numerical value inconsistent with the first detected value of write, illustrate that operating system cannot write to flag register, i.e. operating system work
Make abnormal, and owing to detection process is to be performed by the input-output system corresponding to operating system, it works in operating system
Still can work time abnormal, thus when judging operating system operation irregularity, this input-output system passes through universal asynchronous transmitter
Notice complete machine control unit operating system operation irregularity, complete machine control unit i.e. would know that operating system operation irregularity, and then control
Operation processed is restarted, and this process still can normally work without power-off restarting, other operating systems of complete machine control unit.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible
Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium
In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. the method for an operating system abnormal restarting, it is characterised in that including:
Whether it is the first detected value with the numerical value of the flag register of cycle T 1 timing detection basic input output system;Wherein,
Described first detected value is to be posted to described mark by advanced configuration and power-management interface with cycle T 2 timing by operating system
The numerical value of storage write;T1≥T2;
When the numerical value detected is described first detected value, the numerical value of described flag register is reset to the second detected value;
When the numerical value detected is not for described first detected value, controlled by universal asynchronous receiving-transmitting transmitter interface notification complete machine
Operating system operation irregularity described in unit, so that described complete machine control unit controls described operating system and restarts.
2. the method for operating system abnormal restarting as claimed in claim 1, it is characterised in that T1 is 30 seconds.
3. the method for operating system abnormal restarting as claimed in claim 1 or 2, it is characterised in that described complete machine control unit
Control at least one operating system.
4. the method for an operating system abnormal restarting, it is characterised in that including:
Whether it is the first detected value with the numerical value of the flag register of cycle T 1 timing detection basic input output system;Wherein,
Described first detected value is to be posted to described mark by advanced configuration and power-management interface with cycle T 2 timing by operating system
The numerical value of storage write;
When the numerical value detected is described first detected value, the numerical value of described flag register is reset to the second detected value;
When the numerical value detected is not for described first detected value, suspend the number detecting described flag register with cycle T 1 timing
Value, and again detect when the numerical value of described flag register is not described first detected value after being spaced duration T3, by logical
With operating system operation irregularity described in asynchronous receiving-transmitting transmitter interface notification complete machine control unit, so that described complete machine control unit
Control described operating system to restart;Wherein T3 >=T1 >=T2.
5. the method for operating system abnormal restarting as claimed in claim 4, it is characterised in that described method also includes:
When the numerical value detected is not for described first detected value, suspend the number detecting described flag register with cycle T 1 timing
Value, and when being spaced the numerical value described flag register being detected after duration T3 and being described first detected value, continue with cycle T 1
Timing detects described mark and posts the numerical value of device, and the numerical value of described flag register resets to described second detected value.
6. the method for the operating system abnormal restarting as described in claim 4 or 5, it is characterised in that T1 is 30 seconds;T3 is 60
Second.
7. the method for the operating system abnormal restarting as described in claim 4 or 5, it is characterised in that described complete machine control unit
Control at least one operating system.
8. the device of an operating system abnormal restarting, it is characterised in that be built in basic input output system, including:
Whether detected register module, be the first detected value for the numerical value with cycle T 1 timing detection flag register;Wherein,
Described first detected value is to be posted to described mark by advanced configuration and power-management interface with cycle T 2 timing by operating system
The numerical value of storage write;T1≥T2;
Depositor resets module, for when the numerical value detected is described first detected value, by the number of described flag register
Value resets to the second detected value;
Operation irregularity notification module, for when the numerical value detected not is described first detected value, passing through universal asynchronous receiving-transmitting
Operating system operation irregularity described in transmitter interfaces notice complete machine control unit, so that described complete machine control unit controls described behaviour
Restart as system.
9. the device of an operating system abnormal restarting, it is characterised in that be built in basic input output system, including:
Whether detected register module, be the first detected value for the numerical value with cycle T 1 timing detection flag register;Wherein,
Described first detected value is to be posted to described mark by advanced configuration and power-management interface with cycle T 2 timing by operating system
The numerical value of storage write;
Depositor resets module, is used for when the numerical value detected is described first detected value, described basic input output system
The numerical value of described flag register is reset to the second detected value;
Operation irregularity notification module, is used for when the numerical value detected is not for described first detected value, described basic input and output
System halt detects the numerical value of described flag register with cycle T 1 timing, and described mark again detected after the duration T3 of interval
When the numerical value of will depositor is not described first detected value, described basic input output system passes through universal asynchronous receiving-transmitting transmitter
Operating system operation irregularity described in interface notification complete machine control unit, so that described complete machine control unit controls described operating system
Restart;Wherein T3 >=T1 >=T2.
10. the device of operating system abnormal restarting as claimed in claim 9, it is characterised in that described device also includes:
Continue detection module, for when the numerical value detected is not for described first detected value, suspending with cycle T 1 timing detection
The numerical value of described flag register, and after the duration T3 of interval, detect that the numerical value of described flag register is described first detection
During value, continue to post the numerical value of device with cycle T 1 timing detection mark, and the numerical value of described flag register is reset to described the
Two detected values.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610891451.8A CN106326026B (en) | 2016-10-12 | The method and device of operating system abnormal restarting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610891451.8A CN106326026B (en) | 2016-10-12 | The method and device of operating system abnormal restarting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106326026A true CN106326026A (en) | 2017-01-11 |
CN106326026B CN106326026B (en) | 2019-07-16 |
Family
ID=
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089937A (en) * | 2017-12-28 | 2018-05-29 | 努比亚技术有限公司 | Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation |
CN108614490A (en) * | 2018-06-11 | 2018-10-02 | 浙江国自机器人技术有限公司 | A kind of device that restarting industrial personal computer, system and method |
CN109375956A (en) * | 2018-11-01 | 2019-02-22 | 郑州云海信息技术有限公司 | A kind of method of reboot operation system, logical device and control equipment |
CN110413326A (en) * | 2019-07-10 | 2019-11-05 | 珠海荣邦智能科技有限公司 | Operating system control method and device |
CN117112292A (en) * | 2023-01-20 | 2023-11-24 | 荣耀终端有限公司 | Abnormal restarting processing method and device |
CN117112292B (en) * | 2023-01-20 | 2024-05-14 | 荣耀终端有限公司 | Abnormal restarting processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030079007A1 (en) * | 2001-10-22 | 2003-04-24 | Merkin Cynthia M. | Redundant source event log |
CN1530835A (en) * | 2003-03-10 | 2004-09-22 | 联想(北京)有限公司 | Method for detecting computer operating system normal start |
CN102270163A (en) * | 2010-11-02 | 2011-12-07 | 泗阳天琴软件科技有限公司 | Method for recovering computer operating system |
CN102446104A (en) * | 2010-09-30 | 2012-05-09 | 研祥智能科技股份有限公司 | Method for starting up computer system |
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030079007A1 (en) * | 2001-10-22 | 2003-04-24 | Merkin Cynthia M. | Redundant source event log |
CN1530835A (en) * | 2003-03-10 | 2004-09-22 | 联想(北京)有限公司 | Method for detecting computer operating system normal start |
CN102446104A (en) * | 2010-09-30 | 2012-05-09 | 研祥智能科技股份有限公司 | Method for starting up computer system |
CN102270163A (en) * | 2010-11-02 | 2011-12-07 | 泗阳天琴软件科技有限公司 | Method for recovering computer operating system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089937A (en) * | 2017-12-28 | 2018-05-29 | 努比亚技术有限公司 | Localization method, mobile terminal and storage medium are restarted based on direct Memory Allocation |
CN108614490A (en) * | 2018-06-11 | 2018-10-02 | 浙江国自机器人技术有限公司 | A kind of device that restarting industrial personal computer, system and method |
CN108614490B (en) * | 2018-06-11 | 2020-06-16 | 浙江国自机器人技术有限公司 | Device, system and method for restarting industrial personal computer |
CN109375956A (en) * | 2018-11-01 | 2019-02-22 | 郑州云海信息技术有限公司 | A kind of method of reboot operation system, logical device and control equipment |
CN109375956B (en) * | 2018-11-01 | 2021-10-15 | 郑州云海信息技术有限公司 | Method for restarting operating system, logic device and control device |
CN110413326A (en) * | 2019-07-10 | 2019-11-05 | 珠海荣邦智能科技有限公司 | Operating system control method and device |
CN117112292A (en) * | 2023-01-20 | 2023-11-24 | 荣耀终端有限公司 | Abnormal restarting processing method and device |
CN117112292B (en) * | 2023-01-20 | 2024-05-14 | 荣耀终端有限公司 | Abnormal restarting processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6530774B2 (en) | Hardware failure recovery system | |
US20240086269A1 (en) | Method, Apparatus and System for Locating Fault of Server, and Computer-readable Storage Medium | |
CN101976217B (en) | Anomaly detection method and system for network processing unit | |
US20090006745A1 (en) | Accessing snapshot data image of a data mirroring volume | |
CN107066362B (en) | Method for automatically processing fault memory bank | |
CN107463459A (en) | Store method, device, system and the terminal device of system exception internal storage data | |
CN103593269A (en) | Automatic cyclic test method of restart pressure of multiple PCIe devices | |
US20190004818A1 (en) | Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof | |
CN101937344A (en) | Computer and method for quickly starting same | |
CN103150188A (en) | Quick initialization method for x86 compatible display card of non-x86 instruction set computer | |
CN111338698A (en) | Method and system for accurately booting server by BIOS (basic input output System) | |
US7089433B2 (en) | Method and system for operating system quiescent state | |
US9250942B2 (en) | Hardware emulation using on-the-fly virtualization | |
CN109324765A (en) | A kind of Disk State detection method, device, equipment and storage medium | |
CN104750600A (en) | Equipment state recording method and equipment state recording system | |
CN106326026A (en) | Methods and device for restarting operating system in case of exceptions | |
CN101923503B (en) | Method for regulating internal parameters of internal storage and computer system using same | |
CN106326026B (en) | The method and device of operating system abnormal restarting | |
CN106155689A (en) | The method showing under a linux operating system based on non-x 86 platform | |
CN101281416A (en) | Method for ensuring system closedown completion | |
KR20190116029A (en) | System on chip and operating method thereof | |
TW201933091A (en) | A system and a method for testing a data storage device | |
CN103677875A (en) | Method for starting electronic equipment, method for controlling permission and electronic equipment | |
CN106933558B (en) | Power supply control method and device | |
JP2015130023A (en) | Information recording device, information processor, information recording method and information recording program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |