JPS59158454A - System resetting method - Google Patents

System resetting method

Info

Publication number
JPS59158454A
JPS59158454A JP58032419A JP3241983A JPS59158454A JP S59158454 A JPS59158454 A JP S59158454A JP 58032419 A JP58032419 A JP 58032419A JP 3241983 A JP3241983 A JP 3241983A JP S59158454 A JPS59158454 A JP S59158454A
Authority
JP
Japan
Prior art keywords
software
reset
reset signal
timer
routine
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.)
Pending
Application number
JP58032419A
Other languages
Japanese (ja)
Inventor
Tomoji Ito
伊藤 知二
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP58032419A priority Critical patent/JPS59158454A/en
Publication of JPS59158454A publication Critical patent/JPS59158454A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve the reliability of a system by detecting the runaway of the software, bringing all software into an initializing routine and resetting and initializing the system. CONSTITUTION:Plural watchdog timer (WTD) reset output sections 11-1, 11-2- 11-n are provided. A WTD reset signal R11 is outputted from the WDT 11-1 by timer interruption at each prescribed time based on the processing routine for timer interruption. A reset signal generated at each end of tasks (1)-N is outputted from the outer WDT 11-2-N. If runaway occurs in the software and there exists no timer interruption or task end, high level signals are outputted from timers 12-1, 12-N and the signals are given to the software and system as reset signals through an OR circuit 14. Thus, each software is brought into the initialize routine and the system is reset and initialized.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、あるソフトウェアが暴走し始めたとき、それ
を検出してシステムをリセットして初期化するシステム
リセット方法の改良に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an improvement in a system reset method for detecting when certain software starts to run out of control and resetting and initializing the system.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

従来、複数のプロセスの入力をそれぞれのソフトウェア
でデータ処理するシステムがある。
BACKGROUND ART Conventionally, there is a system in which input data from multiple processes is processed using respective software.

このシステムにおいである時間ごとに予め定められたデ
ータ処理等がなされない場合があり、この場合、通常ソ
フトウェアの暴走に起因する。
In this system, there are cases where predetermined data processing is not performed at certain intervals, and in this case, it is usually caused by runaway software.

このことは、1つのプロセスを複数のソフトウェアで分
担してデータ処理等を行なう場合にも上記と同様にソフ
トウェアの暴走が起りつる。
This means that even when one process is shared between multiple pieces of software to perform data processing, etc., software runaway can occur in the same way as described above.

従来、かかるシステムを制御するソフトウェアが正常で
あるときには一定時間ごとにウォッチ・fラグ・タイマ
ー(以下、WDTと略称する)をリセットさせ、何らか
の原因によってソフトウェアが暴走し始めたときにWD
Tからシステムリセット信号を出力させてシステムを初
期化するようKしている。
Conventionally, when the software that controls such a system is normal, a watch f-lag timer (hereinafter referred to as WDT) is reset at regular intervals, and when the software starts to run out of control for some reason, the WD is reset.
K outputs a system reset signal from T to initialize the system.

第1図および第2図はそのシステムリセット方法を説明
する図である。即ち、ソフトウェアが正常なとき、10
〜200 ms程度の時間々隔で発生させるタイマー割
込みによってWDTIJセット出力部1がリセット信号
Rを発してVDT(図示せず)をリセット”0″とする
。従って。
FIGS. 1 and 2 are diagrams for explaining the system reset method. That is, when the software is normal, 10
The WDTIJ set output unit 1 issues a reset signal R by a timer interrupt generated at intervals of about 200 ms to reset the VDT (not shown) to "0". Therefore.

WDTは第2図に示すように予め定められた検出レベル
LVに達することはない。
The WDT never reaches the predetermined detection level LV as shown in FIG.

