JPH0455927A - Data area protection system - Google Patents

Data area protection system

Info

Publication number
JPH0455927A
JPH0455927A JP2167014A JP16701490A JPH0455927A JP H0455927 A JPH0455927 A JP H0455927A JP 2167014 A JP2167014 A JP 2167014A JP 16701490 A JP16701490 A JP 16701490A JP H0455927 A JPH0455927 A JP H0455927A
Authority
JP
Japan
Prior art keywords
data
storage area
updating
processing unit
central processing
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
JP2167014A
Other languages
Japanese (ja)
Inventor
Koji Shima
志摩 浩司
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2167014A priority Critical patent/JPH0455927A/en
Publication of JPH0455927A publication Critical patent/JPH0455927A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To protect the data at discontinuation of a CPU operation by updating and recovering the data for a storage area containing a back-up function which supplies the power via a battery and a processing procedure program of the CPU with use of a data updating means and a data recovery means. CONSTITUTION:A storage device includes a back-up storage area which receives the power of a battery and can hold the storage contents despite the cut-off of a power supply. The storage device also stores other information 32 including an under data updating flag 31, a data updating address, etc., and a data updating work area 33. A data storage area 34 is added to the storage device to temporarily store the data. In such a constitution, the flag is kept ON as long as the data are actually being written into the storage area and the contents of a buffer are already updated when the operation of a CPU is stopped during the updating of the data. Thus the data can be recovered when the data are transferred again to an actual storage area from the buffer.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ領域保護方式に関し、特に中央処理装
置において、記憶装置上のデータを更新する際に電源断
等により中央処理装置が停止した場合のデータの破壊を
防止できるデータ領域保護方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a data area protection system, and in particular, the present invention relates to a data area protection system, and in particular, in a central processing unit, when data on a storage device is updated, the central processing unit is stopped due to a power cut, etc. The present invention relates to a data area protection method that can prevent data destruction in cases where data is destroyed.

〔従来の技術〕[Conventional technology]

従来のコンピュータシステムは、このような記憶装置上
のデータを更新している処理中に電源断等により中央処
理装置が停止した場合に、記憶装置上に保持すべきデー
タの破壊を回避するために、データを更新する前に更新
すべきデータを二重化しバックアップデータをとる方式
が一般的であった。
In conventional computer systems, when the central processing unit is stopped due to a power outage while updating the data on the storage device, there is a system that prevents the data to be held on the storage device from being destroyed. The common method was to duplicate the data to be updated and take backup data before updating the data.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のデータ領域保護方式では、データの全体
を二重化する必要があるので、保護すべきデータ量が多
い場合には、データの記憶装置の容量が増大しコストが
かかる欠点がある。また、データの二重化処理を更新時
に毎回行わなければならないので、処理時間が増大する
という欠点があった。
In the conventional data area protection method described above, it is necessary to duplicate the entire data, so when there is a large amount of data to be protected, there is a drawback that the capacity of the data storage device increases and costs increase. Furthermore, since data duplication processing must be performed every time an update is made, there is a drawback that processing time increases.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデータ領域保護方式は、コンピュータの電源断
等により中央処理装置が停止した場合のデータ領域保護
方式において、データ更新中フラグ情報ならびにデータ
更新のアドレス等の情報、ならびにデータ更新作業記憶
領域情報を記憶しているバッテリ電源で保護されたバッ
クアップ記憶部と、前記中央処理装置の立上げ手段と、
データの更新処理手段とを有し、前記中央処理装置の一
時停止が生じてもデータ内容を保護する。
The data area protection method of the present invention is a data area protection method when the central processing unit is stopped due to a power outage of the computer, etc. In the data area protection method, information such as data update flag information, data update address, etc., and data update work storage area information are used. a backup storage unit protected by a battery power source storing the information, and means for starting up the central processing unit;
and data update processing means to protect data contents even if the central processing unit is temporarily stopped.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の記憶装置の構成図である。FIG. 1 is a block diagram of a storage device according to an embodiment of the present invention.

