JPS63178355A - Damage relieving system for control program file - Google Patents

Damage relieving system for control program file

Info

Publication number
JPS63178355A
JPS63178355A JP62008923A JP892387A JPS63178355A JP S63178355 A JPS63178355 A JP S63178355A JP 62008923 A JP62008923 A JP 62008923A JP 892387 A JP892387 A JP 892387A JP S63178355 A JPS63178355 A JP S63178355A
Authority
JP
Japan
Prior art keywords
control program
program file
control
file
storage device
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
Application number
JP62008923A
Other languages
Japanese (ja)
Other versions
JPH07107672B2 (en
Inventor
Noriaki Uchida
内田 典昭
Kazunobu Mimura
三村 和信
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62008923A priority Critical patent/JPH07107672B2/en
Publication of JPS63178355A publication Critical patent/JPS63178355A/en
Publication of JPH07107672B2 publication Critical patent/JPH07107672B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To surely restore a damaged file within a short period even if the control program file is damaged in working by reading out and restoring the control program file without immediately disconnecting a power supply when power supply disconnection is instructed. CONSTITUTION:When the disconnection of the power supply to a computer system is instructed, a control program file 8 in an auxiliary storage device 3 is compared with a control program 9 in a control memory 3 by a control program file control device 1. Or, the existence of damage of the file 8 in the device 2 is checked on the basis of checking information formed in the file 8, and at the time of detecting the damage, the damaged program file is corrected. Thus, the damage of the control program file 8 in the storage device 2 can be relieved during power supply to the computer system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、補助記憶装置内に格納されている制御プログ
ラムを制御メモリへ格納して用いる計算機システムに係
り、特に、ユーザファイルと同一の補助記憶装置に制御
プログラムを格納している計算機システムに用いて好適
な制御プログラムファイル破壊救済方式に関する。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a computer system that uses a control program stored in an auxiliary storage device by storing it in a control memory. The present invention relates to a control program file destruction and rescue method suitable for use in a computer system in which a control program is stored in a storage device.

〔従来の技術〕[Conventional technology]

一般に、計算機システムへの電源投入時、補助記憶装置
内に格納されている制御プログラムを制御メモリへ格納
して動作する計算機システムにおいては、制御プログラ
ムファイルを専用の補助記憶装置に格納しておくことに
より、あるいは、補助記憶装置を読出し専用の記憶装置
とすること等により、制御プログラムファイルを保護し
ている。
Generally, in a computer system that operates by storing a control program stored in an auxiliary storage device into the control memory when the computer system is powered on, the control program file must be stored in a dedicated auxiliary storage device. The control program file is protected by, for example, making the auxiliary storage device a read-only storage device.

近年、補助記憶装置の大容量化が進み、制御プログラム
ファイルと、ユーザファイルとを同一の補助記憶装置に
格納する方式が、小規模な計算機システムを中心に採用
されている。
In recent years, the capacity of auxiliary storage devices has increased, and a method of storing control program files and user files in the same auxiliary storage device has been adopted mainly in small-scale computer systems.

このような、制御プログラムファイルと、ユーザファイ
ルとを同一の補助記憶装置に格納している計算機システ
ムにおける制御プログラムファイルの保護は、制御プロ
グラムファイルを読出し専用ファイルとして扱ったり、
制御プログラムファイルの格納領域の書込みを、補助記
憶装置の制御プログラムにより禁止する等により行われ
ている。
Protection of the control program file in a computer system where the control program file and the user file are stored in the same auxiliary storage device is to treat the control program file as a read-only file,
This is done by, for example, prohibiting writing to the storage area of the control program file by the control program of the auxiliary storage device.

この種、ファイル破壊の回復、保護に関する従来技術と
して、例えば、特開昭53−136442号公報、特開
昭53−89632号公報等に記載された技術が知られ
ている。この公報記載の従来技術のうち、前者は、交流
電源遮断時の主記憶装置内の記憶内容を保護するために
補助直流電源を用いる技術であり、後者は、複数の補助
記憶装置の記憶内容を、計算機システムが正常運転され
ている間に定期的に複写する手段を備えることにより、
補助記憶装置の一部が障害となった場合に、その補助記
憶装置のバックアップを可能としたものである。
As conventional techniques related to recovery and protection from file destruction of this kind, for example, techniques described in Japanese Patent Application Laid-Open No. 53-136442, Japanese Patent Application Laid-Open No. 53-89632, etc. are known. Among the conventional techniques described in this publication, the former is a technique that uses an auxiliary DC power supply to protect the storage contents in the main storage device when the AC power supply is cut off, and the latter is a technique that uses an auxiliary DC power source to protect the storage contents of multiple auxiliary storage devices. , by providing a means for periodically copying while the computer system is operating normally,
This makes it possible to back up the auxiliary storage device in the event that a portion of the auxiliary storage device becomes a failure.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前記従来技術のうち、制御プログラムファイルを専用の
補助記憶装置に格納しておく技術は、システム的にコス
ト高となるという問題点を有する。
Among the above-mentioned conventional techniques, the technique of storing the control program file in a dedicated auxiliary storage device has the problem of high system cost.

また、制御プログラムファイルとユーザファイルとを同
一の補助記憶装置に格納した場合の制御プログラムの保
護のための技術は、プログラムやハードウェアの異常に
よる制御プログラムファイルの破壊に対する保護手段に
ついて充分な配慮がなされておらず、制御プログラムフ
ァイルが破壊されてしまうことがあり、システムの再立
上げができなくなるという問題点があった。さらに、公
報記載の従来技術は、制御プログラムファイルとユーザ
ファイルとを同一の補助記憶装置に格納した場合の制御
プログラムの保護に対する配慮がなされていなかった。
In addition, the technology for protecting the control program when the control program file and user file are stored in the same auxiliary storage device requires sufficient consideration for protection measures against destruction of the control program file due to program or hardware abnormalities. If this is not done, the control program file may be destroyed, making it impossible to restart the system. Furthermore, the prior art described in the publication does not take into account the protection of the control program when the control program file and the user file are stored in the same auxiliary storage device.

本発明の目的は、前述した従来技術の問題点を解決し、
信頼性の高い、安価な計算機システムを実現することを
可能とし、かつ、確実に制御プログラムファイルの保護
を行うことのできる制御プログラムファイル破壊救済方
式を提供することにある。
The purpose of the present invention is to solve the problems of the prior art described above,
It is an object of the present invention to provide a control program file destruction/relief method that makes it possible to realize a highly reliable and inexpensive computer system and reliably protect the control program file.

〔問題点を解決するための手段〕[Means for solving problems]

本発明によれば、前記目的は、制御プログラムファイル
制御装置において、システムの電源切断指示を検出した
場合に、補助記憶装置内:(格納されている制御プログ
ラムファイルの破壊の有無をチェックし、破壊が検出さ
れた場谷に、補助記憶装置内の制御プログラムの訂正を
行い、その後、電源切断を許可するように制御すること
により達成される。
According to the present invention, the purpose is to check whether or not the control program file stored in the auxiliary storage device has been destroyed, when a system power-off instruction is detected in the control program file control device. This is achieved by correcting the control program in the auxiliary storage device when this is detected, and then controlling the power to be turned off.

〔作 用〕[For production]

一般に、制御プログラムファイルとユーザファイルとを
同一の補助記憶装置に格納しておく計算機システムにお
いて、補助記憶装置内の制御プログラムファイルの破壊
は、電源投入中、計算機システムの稼動中に、ユーザプ
ログラムの異常、あるいはハードウェアの異常等によっ
て発生する。
Generally, in a computer system where control program files and user files are stored in the same auxiliary storage device, destruction of the control program file in the auxiliary storage device occurs while the power is turned on or the computer system is running. This occurs due to an abnormality or hardware abnormality.

しかし、計算機システムの枢動開始時に、補助記憶装置
から計算機システム内の制御メモリ内に移されている制
御プログラムが破壊されることばない。従って、計算機
システムの*源断が指示された場合、制御プログラムフ
ァイル制御装置において、補助記憶装置内の制御プログ
ラムファイルと、制御メモリ内の制御プログラムとを比
較することにより、あるいは補助記憶装置内の制御プロ
グラムファイルに設けられたチェック情報に基づいて、
補助記憶装置内の制御プログラムファイルの破壊の有無
をチェックし、破壊が検出された場合に、破壊されたプ
ログラムファイルを訂正しておくことにより、計算機シ
ステムの電源投入中の補助記憶装置内の制御プログラム
ファイルの破壊を救済することができる。
However, when the computer system starts pivoting, the control program transferred from the auxiliary storage device to the control memory within the computer system is not destroyed. Therefore, when power-off of the computer system is instructed, the control program file control device can compare the control program file in the auxiliary storage device with the control program in the control memory, or Based on the check information provided in the control program file,
By checking whether or not the control program file in the auxiliary storage device is corrupted and correcting the corrupted program file if corruption is detected, the control program file in the auxiliary storage device can be maintained while the computer system is powered on. Corruption of program files can be rescued.

〔実施例〕〔Example〕

以下、本発明による制御プログラムファイル破壊救済方
式の一実施例を1面により詳細に説明する。
Hereinafter, one embodiment of the control program file destruction/relief method according to the present invention will be described in detail from the first page.

第1図は本発明の一実施例の基本的構成図、第2図は本
発明の一実施例の詳細な構成図、第3図は制御プログラ
ムファイルのフォーマツトラ示ス図、第4図は動作を説
明するフローチャートである。
Figure 1 is a basic configuration diagram of an embodiment of the present invention, Figure 2 is a detailed configuration diagram of an embodiment of the invention, Figure 3 is a format diagram of a control program file, and Figure 4 is a diagram showing a format tracker of a control program file. It is a flowchart explaining the operation.

第1図、第2図において、1は制御プログラムファイル
制御装置、2は補助記憶装置、3は制御メモリ、4は比
較回路、5は訂正回路、8は制御プログラムファイル、
9は制御プログラム、1゜は制御メモリバッファ、11
は補助記憶装置バッファ、12は補助記憶装置アドレス
レジスタ、13は制御メモリアドレスレジスタ、14は
制御回路、15は電源装置、16はブロックカウンタで
ある。
1 and 2, 1 is a control program file control device, 2 is an auxiliary storage device, 3 is a control memory, 4 is a comparison circuit, 5 is a correction circuit, 8 is a control program file,
9 is a control program, 1° is a control memory buffer, 11
12 is an auxiliary storage device buffer, 12 is an auxiliary storage device address register, 13 is a control memory address register, 14 is a control circuit, 15 is a power supply device, and 16 is a block counter.

本発明の一実施例の基本的な構成を示す第1図において
、磁気ディスク装置等による補助記憶装置2内には、制
御プログラムファイル8が格納されているとともに、図
示しないユーザファイルが格納されている。この制御プ
ログラムファイル8は、図示本発明の実施例を含む計算
機システム内の制御メモリ3内に制御プログラム9とし
て移され、計算機システムを稼動可能とする。また、本
発明による制御プログラムファイル救済機能を有する制
御プログラム゛ファイル制御装置1は、補助記憶装置2
と制御メモリ3に接続されており、制御プログラムファ
イル8の内容と制御プログラム9の内容を比較すること
により、制御プログラムファイル8の破壊を検出する比
較回路4と、制御プログラムファイル8を訂正する訂正
回路5とを備えて構成される。
In FIG. 1 showing the basic configuration of an embodiment of the present invention, an auxiliary storage device 2 such as a magnetic disk device stores a control program file 8 as well as user files (not shown). There is. This control program file 8 is transferred as a control program 9 into the control memory 3 in the computer system including the illustrated embodiment of the present invention to enable the computer system to operate. Further, the control program file control device 1 having a control program file rescue function according to the present invention has an auxiliary storage device 2.
and a comparator circuit 4 that detects destruction of the control program file 8 by comparing the contents of the control program file 8 and the contents of the control program 9, and a correction circuit that corrects the control program file 8. The circuit 5 is configured to include a circuit 5.

とのよ5に構成された本発明の一実施例において、計算
機システムの稼動中止のため、1!諒切断指示信号6が
制御プログラムファイル制御装置1に印加されると、該
制御装置1は、補助記憶装置2内の制御プログラムファ
イル8と、制御メモリ3内の制御プログラム8とを順次
読出し、比較回路4により比較することにより、制御プ
ログラムファイル8の破壊の有無を検出する。比較回V
%4により、制御プログラムファイル8の破壊が検出さ
れた場合、訂正回路5は、制御プログラム9の内容を補
助記憶装置2に曹込むことにより、制御プログラムファ
イル8を訂正する。その後、制御プログラムファイル制
御装[1は、電源切断許可信号7を発して処理を終了す
る。
In one embodiment of the present invention configured in Tonoyo 5, due to suspension of operation of the computer system, 1! When the disconnection instruction signal 6 is applied to the control program file control device 1, the control device 1 sequentially reads the control program file 8 in the auxiliary storage device 2 and the control program 8 in the control memory 3 and compares them. By comparing with the circuit 4, it is detected whether or not the control program file 8 has been destroyed. Comparison episode V
%4, when destruction of the control program file 8 is detected, the correction circuit 5 corrects the control program file 8 by storing the contents of the control program 9 in the auxiliary storage device 2. Thereafter, the control program file controller [1] issues a power cut permission signal 7 and ends the process.

前述のような制御プログラムファイル制御装置1の動作
により、補助記憶装置2内の制御プログラムファイル8
の破琺救済を行うことができるのは、すでに述べたよう
に、制御プログラムファイル8の破壊が、計算機システ
ムの稼動中に、ユーザプログラムの異常、おるいはハー
ドウェアの異常によって発生するのに対し、制御メモリ
3内に移されている制御プログラム9は、計算機システ
ムの稼動中破壊されることがないためである。
By the operation of the control program file control device 1 as described above, the control program file 8 in the auxiliary storage device 2 is
As mentioned above, the destruction of the control program file 8 can be carried out even though the destruction of the control program file 8 occurs due to an abnormality in the user program or hardware during the operation of the computer system. On the other hand, the control program 9 transferred to the control memory 3 is not destroyed while the computer system is in operation.

なお、前述した例では、制御プログラムファイル8の破
壊を、比較回路4を用い℃制御プログラム9の内容と比
較して検出し、制御プログラム9の内容により訂正して
いるが、制御プログラムファイル8にチェック情報を設
け、このチェック情報に基づいて制御プログラムファイ
ルの破壊を検出してもよく、また、このチェック情報に
誤り訂正機能を持たせることにより、このチェック情報
に基づいて破壊された制御プログラムファイルの訂正を
行ってもよい。
In the example described above, destruction of the control program file 8 is detected by comparing it with the contents of the °C control program 9 using the comparator circuit 4, and is corrected based on the contents of the control program 9. Check information may be provided and destruction of the control program file may be detected based on this check information.Also, by providing this check information with an error correction function, it is possible to detect destruction of the control program file based on this check information. You may make corrections.

本発明の一実施例の詳細が第2図に示されており、この
実流例において、電源装置15は、補助記憶i* 2 
、制御メモリ3及び制御プログラムファイル制御装置1
に電源を供給し、計算機システムを稼動可能にしており
、外部から電源断の指令が与えられたとき、直ちに電源
を断とすることなく、制御プログラムファイル制御装置
1に′#IL源切断指示信号6を送り、制御プログラム
ファイル制御装置1から電源切断許可信号7を受取った
とき、電源の供給を停止する。補助記憶装d2に格納さ
れている制御プログラムファイル8は、第3図に示すよ
うに、ファイル名称(F N ) 17 、梱助記憶装
[2内の格納アドレスを示すファイルアドレス(FA)
18.制御メモリ3の固定格納アドレスを示すロードア
ドレス(LA)19、制御プログラムファイル8の大き
さを示すファイルブロック弐(BL)、20及び複数の
固定長ブロックより成る制御プログラム部(D)21よ
り成るフォーマットにより構成される。制御メモリ3内
の制御プログラム9には、前述の制御プログラム80F
N 17以外の部分、すなわち、FA18.Li2Q、
Bf。
Details of one embodiment of the present invention are shown in FIG. 2, in which the power supply device 15 has an auxiliary memory i
, control memory 3 and control program file control device 1
When the computer system is made operational by supplying power to the computer system, when a command to turn off the power is given from the outside, without immediately turning off the power, a '#IL source cut-off instruction signal is sent to the control program file controller 1. 6, and when the power cut permission signal 7 is received from the control program file control device 1, the power supply is stopped. As shown in FIG. 3, the control program file 8 stored in the auxiliary storage device d2 has a file name (F N ) 17 and a file address (FA) indicating a storage address in the packaging auxiliary storage device [2].
18. It consists of a load address (LA) 19 indicating a fixed storage address of the control memory 3, a file block 2 (BL) 20 indicating the size of the control program file 8, and a control program section (D) 21 consisting of a plurality of fixed length blocks. Consists of format. The control program 9 in the control memory 3 includes the aforementioned control program 80F.
Parts other than N17, that is, FA18. Li2Q,
Bf.

20、D21が格納される。20 and D21 are stored.

制御プログラムファイル制御装[1は、この装置全体を
制御する制御回路14、制御回路14により補助記憶装
置2及び制御メモリ3のアドレスが設定される補助記憶
装置アドレスレジスタ12、制御メモリアドレスレジス
タ13、これらのアドレスレジスタ12,13の内容に
より読出された制御プログラムファイル8、制御プログ
ラム9を一時的にV積する補助記憶装置バッファ11、
制御メモリバッファ10、制御回路14の指示により両
バッファ10,110内容を比較し、比較結果を制−回
路に報告する比較回路4、制御回路14の指示により制
御メモリバッファ10の内容を補助記t、t k=装置
アドレスレジスタ12のアドレスに従って、補助記憶=
itバッファ11を介し℃補助記憶装置2に書込む訂正
回動5、制御回路14が制御プログラムファイル8のw
;m検出及び訂正処理の実行に用いるブロックカウンタ
16より構成される。
Control program file control device [1] includes a control circuit 14 that controls the entire device, an auxiliary storage device address register 12 in which the addresses of the auxiliary storage device 2 and the control memory 3 are set by the control circuit 14, a control memory address register 13, an auxiliary storage buffer 11 that temporarily multiplies the control program file 8 and control program 9 read by the contents of these address registers 12 and 13;
The comparison circuit 4 compares the contents of both buffers 10 and 110 according to instructions from the control memory buffer 10 and the control circuit 14, and reports the comparison result to the control circuit. , t k = auxiliary storage = according to the address of the device address register 12
The correction rotation 5 is written to the ℃ auxiliary storage device 2 via the it buffer 11, and the control circuit 14 writes w of the control program file 8.
; It is composed of a block counter 16 used for executing m detection and correction processing.

このように構成された第2図に示す本発明の実施例にお
ける制御プログラムファイル1の動作を第4図に示すフ
ローチャートに従って以下に説明する。
The operation of the control program file 1 in the embodiment of the present invention shown in FIG. 2 having such a structure will be described below in accordance with the flowchart shown in FIG. 4.

(1)を源装置15は、電源切断の指示を検出すると、
制御回路14に電源切断指示信号6を送りその旨を報告
する。制御回路14は、制御メモリアドレスレジスタ1
3に固定のロードアドレス19を設定し、このアドレス
により制御メモリ3内の制御プログラム9のファイルア
ドレス18とファイルブロック長20を制御メモリバッ
ファ10へ絖出す。この制御メモリバッファ10に読出
されたファイルアドレス18は補助記憶装置アドレスレ
ジスタ12にセットされ、ファイルブロック長20はブ
ロックカウンタ16に設定される(フロー41)。
(1) When the source device 15 detects an instruction to turn off the power,
A power cut instruction signal 6 is sent to the control circuit 14 to report the fact. The control circuit 14 includes a control memory address register 1
A fixed load address 19 is set in 3, and the file address 18 and file block length 20 of the control program 9 in the control memory 3 are loaded into the control memory buffer 10 using this address. The file address 18 read into the control memory buffer 10 is set in the auxiliary storage address register 12, and the file block length 20 is set in the block counter 16 (flow 41).

(2)制御回路14は、前述でアドレスレジスタ12.
13に設定したアドレスに基づいて、制御プログラムフ
ァイル8の1ブロック分の内容を補助記憶装置バッファ
11へ、制御メモリ3内の制御プログラム90制御プロ
グラム部21の1ブロック分の内容を制御メモリノくツ
ファ10へ読出し格納する。このとき、制御回路14は
、図示しないフラグをオフとするとともに、制御プログ
ラム部21の1ブロツクのバイト数を計数するバイトカ
ウンタiを+1”にセットする(フロー42.43 )
(2) The control circuit 14 includes the address register 12.
Based on the address set in 13, the contents of one block of the control program file 8 are transferred to the auxiliary storage device buffer 11, and the contents of one block of the control program section 21 of the control program 90 in the control memory 3 are transferred to the control memory buffer 11. 10 and stores it. At this time, the control circuit 14 turns off a flag (not shown) and sets the byte counter i for counting the number of bytes in one block of the control program section 21 to +1'' (Flow 42.43).
.

(3)制御回路14は、補助記憶装置バッファ11及び
制御メモリバッファ10の内容を順次1バイトづつ比較
回路4に与え、補助記憶装置2内の制御プログラムファ
イル8の破壊の有無を検出する。
(3) The control circuit 14 sequentially supplies the contents of the auxiliary storage device buffer 11 and the control memory buffer 10 one byte at a time to the comparison circuit 4 to detect whether or not the control program file 8 in the auxiliary storage device 2 has been destroyed.

比較の結果、一致が得られ、そのバイトに破壊が無いこ
とが確認されると、前記バイトカウンタが1ブロツクを
示していないことを確認し、該カウンタを+1して、次
のバイトの比較動作が実行される。第4図では、制御プ
ログラム部21の1ブロツク長を512バイトとしてお
り、この動作は、バイトカウンタが512となる迄続け
られる。なお、この比較動作は、1バイト単位でなく複
数バイト単位で行ってもよい(フロー44.47.48
)。
As a result of the comparison, if a match is obtained and it is confirmed that the byte is not destroyed, it is confirmed that the byte counter does not indicate 1 block, the counter is incremented by 1, and the next byte comparison operation is started. is executed. In FIG. 4, the length of one block of the control program section 21 is 512 bytes, and this operation continues until the byte counter reaches 512. Note that this comparison operation may be performed not in units of one byte but in units of multiple bytes (Flow 44.47.48).
).

(4)比較器4による比較の結果、一致が得られず、制
御プログラムファイル8が破壊されていることが検出さ
れると、制御回路14は、訂正回路5を退勤する。訂正
回路5は、これにより、破壊が検出されたバイトについ
て、制御メモリバッファ10内の制御プログラム部21
を読取り、補助記憶装置バッファ11を書替える。制御
回路14は、同時にフラグをオンとする(フロー44〜
46)。
(4) As a result of the comparison by the comparator 4, if a match is not obtained and it is detected that the control program file 8 is destroyed, the control circuit 14 leaves the correction circuit 5. As a result, the correction circuit 5 corrects the control program section 21 in the control memory buffer 10 for the byte for which the corruption has been detected.
is read and the auxiliary storage device buffer 11 is rewritten. The control circuit 14 simultaneously turns on the flag (flow 44 to
46).

(5)前述した動作が制御プログラムファイル8及び制
御プログラム90制御プログラム部21の1ブロツク分
について終了すると、制御回路14は、フラグのチェッ
クを行い、フラグがオンでおる場合、制御プログラムフ
ァイル8に破壊が発生したことを示しており、訂正され
た内容が補助記助記憶アドレスレジスタ12の示すアド
レスに従って、その1ブロツクを補助記憶装置2内の制
御プログラムファイル8に格納する(70−47.49
.50 )。
(5) When the above-described operation is completed for one block of the control program file 8 and control program 90 control program section 21, the control circuit 14 checks the flag, and if the flag is on, the control program file 8 is This indicates that destruction has occurred, and the corrected content is stored in the control program file 8 in the auxiliary storage device 2 according to the address indicated by the auxiliary storage address register 12 (70-47.49).
.. 50).

(6)制御回路14は、前述の動作が終了した場合、あ
るいは、フラグがオフとなっていて、このブロックの制
御メモリファイル8の破壊が無かった場合、補助記憶装
置アドレスレジスタ12、制御メモリアドレスカウンタ
13を更新し、ブロックカウンタ16を−1する(フロ
ー51)。
(6) When the above-mentioned operation is completed, or when the flag is off and the control memory file 8 of this block is not destroyed, the control circuit 14 sends the auxiliary storage device address register 12, the control memory address The counter 13 is updated and the block counter 16 is decremented by 1 (flow 51).

(7)制御回路14は、前述したフロー42〜フロー5
1の処理を繰返すことにより、制御プログラムファイル
8の全ブロックの破壊の有無の検出と、破壊のあったブ
ロックの訂正の終了とをブロックカウンタ16が+0”
になったことにより確認すると、電源装置15に電源切
断許可信号7を送り処理を終了する。これにより、電源
装#15は、システムの電源を切断する(フロー52.
53)。
(7) The control circuit 14 performs the flow 42 to flow 5 described above.
By repeating the process in step 1, the block counter 16 reaches +0'' to detect whether or not all blocks of the control program file 8 are corrupted and to complete correction of the corrupted blocks.
When confirmed, a power cut permission signal 7 is sent to the power supply device 15 to end the process. As a result, power supply #15 turns off the power to the system (Flow 52.
53).

前述した本発明の実施例によれば、制御プログラムファ
イルが破壊された場合、電源切断指示のあったときに、
制御プログラムファイルを修復し、その後、電源の切断
を行うため、計算機システムの電源投入中の、制御プロ
グラムファイルの破壊の救済が可能となる。
According to the embodiment of the present invention described above, when the control program file is destroyed and a power-off instruction is given,
Since the control program file is repaired and then the power is turned off, it is possible to repair the control program file from destruction while the computer system is powered on.

前述した実施例における比較結果は、図示しない手段に
より出力装置に出力することができ、このようにすると
、オペレータは、計算機システみの稼動中に制御プログ
ラムファイルのどの部分に破壊が発生しているかを知る
ことができ、オペレータを介在した制御プログラムの訂
正が可能となるとともに、計算機システムの保守運用を
より容易に行うことが可能となる。
The comparison results in the above-mentioned embodiments can be output to an output device by means not shown, and in this way, the operator can determine in which part of the control program file corruption has occurred during operation of the computer system. This makes it possible to correct the control program with the intervention of an operator, and it also becomes possible to perform maintenance and operation of the computer system more easily.

また、比較回路を用いることなく、制御プログラムファ
イル8に誤りチェック情報を設けて、制御プログラムフ
ァイルの破壊の検出と訂正を行ってもよいことはすでに
説明したとおりである。この場合、制御プログラムファ
イル8を栴成する制御プログラム部21の各ブロックに
、垂直パリティ、E CC(Brror Correc
ting Code )等の誤りチェック情報を設け、
制御プログラムファイル8を補助記憶装置バッファ11
に格納するときに、制御回路14が、前述の誤りチェッ
ク情報により制御プログラムファイル8の破壊の有無を
検出し、制御プログラムファイル8の破壊を検出した場
合、この誤りチェック情報により制御プログラムファイ
ルの修復を行うことができる。
Moreover, as already explained, it is also possible to detect and correct destruction of the control program file by providing error check information in the control program file 8 without using the comparison circuit. In this case, each block of the control program unit 21 that creates the control program file 8 is provided with vertical parity, ECC (Bror Correct
Provide error check information such as ting code),
The control program file 8 is transferred to the auxiliary storage device buffer 11.
, the control circuit 14 detects the presence or absence of destruction of the control program file 8 based on the above-mentioned error check information, and if it detects destruction of the control program file 8, the control circuit 14 uses this error check information to repair the control program file. It can be performed.

7さらに、前述した本発明の実施例において、制御プロ
グラムファイル制御装置1は、独立に設ける必要はなく
、例えば、本発明が適用される計算機システム内に含ま
れるサービスプロセッサ内、補助記憶装置制御装置内等
に設けられてもよい。
7 Furthermore, in the embodiment of the present invention described above, the control program file control device 1 does not need to be provided independently; for example, the control program file control device 1 may be installed in a service processor or an auxiliary storage device control device included in a computer system to which the present invention is applied. It may also be provided inside.

また、@2図における制御プログラムファイル制御装置
1を、例えばマイクロプロセッサアーキテクチャとする
ことにより、比較回路4、訂正回路5、補助記憶装置ア
ドレスレジスタ12、制御メモリアドレスレジスタ13
、制御回路140機能をマイクロプロセッサにより実現
することが可能である。この場合、制御プログラムファ
イル制御装置1は、すでに説明した第4図に示すフロー
チャートに従って、第2図に示す実施例の場合と全く同
様に動作する。
In addition, by making the control program file control device 1 in Fig. @2 a microprocessor architecture, for example, the comparison circuit 4, the correction circuit 5, the auxiliary storage device address register 12, the control memory address register 13
, the control circuit 140 functions can be implemented by a microprocessor. In this case, the control program file control device 1 operates in exactly the same way as in the embodiment shown in FIG. 2, according to the flowchart shown in FIG. 4, which has already been explained.

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

以上説明したように、本発明によれば、計算機システム
の稼動中に制御プログラムファイルが破壊されても、電
源切断指示のあったとき、直ちに電源を切断することな
く、制御プログラムファイルを続出して修復するので、
短時間で制御グログラムファイルを確実に修復すること
が可能となり、信頼性の高い計算機システムを実現する
ことができる。
As explained above, according to the present invention, even if the control program file is destroyed while the computer system is operating, the control program file can be continued without immediately turning off the power when a power cut instruction is received. Because it will be repaired,
It becomes possible to reliably repair the control program file in a short time, and a highly reliable computer system can be realized.

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

第1図は本発明の一実施例の基本的構成図、第2図は本
発明の一実施例の詳細な構成図、第3図は制御プログラ
ムファイルのフォーマツ訃を示す図、第4図は動作を説
明するフローチャートである。 1・・・・・・制御プログラムファイル制御装置、2・
・・・・・補助記憶装置、3・・・・・・制御メモリ、
4・・・・・・比較回路、5・・・・・・訂正回路、8
・・・・・・制御プログラムファイル、9・・・・・・
制御プログラム、10・・・・・・制御メモリバッファ
、11・・・・・・補助記憶装置バッファ、12・・・
・・・補助記憶装置アドレスレジスタ、13・・・・・
・制御メモリアドレスレジスタ、14・・・・・・制御
回路、15・・・・・・電源装置、16・・・・・・ブ
ロックカウンタ。
Figure 1 is a basic configuration diagram of an embodiment of the present invention, Figure 2 is a detailed configuration diagram of an embodiment of the invention, Figure 3 is a diagram showing formatting of a control program file, and Figure 4 is a diagram showing the formatting of a control program file. It is a flowchart explaining the operation. 1...Control program file control device, 2.
... Auxiliary storage device, 3 ... Control memory,
4... Comparison circuit, 5... Correction circuit, 8
...Control program file, 9...
Control program, 10... Control memory buffer, 11... Auxiliary storage buffer, 12...
...Auxiliary storage device address register, 13...
- Control memory address register, 14...Control circuit, 15...Power supply device, 16...Block counter.

Claims (1)

【特許請求の範囲】 1、制御プログラムを制御プログラムファイルとして格
納している補助記憶装置から、制御メモリへ制御プログ
ラムを移して稼動する計算機システムにおいて、電源切
断指示があつたとき、補助記憶装置内の制御プログラム
ファイルの破壊の有無を検出し、破壊があつた場合に制
御プログラムファイルの訂正を行い、電源切断の可否を
制御する制御プログラムファイル制御装置を備えたこと
を特徴とする制御プログラムファイル破壊救済方式。 2、前記制御プログラムファイル制御装置がサービスプ
ロセッサ内に設けられ、該サービスプロセッサにより制
御されることを特徴とする特許請求の範囲第1項記載の
制御プログラムファイル破壊救済方式。 3、前記制御プログラムファイル制御装置は、補助記憶
装置内の制御プログラムファイルと、制御メモリ内の制
御プログラムを比較し、一致が得られない場合、計算機
システムの電源接断を許可しないことを特徴とする特許
請求の範囲第1項または第2項記載の制御プログラムフ
ァイル破壊救済方式。 4、前記制御プログラムファイル制御装置は、補助記憶
装置内の制御プログラムファイルと、制御メモリ内の制
御プログラムを比較し、一致が得られない場合、補助記
憶装置内の制御プログラムファイルの内容を訂正した後
、計算機システムの電源断を許可することを特徴とする
特許請求の範囲第1項または第2項記載の制御プログラ
ムファイル破壊救済方式。 5、前記制御プログラムファイルの内容の訂正は、制御
メモリ内の制御プログラムを該制御プログラムファイル
に書込むことにより行われることを特徴とする特許請求
の範囲第4項記載の制御プログラムファイル破壊救済方
式。 6、前記制御プログラムファイル制御装置は、比較の結
果を出力装置に出力することを特徴とする特許請求の範
囲第3項または第4項記載の制御プログラムファイル破
壊救済方式。 7、前記補助記憶装置内の制御プログラムファイルに誤
りチェック情報が設けられ、前記制御プログラムファイ
ル制御装置は、電源切断指示があつたとき、制御プログ
ラムファイルを読出し、前記誤りチェック情報により、
制御プログラムファイルの破壊の有無を検出することを
特徴とする特許請求の範囲第1項または第2項記載の制
御プログラムファイル破壊救済方式。 8、前記補助記憶装置内の制御プログラムファイルに誤
りチェック情報が設けられ、前記制御プログラムファイ
ル制御装置は、電源切断指示があつたとき、制御プログ
ラムファイルを読出し、前記誤りチェック情報により、
制御プログラムファイルの破壊の有無を検出し、訂正を
行うことを特徴とする特許請求の範囲第1項または第2
項記載の制御プログラムファイル破壊救済方式。
[Scope of Claims] 1. In a computer system that operates by transferring a control program from an auxiliary storage device storing a control program as a control program file to a control memory, when a power-off instruction is issued, the data stored in the auxiliary storage device is Destruction of a control program file characterized by comprising a control program file control device that detects whether or not the control program file of the control program file is destroyed, corrects the control program file if the control program file is destroyed, and controls whether or not to turn off the power. Relief method. 2. The control program file destruction relief method according to claim 1, wherein the control program file control device is provided within a service processor and is controlled by the service processor. 3. The control program file control device compares the control program file in the auxiliary storage device with the control program in the control memory, and if a match is not obtained, does not permit the computer system to be powered off. A control program file destruction relief method according to claim 1 or 2. 4. The control program file controller compares the control program file in the auxiliary storage device with the control program in the control memory, and if a match is not found, corrects the contents of the control program file in the auxiliary storage device. 3. The control program file destruction relief method according to claim 1 or 2, wherein the computer system is then allowed to be powered off. 5. The control program file destruction relief method according to claim 4, wherein the content of the control program file is corrected by writing the control program in the control memory into the control program file. . 6. The control program file destruction relief method according to claim 3 or 4, wherein the control program file control device outputs the comparison result to an output device. 7. Error check information is provided in the control program file in the auxiliary storage device, and the control program file control device reads the control program file when a power-off instruction is given, and based on the error check information,
3. A control program file destruction relief method according to claim 1 or 2, wherein the control program file destruction rescue method detects whether or not the control program file is destroyed. 8. Error check information is provided in the control program file in the auxiliary storage device, and the control program file control device reads the control program file when a power-off instruction is given, and based on the error check information,
Claim 1 or 2 is characterized in that it detects whether or not a control program file has been destroyed and performs correction.
Control program file destruction relief method described in Section 2.
JP62008923A 1987-01-20 1987-01-20 Control program file destruction rescue method Expired - Lifetime JPH07107672B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62008923A JPH07107672B2 (en) 1987-01-20 1987-01-20 Control program file destruction rescue method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62008923A JPH07107672B2 (en) 1987-01-20 1987-01-20 Control program file destruction rescue method

Publications (2)

Publication Number Publication Date
JPS63178355A true JPS63178355A (en) 1988-07-22
JPH07107672B2 JPH07107672B2 (en) 1995-11-15

Family

ID=11706174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62008923A Expired - Lifetime JPH07107672B2 (en) 1987-01-20 1987-01-20 Control program file destruction rescue method

Country Status (1)

Country Link
JP (1) JPH07107672B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007133860A (en) * 2005-10-12 2007-05-31 Matsushita Electric Ind Co Ltd Program loader with tampering verification function for load-destination information, processor including program loader, data processing device including processor, program loading method, and integrated circuit
US8127144B2 (en) 2005-10-12 2012-02-28 Panasonic Corporation Program loader operable to verify if load-destination information has been tampered with, processor including the program loader, data processing device including the processor, promgram loading method, and integrated circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007133860A (en) * 2005-10-12 2007-05-31 Matsushita Electric Ind Co Ltd Program loader with tampering verification function for load-destination information, processor including program loader, data processing device including processor, program loading method, and integrated circuit
US8127144B2 (en) 2005-10-12 2012-02-28 Panasonic Corporation Program loader operable to verify if load-destination information has been tampered with, processor including the program loader, data processing device including the processor, promgram loading method, and integrated circuit

Also Published As

Publication number Publication date
JPH07107672B2 (en) 1995-11-15

Similar Documents

Publication Publication Date Title
US6606683B2 (en) Information recording apparatus and control method thereof
US6058462A (en) Method and apparatus for enabling transfer of compressed data record tracks with CRC checking
US20030221070A1 (en) Storage system
JPS63178355A (en) Damage relieving system for control program file
JP4135413B2 (en) MEMORY CHECK SYSTEM, MEMORY CHECK METHOD, SIGNAL PROCESSING DEVICE, SIGNAL PROCESSING DEVICE MEMORY CHECK METHOD, AND MEMORY CHECK PROGRAM
US20090210758A1 (en) Method for reducing data error when flash memory storage device using copy back command
JP4853083B2 (en) Computer system, data normality confirmation method, and program
JP3381588B2 (en) Storage device normality check device and information processing device
JPH0784894A (en) Method for writing nonvolatile memory
JP4474614B2 (en) Multiplexing system
JP4596602B2 (en) Nonvolatile memory data management method
JP2009086980A (en) Logging system
JP5623882B2 (en) Digital equipment
JPH02254677A (en) Magnetic tape controller
JPH09293026A (en) Redundant conversion method of device storage part and its device
JPH033051A (en) Information processor
JPS6121539A (en) Generation management system of data file
JPH0689216A (en) File label restoring device
JPH07287694A (en) Multiplex processing system and memory synchronous control method
JPH02238539A (en) Memory control system
JPS61210453A (en) Data memory device
JPH04169945A (en) File restoring method
JPH01102658A (en) File write back-up system
JPH05341921A (en) Disk array device
JPH04273516A (en) Magnetic disk device