ところで、あるソフトウェアのプログラムが別な個所に
飛び込んだり、飛び込み先のプログラムが誤まっていた
り、あるいは外来ノイズによってプログラムの内容が書
き替えられていたりすると、ソフトウェアが暴走し始め
、一定時間ごとにタイマー割込みが入らなくなる。この
結果、WDTは検出レベルVLに達し、同WDTからは
システムリセット信号SRが送出される。
By the way, if a certain software program jumps to a different location, the program to which it jumps is incorrect, or the contents of the program are rewritten due to external noise, the software will start to run out of control, and the timer will start at regular intervals. Interrupts no longer occur. As a result, the WDT reaches the detection level VL, and the system reset signal SR is sent out from the WDT.

システムリセット信号SRが送出されると、これを受け
てソフトウェアはイニシャライズ・ルーチンからプログ
ラムを実行し始め、かつシステム(例えばプロセッサ)
はリセットされて初期化されることになる。従って、上
述するシステムのリセット方法にあっては、ソフトウェ
アが暴走し始めるとシステムリセットは働くが、暴走の
仕方例えばあるプログラムが別のソフトウェアのプログ
ラムに飛び込んだり、あるいは実行中のプログラムが外
来ノイズによって書き替えられて別のソフトウェアのプ
ログラムに飛び込んだりすると、飛び込み先のプログラ
ムが破壊されてしまい、他のソフトウェアが動かなくな
る現象が生ずる。
When the system reset signal SR is sent, the software starts executing the program from the initialization routine in response, and the system (for example, processor)
will be reset and initialized. Therefore, in the system reset method described above, if the software starts to run out of control, the system reset will work. If the program is rewritten and jumps into another software program, the program to which the program jumps is destroyed, causing other software to stop working.

〔発明の目的〕[Purpose of the invention]

本発明は上記実情Kかんがみて表されたもので、システ
ムを制御する何れか1つのプログラムが暴走し始めたと
き、各ソフトウェアをシステムリセットしシステムの信
頼性を高めるシステムリセット方法を提供することにあ
る。
The present invention was developed in view of the above-mentioned circumstances, and aims to provide a system reset method that resets each software to increase the reliability of the system when any one of the programs that control the system starts to run out of control. be.

〔発明の概要〕[Summary of the invention]

1つの発明は、複数のソフトウェアに対応して複数のW
DTリセット出力部を設けるとともに、何れか1つのプ
ログラムに暴走が起き始めたとき、そのVDTリセット
出力部に対応するタイマーの計数値レベルが予め定めら
れた検出レベルに達してシステムリセット信号を出力し
、この信号を各ソフトウェアに入力してイニシャライズ
・ルーチンとし、かつシステムをリセットして初期化す
るシステムリセット方法である。
One invention can be applied to a plurality of Ws corresponding to a plurality of software.
A DT reset output section is provided, and when any one program starts to run out of control, the count value level of the timer corresponding to that VDT reset output section reaches a predetermined detection level and a system reset signal is output. This is a system reset method in which this signal is input to each software as an initialization routine, and the system is reset and initialized.

他の1つの発明は、ROMとRAMの同一番地に同一内
容を格納した後、これらの内容を比較照合して不一致の
ときソフトウェアが暴走したと判断して複数のソフトウ
ェアをイニシャライズ・ルーチンとし、かつシステムを
リセットして初期化するシステムリセット方法である。
Another invention is to store the same contents in the same location of ROM and RAM, then compare and match these contents, and if they do not match, it is determined that the software has gone out of control, and a plurality of software is used as an initialization routine, and This is a system reset method that resets and initializes the system.

〔発明の実施例〕[Embodiments of the invention]