すなわち、記憶装置には電源断の場合にも記憶内容を保
持できるバッテリで電源供給されたバックアップ記憶領
域があり、データ更新中フラグ31、データ更新のアド
レス等を記憶しているその他の情報32、データ更新作
業記憶領域33とを記憶している。また、このバックア
ップ記憶領域のほかに通常の一時記憶用のデータ記憶領
域34とから構成される。
That is, the storage device has a backup storage area powered by a battery that can retain the stored contents even when the power is cut off, and includes a data update flag 31, other information 32 that stores data update addresses, etc. A data update work storage area 33 is stored therein. In addition to this backup storage area, it also includes a data storage area 34 for normal temporary storage.

次にこの記憶装置を使用して本実施例の中央処理装置の
立上げ処理を行う手順を第2図の流れ図により説明する
。まず、中央処理装置の電源投入を行い(ステップ20
)、中央処理装置立上げを行う(ステップ21)。次に
、データ更新中のフラグを上げる(ステップ22)、フ
ラグオンの場合にはバッファ上のデータをデータ記憶領
域に書き込む(ステップ23)6次にフラグをオフとし
て(ステップ24)、次の処理へ移る(ステップ25)
。ステップ22においてフラグオフの場合も同様に次の
処理に移る。
Next, the procedure for starting up the central processing unit of this embodiment using this storage device will be explained with reference to the flowchart of FIG. First, power on the central processing unit (step 20).
), the central processing unit is started up (step 21). Next, raise the data update flag (step 22), and if the flag is on, write the data on the buffer to the data storage area (step 23).Next, turn off the flag (step 24) and proceed to the next process. Move (step 25)
. If the flag is off in step 22, the process similarly moves to the next step.

次に本実施例のデータ更新時の処理を第3図の流れ図に
より説明する。本方式では、データ更新処理ステップ1
0で、その処理での更新の対象となるデータを、実際の
記憶領域34を直接書き変えるのではなく、バックアッ
プ領域のバッファ33をまず書き変えることで実現され
る。この更新処理の手順はステップ11,12.13に
より行われる。バッファ上での更新が完了した時点でフ
ラグ31をオンにするステップ14を行ったうえで、更
新されたデータをバッファ上から、実際の記憶領域に転
送するために、実際の書込みステップ15を行い、ステ
ップ15完了後に、フラグをオフにするステップ16を
行い、データ更新処理を終了する。ここで、データ更新
中に中央処理装置が停止した場合を考えれば、実際の記
憶領域のへの書込中のステップ15実行中であれば、フ
ラグがオンになっており、かつ、バッファの内容は更新
完了しているので、データ内容を回復するためには、バ
ッファから実際の記憶領域へデータを再転送すればデー
タを回復できる。したがって電源投入等の中央処理装置
立上げ要因発生時に中央処理装置の立上げステップ21
の中で、フラグチエツク(ステップ22)を行い、フラ
グがオンであれば、バッファから実際の記憶領域への再
転送ステップ23を実行し、フラグオフのステップ24
を実行する。
Next, the processing at the time of data update in this embodiment will be explained with reference to the flowchart of FIG. In this method, data update processing step 1
0, the data to be updated in that process is realized by first rewriting the backup area buffer 33 instead of directly rewriting the actual storage area 34. The procedure for this update process is performed in steps 11, 12, and 13. When the update on the buffer is completed, step 14 is performed to turn on the flag 31, and then an actual write step 15 is performed to transfer the updated data from the buffer to the actual storage area. , after completing step 15, step 16 is performed to turn off the flag, and the data update process is completed. Here, if we consider the case where the central processing unit stops during data update, if step 15 is being executed while writing to the actual storage area, the flag is on and the buffer contents are Since the update has been completed, the data can be recovered by retransferring the data from the buffer to the actual storage area. Therefore, when a central processing unit startup factor occurs such as power-on, the central processing unit startup step 21
In the process, a flag check (step 22) is performed, and if the flag is on, step 23 of retransferring from the buffer to the actual storage area is executed, and step 24 of turning off the flag is performed.
Execute.

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