次に、第1の発明の一実施例について第3図および第4
図を参照して説明する。このシステムリセット方法は、
複数のソフトウェアに対応して複数のWDTリセット出
力部11−1.11−2゜・・・、11−Nが設けられ
、これらのうちWDTリセット出力部1ノー1はタイマ
ー割込みのための処理ルーチンに基づいて一定時間ごと
のタイマー割込みによってWDTリセット信号allが
出力され、他のWDTリセット出力部11−2〜1ノー
Nは各タスク1〜Nの終了ごとに発せられる信号でWD
TIJセット信号R12〜RINが出力される。従って
、これらのWDTリセット出力部11−2〜11−Nか
らはそれぞれのタスクの時間だけ順次遅れてWDTIJ
セット信号RJ2〜RIMが出力されることになる。そ
して、これらのWDTリセット出力部11−1〜11−
Nは第4図に示すW D T IJ上セツト力制御部の
各対応するタイマー12−1〜12−Nに接続されてい
る。これらのタイマー12−1〜12−Nは発振回路1
3から出力されるクロックを計数するが、各WDTIJ
セット出力部ll−1〜11−NからWDTリセット信
号R11〜RINが入力されるとリセットされるように
なっている。ところで、タイマー割込みの処理ルーチン
に係るソフトウェア又はタスク1〜Nを実行する各ソフ
トウェアに暴走が起きてタイマー割込み又はタスク終了
の信号がないとき、タイマー12−1又は12−2〜1
2−Nのクロック計数値に対応するレベルは予め定めら
れた検出レベルVLJ〜VLNに達し、同タイマー12
−1又は12−2〜12−Nからはハイレベルの信号が
出力される。そして、タイマー12−1又は12−2〜
12−Nから出力されたハイレベルの信号はオア回路1
4を通って各ソフトウェアおよびシステムへシステムリ
セット信号として与えられる。これによって各ソフトウ
ェアはイニシャライズ・ルーチンとなり、システムはリ
セットされて初期化される。
Next, FIGS. 3 and 4 show an embodiment of the first invention.
This will be explained with reference to the figures. This system reset method is
A plurality of WDT reset output units 11-1, 11-2°, . The WDT reset signal all is output by a timer interrupt at regular intervals based on the WDT reset signal all, and the other WDT reset output units 11-2 to 1NON are signals issued every time each task 1 to N ends.
TIJ set signals R12 to RIN are output. Therefore, from these WDT reset output units 11-2 to 11-N, WDTIJ is sequentially delayed by the time of each task.
Set signals RJ2 to RIM will be output. These WDT reset output sections 11-1 to 11-
N is connected to each corresponding timer 12-1 to 12-N of the WDT IJ upper set force control section shown in FIG. These timers 12-1 to 12-N are the oscillation circuit 1
3, but each WDTIJ
When WDT reset signals R11 to RIN are inputted from set output units ll-1 to 11-N, they are reset. By the way, when the software related to the timer interrupt processing routine or each software executing tasks 1 to N goes out of control and there is no timer interrupt or task end signal, the timer 12-1 or 12-2 to 1
The level corresponding to the clock count value of 2-N reaches the predetermined detection level VLJ to VLN, and the timer 12
A high level signal is output from -1 or 12-2 to 12-N. And timer 12-1 or 12-2~
The high level signal output from 12-N is OR circuit 1
4 to each software and system as a system reset signal. This causes each software to enter its initialization routine, and the system is reset and initialized.

従って、何れか1つのソフトウェアが暴走したとき、確
実にシステムリセットを行なうことができ、かつ他のソ
フトウェアを破壊するような仁とがガくなる。15は所
定時間の間システムリセット信号を出力するタイマーで
ある。
Therefore, when any one software runs out of control, the system can be reliably reset, and the risk of destroying other software is prevented. 15 is a timer that outputs a system reset signal for a predetermined period of time.