以上説明したように本発明は、バッテリにより電源供給
を行うバックアップ機能を有する記憶領域と中央処理装
置の処理手順のプログラムにデータの更新手段とデータ
の回復手段の処理を行うことにより、データ更新処理中
に、中央処理装置が電源断等で停止してもデータの保護
を行うことができる効果がある。
As explained above, the present invention provides data update processing by performing data update means and data recovery means on a storage area having a backup function that supplies power with a battery and a processing procedure program of a central processing unit. One of the benefits is that data can be protected even if the central processing unit is stopped due to a power outage or the like.

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

第1図は本発明の一実施例の記憶装置の構成図、第2図
は本実施例の中央処理装置の立上げ処理の流れ図、第3
図は本実施例のデータ更新時の流れ図である。 31・・・データ更新中フラグ、32・・・その他の情
報、33・・・データ更新作業記憶領域、34・・・デ
ータ記憶領域。
FIG. 1 is a configuration diagram of a storage device according to an embodiment of the present invention, FIG. 2 is a flowchart of startup processing of a central processing unit according to this embodiment, and FIG.
The figure is a flowchart when updating data in this embodiment. 31... Data updating flag, 32... Other information, 33... Data update working storage area, 34... Data storage area.

Claims (1)

【特許請求の範囲】[Claims]  コンピュータの電源断等により中央処理装置が停止し
た場合のデータ領域保護方式において、データ更新中フ
ラグ情報ならびにデータ更新のアドレス等の情報、なら
びにデータ更新作業記憶領域情報を記憶しているバッテ
リ電源で保護されたバックアップ記憶部と、前記中央処
理装置の立上げ手段と、データの更新処理手段とを有し
、前記中央処理装置の一時停止が生じてもデータ内容を
保護することを特徴とするデータ領域保護方式。
In the data area protection method when the central processing unit stops due to a computer power cut, etc., it is protected by a battery power source that stores information such as data update flag information, data update address, and data update work storage area information. A data area comprising a backup storage unit, a means for starting up the central processing unit, and a data update processing means, the data area being characterized in that the data contents are protected even if the central processing unit is temporarily stopped. Protection method.
JP2167014A 1990-06-26 1990-06-26 Data area protection system Pending JPH0455927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2167014A JPH0455927A (en) 1990-06-26 1990-06-26 Data area protection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2167014A JPH0455927A (en) 1990-06-26 1990-06-26 Data area protection system

Publications (1)

Publication Number Publication Date
JPH0455927A true JPH0455927A (en) 1992-02-24

Family

ID=15841789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2167014A Pending JPH0455927A (en) 1990-06-26 1990-06-26 Data area protection system

Country Status (1)

Country Link
JP (1) JPH0455927A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5668726A (en) * 1993-12-17 1997-09-16 Nippondenso Co, Ltd. Data backup apparatus utilized in an electronic control system and data backup method performed in the data backup apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5668726A (en) * 1993-12-17 1997-09-16 Nippondenso Co, Ltd. Data backup apparatus utilized in an electronic control system and data backup method performed in the data backup apparatus

Similar Documents

Publication Publication Date Title
KR970062904A (en) Database recovery method using double-sided nonvolatile memory and method thereof
WO1998020419B1 (en) System and method for maintaining a logically consistent backup using minimal data transfer
JPH0455927A (en) Data area protection system
JPH06180674A (en) Data storage device
JPH0594356A (en) On-memory table data fault restoration system
JPH0340121A (en) Disk duplexing system
JPS62125452A (en) Data back-up system for storage device
JP2002351504A (en) Device for protecting control data
JPH03265951A (en) Trouble recovery type computer
JPH04307643A (en) Highly reliable file system
JPH0566951A (en) Computer system
JP2002268828A (en) Device for protecting and restoring hard disk data
JP4161362B2 (en) Computer system having data recovery function and data recovery method
JPH04118705A (en) Programmable controller
JPH06266598A (en) Information processor
JPS63262737A (en) Data base updating and recording processing method
JPH0424752A (en) Data protection system
JPH01106132A (en) Data processor
JPH02122350A (en) Memory write protection system
JPH04105159A (en) Work substitute system
JPH04112318A (en) Semiconductor storage
JPH01274258A (en) System for guaranteeing write on data memory device
JPH052518A (en) File system for secondary storage device
JPH03246636A (en) System for restoring local data of program
JPH04256006A (en) File restoring system