次に、第2の発明の一実施例について第5図ないし第7
図を参照して説明する。一般に、ソフトウェアの暴走は
、メモリを破壊してしまい、その結果として暴走を招く
ことが多い。このような観点からタイマー割込みなどの
処理ルーチンの中に、次のようなソフトウェアを設けて
おく。つまり、第5図に示すROMと第6図に示すRA
Mとを用意し、通常はイニシャライズ・ルーチンによっ
てROMの内容をRAMの同一番地へ転送して格納して
おく。従って、ROMとRAMとの同一番地には同一内
容のものが格納されていることになる。そして、以上の
ようにしてROMとRAMに必要な内容を格納した後、
常時或いは必要なときに、ROMの内容とRAMの内容
とを照合し、不一致のときにイニシャライズ・ルーチン
へ飛ばしてしまうものである。なお、イニシャライズ・
ルーチンは、一般にタスクの初期化、RAMの初期化な
ど、システムの動作開始にあたり、各種の装置あるいは
メモリなどの初期化を行なうルーチンである。
Next, regarding one embodiment of the second invention, FIGS.
This will be explained with reference to the figures. Generally, runaway software often destroys memory, resulting in runaway software. From this point of view, the following software is provided in the processing routines such as timer interrupts. In other words, the ROM shown in FIG. 5 and the RA shown in FIG.
Normally, the contents of the ROM are transferred and stored at the same location in the RAM by an initialization routine. Therefore, the same contents are stored at the same location in the ROM and RAM. After storing the necessary contents in the ROM and RAM as described above,
The contents of the ROM and the contents of the RAM are checked at all times or when necessary, and if they do not match, the process is skipped to the initialization routine. In addition, initialize
The routine is generally a routine that initializes various devices or memories at the start of system operation, such as task initialization and RAM initialization.

照合するメモリ番地としては1個又は複数個設けておく
こと。また、必要により、1個又は複数個のメモリアド
レスをROMおよびRAMの数個所に設けておいてもよ
い。従って、タイマー割込みの処理ルーチンあるいは一
定時間で動作するプログラムに比較照合ルーチンを設け
ることによね、プログラムの暴走によってメモリを破壊
することがなく、システムの信頼性を上げることができ
る。
One or more memory addresses to be checked should be provided. Further, if necessary, one or more memory addresses may be provided at several locations in the ROM and RAM. Therefore, by providing a comparison and verification routine in a timer interrupt processing routine or a program that operates for a fixed period of time, the memory will not be destroyed due to program runaway, and the reliability of the system can be increased.

なお、本発明は上記実施例に限定されるものではない。Note that the present invention is not limited to the above embodiments.

例えばROMとRAMの内容を照合する代りに、次のよ
うな手段をとってもよい。
For example, instead of comparing the contents of ROM and RAM, the following measures may be taken.

先ず、イニシャライズ・ルーチンにより、1個又は複数
個のメモリ(これらのメモリがメモリ空間の各所にあっ
てもよい)に対しある数値を記憶しておく。そして、タ
イマー割込み又は一定時間内で動作するプログラムなど
のルーチンに前記数値に変化があるか否かを比較照合す
る処理を設け、変化があったときにイニシャライズ−ル
ーチンへ移してシステムの初期化を図った後、システム
の動作を開始させるようにしてもよい。また、第4図に
示すタイマー15は必らずしも必要としない。その他、
本発明はその要旨を逸脱しない範囲で種々変形して実施
できる。
First, an initialization routine stores a numerical value in one or more memories (these memories may be located at various locations in the memory space). Then, a routine such as a timer interrupt or a program that operates within a certain period of time is provided with processing to compare and check whether or not there is a change in the above numerical value, and when there is a change, the process is moved to the initialization routine and the system is initialized. After this, the system may be started to operate. Further, the timer 15 shown in FIG. 4 is not necessarily required. others,
The present invention can be implemented with various modifications without departing from the gist thereof.

〔発明の効果〕〔Effect of the invention〕

以上詳記したように本発明によれば、何れかのソフトウ
ェアが暴走したとき、それを検出してシステムリセット
信号を発し、総てのソフトウェアをイニシャライズ・ル
ーチンとし、かつシステムをリセットして初期化するよ
うにしたので、ある1つのソフトウェアの暴走したため
に他のソフトウェアが破壊されて動作しなくなるような
ことがなくなる。しかも、何れのソフトウェアの暴走に
対しても確実にシステムリセットを行なうことができ、
システムの信頼性を高めることができるシステムリセッ
ト方法を提供できる。
As detailed above, according to the present invention, when any software runs out of control, it is detected and a system reset signal is issued, all software is set to an initialization routine, and the system is reset and initialized. This prevents other software from being destroyed and no longer working due to one piece of software running out of control. Furthermore, the system can be reliably reset in the event of any software runaway.
A system reset method that can improve system reliability can be provided.

【図面の簡単な説明】[Brief explanation of drawings]

第1図および第2図は従来のシステムリセット方法を説
明する概念図およびタイムチャート、第3図および第4
図は第1の発明の一実施例を説明するためのもので、第
3図は各ソフトウェアごとに設けられたWDTIJセッ
ト出力部を示す図、第4図はWDTIJセット出力制御
部の構成図、第5図ないし第7図は第2の発明の一実施
例を説明するためのもので、第5図および第6図はRO
MおよびRAMの構成図、第7図は処理ルーチンを示す
図である。 1ノー1〜1ノーN・・・WDTリセット出力部、12
−1〜12−N・・・タイマー、13・・・発振回路、
14・・・オア回路。 出願人代理人 弁理士 鈴 江 武 彦第4因 第5図  第6図 第7図 システムIlt、ソH畜号 287−
Figures 1 and 2 are conceptual diagrams and time charts explaining the conventional system reset method, and Figures 3 and 4 are
The figures are for explaining an embodiment of the first invention, and FIG. 3 is a diagram showing a WDTIJ set output section provided for each software, FIG. 4 is a configuration diagram of a WDTIJ set output control section, FIGS. 5 to 7 are for explaining an embodiment of the second invention, and FIGS. 5 and 6 are RO
A block diagram of M and RAM, and FIG. 7 is a diagram showing a processing routine. 1 no 1 to 1 no N...WDT reset output section, 12
-1 to 12-N... timer, 13... oscillation circuit,
14...OR circuit. Applicant's representative Patent attorney Takehiko Suzue No. 4, Figure 5, Figure 6, Figure 7, System Ilt, SOH No. 287-

Claims (2)

【特許請求の範囲】[Claims] (1)複数のソフトウェアのうち何れが1つのソフトウ
ェアが暴走したとき、システムをリセットして初期化す
るシステムリセット方法において、システムを制御する
前記複数のソフトウェアに対応して設けられ、ある時間
ごとに入力されるタイマー割込みおよびタスク終了信号
によってウォッチ・ドッグ・タイマ−1リセツト信号を
出力する複数のウォッチ・ドッグ・タイマ−1リセツト
出力部と、これらのリセット出力部にそれぞれ対応して
設けられ、何れか1つのソフトウェアの暴走によってそ
れに対応する前記リセット出力部から前記ある時間ごと
にウォッチ−ドッグ・タイマー・リセット信号が到来し
ないとき、システムリセット信号を出力する複数のタイ
マーと、これらのタイマーのうち何れか1つのタイマー
から出力されたシステムリセット信号を前記複数のソフ
トウェアに入力してイニシャライズ・ルーチンとし、シ
ステムを初期化させる手段とを備えたことを特徴とする
システムリセット方法。
(1) In a system reset method that resets and initializes the system when one of the plurality of software goes out of control, the method is provided corresponding to the plurality of software that controls the system, and A plurality of watch dog timer 1 reset output sections that output watch dog timer 1 reset signals in response to input timer interrupts and task end signals, and a plurality of watch dog timer 1 reset output sections that are provided corresponding to these reset output sections, respectively, are provided. a plurality of timers that output a system reset signal when the watchdog timer reset signal does not arrive from the corresponding reset output section at certain time intervals due to runaway of one of the software, and which one of these timers; A method for resetting a system, comprising means for inputting a system reset signal outputted from one of the timers to the plurality of pieces of software as an initialization routine to initialize the system.
(2)複数のソフトウェアのうち何れか1つのソフトウ
ェアが暴走したときシステムをリセットして初期化する
システムリセット方法において、予め定められているR
OMと、このROMの内容がイニシャライ/eΦルーチ
ンによって該ROMと同じ番地に転送されて格納される
RAMと、このROMのある番地の内容とこのROMと
同じ番地のRAMの内容とを照合し、両内容があるソフ
トウェアの暴走によって不一致のときにシステムリセッ
ト信号を出力する手段と、この手段によって出力された
システムリセット信号を前記複数のソフトウェアに入力
してイニシャライズ・ルーチンとし、システムをリセッ
トして初期化する手段とを備えたことを特徴とするシス
テムリセット方法。
(2) In a system reset method that resets and initializes the system when any one of multiple software runs out of control, a predetermined R
OM, a RAM in which the contents of this ROM are transferred and stored at the same address as the ROM by the initialization/eΦ routine, and the contents of this ROM at a certain address are compared with the contents of the RAM at the same address as this ROM, means for outputting a system reset signal when there is a mismatch due to runaway of software having both contents; and a system reset signal outputted by this means is inputted to the plurality of software as an initialization routine, and the system is reset and initialized. A method for resetting a system, comprising: means for resetting the system.
JP58032419A 1983-02-28 1983-02-28 System resetting method Pending JPS59158454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58032419A JPS59158454A (en) 1983-02-28 1983-02-28 System resetting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58032419A JPS59158454A (en) 1983-02-28 1983-02-28 System resetting method

Publications (1)

Publication Number Publication Date
JPS59158454A true JPS59158454A (en) 1984-09-07

Family

ID=12358421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58032419A Pending JPS59158454A (en) 1983-02-28 1983-02-28 System resetting method

Country Status (1)

Country Link
JP (1) JPS59158454A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7975188B2 (en) 2007-03-13 2011-07-05 Nec Corporation Restoration device for BIOS stall failures and method and computer program product for the same

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57153354A (en) * 1981-03-19 1982-09-21 Toshiba Corp Electronic computer system
JPS582049B2 (en) * 1975-08-08 1983-01-13 株式会社クボタ How plastics can be used

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS582049B2 (en) * 1975-08-08 1983-01-13 株式会社クボタ How plastics can be used
JPS57153354A (en) * 1981-03-19 1982-09-21 Toshiba Corp Electronic computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7975188B2 (en) 2007-03-13 2011-07-05 Nec Corporation Restoration device for BIOS stall failures and method and computer program product for the same

Similar Documents

Publication Publication Date Title
US11263081B2 (en) Checkpointing
JPS59158454A (en) System resetting method
KR102030461B1 (en) Multi-Processors error detection system and method thereof
JPH0259955A (en) Method for supervising operation of multiprocessor system
JP2659067B2 (en) Microcomputer reset circuit
US6526528B1 (en) Ticket punch watchdog monitor
JPH02281343A (en) Cpu operation monitor system
JPH1040177A (en) Program check system
JP2973724B2 (en) Interrupt control method
GB2030331A (en) Real-time Data Processing System for Processing Time Period Commands
JPS5827538B2 (en) Mutual monitoring method
JPH03266012A (en) Reset control system
JPH0477937A (en) Microprogram control system type data processor
JPH06301409A (en) Multiple program controller
JPH01156839A (en) Data processor
JPH02114339A (en) Cpu monitoring device
JPS61226839A (en) Event processing system
JPH08235133A (en) Multiprocessing system
JPS60198649A (en) Loop detection control system
JPH04195437A (en) Program runaway monitoring device
JPH02281344A (en) Program running monitor system
JPS63174143A (en) System for detecting exceptional event in plural computers system
JPS58114146A (en) Detecting for overrun of processor
JPS62172441A (en) Runaway detection device for multi cpu system
JPH04259045A (en) Watchdog timer monitoring system