JP3346670B2 - Central processing unit switching method and switching system - Google Patents

Central processing unit switching method and switching system

Info

Publication number
JP3346670B2
JP3346670B2 JP04727695A JP4727695A JP3346670B2 JP 3346670 B2 JP3346670 B2 JP 3346670B2 JP 04727695 A JP04727695 A JP 04727695A JP 4727695 A JP4727695 A JP 4727695A JP 3346670 B2 JP3346670 B2 JP 3346670B2
Authority
JP
Japan
Prior art keywords
central processing
processing unit
switching
information
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP04727695A
Other languages
Japanese (ja)
Other versions
JPH08241222A (en
Inventor
宏之 中村
省治 香西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP04727695A priority Critical patent/JP3346670B2/en
Publication of JPH08241222A publication Critical patent/JPH08241222A/en
Application granted granted Critical
Publication of JP3346670B2 publication Critical patent/JP3346670B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、高信頼性を要求される
電子交換機や情報処理システム等の現用系と予備系の二
重化構成を有するシステムにおける中央処理装置の切り
替え方法及び切り替えシステムに係り、特に、装置の故
障発生に対し故障部位の特定に必要な高速かつ確実な中
央処理装置の切り替え方法及び切り替えシステムに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a switching method and a switching system for a central processing unit in a system having a duplex configuration of an active system and a standby system, such as an electronic exchange and an information processing system, which require high reliability. In particular, the present invention relates to a high-speed and reliable switching method and a switching system for a central processing unit necessary for specifying a failed portion when a device failure occurs.

【0002】[0002]

【従来の技術】従来より上記二重化構成を有するシステ
ムにおいて故障検出時に故障部位を特定する方法として
ローテーション法が周知である。ローテーション法と
は、故障検出に対して各種の装置構成パターンを順次再
構成し、最終的に正常系構成に組み込むことのできなか
った装置を故障部位として特定する方法である。
2. Description of the Related Art Conventionally, a rotation method has been well known as a method of specifying a failed part when a failure is detected in a system having the above-mentioned duplex configuration. The rotation method is a method in which various device configuration patterns are sequentially reconfigured for failure detection, and a device that cannot be finally incorporated into a normal system configuration is specified as a failure site.

【0003】図1は、ローテーション法による故障部位
の特定方法を説明する図である。運用時における正常系
構成では、中央処理装置#0と、入出力装置#0と、入
出力装置#1とが現用装置であり、中央処理装置#1は
熱予備状態である。ここで、故障が検出されると、最初
に、例えば、中央処理装置#0が熱予備状態に切り替え
られ、熱予備状態にあった中央処理装置#1が現用装置
に切り替えられ、異常時系構成#1が構成される。かか
る異常時系構成#1において、一定時間内に故障が発生
した場合に、別の異常時系構成#2に遷移する。例え
ば、現用状態にあった入出力装置#1を非現用状態に切
り替える。かかる異常時系構成#2においても、一定時
間内に故障が発生した場合には、例えば、入出力装置#
0を現用状態から非現用状態に切り替え、入出力装置#
1を非現用状態から現用状態に切り替え、異常時系構成
#3を構成する。かかる異常時系構成#3において、一
定時間経過の後に故障が発生していない場合に、この時
の系構成において非現用装置である入出力装置#0が故
障装置であるとみなし、かかる系構成を準正常系構成と
呼ぶ。
FIG. 1 is a diagram for explaining a method of specifying a failed part by a rotation method. In a normal system configuration during operation, the central processing unit # 0, the input / output device # 0, and the input / output device # 1 are active devices, and the central processing unit # 1 is in a thermal reserve state. Here, when a failure is detected, first, for example, the central processing unit # 0 is switched to the thermal standby state, and the central processing unit # 1 that was in the thermal standby state is switched to the active unit, and the abnormal time system configuration is changed. # 1 is configured. In the abnormal-time system configuration # 1, if a failure occurs within a certain period of time, a transition is made to another abnormal-time system configuration # 2. For example, the input / output device # 1 in the working state is switched to the non-working state. Even in the abnormal time system configuration # 2, if a failure occurs within a predetermined time, for example, the input / output device #
0 is switched from the working state to the non-working state, and the input / output device #
1 is switched from the non-working state to the working state, and an abnormal system configuration # 3 is formed. In the abnormal system configuration # 3, if no failure occurs after a certain period of time, the input / output device # 0, which is a non-active device, is regarded as a failed device in the system configuration at this time, and the system configuration Is called a quasi-normal system configuration.

【0004】上記ローテーション法において故障装置を
より正確かつ速やかに特定するためには、故障装置の攪
乱を受けない高速な中央処理装置の切り替えが必要とさ
れる。従来、高信頼性を要求される電子交換機や情報処
理システムにおける中央処理装置の切り替え方法として
二つの方法が知られている。第1の方法は、回路内のタ
イマを自律減算しタイマアンダーフロー時にソフトウェ
アの異常と判断し中央処理装置の現用系と予備系とを切
り替える回路を使用して、かかる回路を駆動してソフト
ウェアを固定点から再開する固定点再開方法である。上
記回路による系の切り替えは、ソフトウェアの走行に異
常が生じたことを意味するため、切り替え後の新しい現
用系では、メモリ上のプログラムの再初期設定を行な
う。
In order to specify a faulty device more accurately and quickly in the rotation method, it is necessary to switch the central processing unit at a high speed without being disturbed by the faulty device. Conventionally, two methods are known as a method of switching a central processing unit in an electronic exchange or an information processing system that requires high reliability. The first method is to autonomously decrement the timer in the circuit, determine that the software is abnormal when the timer underflows, and use a circuit for switching between the active system and the standby system of the central processing unit. This is a fixed point restart method for restarting from a fixed point. Switching of the system by the above-mentioned circuit means that an abnormality has occurred in the running of the software. Therefore, in the new working system after the switching, the program on the memory is reinitialized.

【0005】従来の中央処理装置の切り替えの第2の方
法は、ソフトウェアの初期設定を経由しない中断点再開
方法である。中断点再開方法によれば、中央処理装置内
のレジスタ情報等を現用系中央処理装置から予備系中央
処理装置に受け継ぎ、予備系中央処理装置を現用化し、
現用中央処理装置を予備系化する等の切り替え処理をソ
フトウェアで行なう。かかる中断点再開方法において、
ソフトウェアによって制御される上記の切り替え処理
は、例えば、現用系のバスと予備系のバスを接続するバ
ス交差装置等の故障被疑装置(故障が発生している可能
性のある装置)を駆動して行なう必要があるため、処理
の確実性の観点で問題がある。そこで、かかる確実性の
問題点を解決するために、中断点切り替えに必要となる
現用/予備系の属性の切り替えと、中断点アドレスの引
き継ぎとを行なう専用の交差回路が中央処理装置間に設
けられている。
A second conventional method for switching the central processing unit is a method of resuming an interruption point without going through software initialization. According to the interruption point resuming method, the register information and the like in the central processing unit are passed from the active central processing unit to the standby central processing unit, and the standby central processing unit is made active,
Switching processing such as making the current central processing unit a standby system is performed by software. In such an interruption point resumption method,
The above-described switching process controlled by software drives a suspected failure device (a device in which a failure may have occurred) such as a bus crossing device that connects an active bus and a standby bus. Since it needs to be performed, there is a problem from the viewpoint of the certainty of the processing. Therefore, in order to solve such a problem of certainty, a dedicated crossover circuit for switching the attributes of the working / standby system necessary for switching the interruption point and taking over the interruption point address is provided between the central processing units. Have been.

【0006】[0006]

【発明が解決しようとする課題】上記固定点再開方法で
は、ソフトウェアの全初期設定が必要となるため、切り
替え時にサービスの中断が長時間に及ぶという欠点があ
る。一方、上記中断点再開方法では、専用の交差回路を
設けることにより中央処理装置のハードウェア部品点数
が増加するため、中央処理装置自体の故障発生確率が高
まりシステムとしての信頼性が損なわれる。
The above fixed point resuming method has a disadvantage that the service is interrupted for a long time at the time of switching since all initial settings of software are required. On the other hand, in the above interruption point resuming method, since the number of hardware components of the central processing unit increases by providing the dedicated crossover circuit, the probability of occurrence of a failure of the central processing unit itself increases, and the reliability as a system is impaired.

【0007】本発明は、上記従来方法による問題点に鑑
み、サービスの中断時間の短い、専用の交差回路を必要
としない、確実性のある中央処理装置の切り替え方法の
提供を目的とする。本発明は他の面において、より信頼
性の高い中央処理装置の切り替え方法の提供を目的とす
る。
The present invention has been made in view of the above-mentioned problems of the conventional method, and has as its object to provide a reliable switching method of a central processing unit that requires a short service interruption time and does not require a dedicated cross circuit. Another object of the present invention is to provide a more reliable central processing unit switching method.

【0008】本発明の他の目的は、専用の交差回路を必
要とすることなく、短時間に確実な中央処理装置の切り
替えを行なう中央処理装置の切り替えシステムの提供す
ることである。
It is another object of the present invention to provide a central processing unit switching system that can reliably switch central processing units in a short time without requiring a dedicated cross circuit.

【0009】[0009]

【課題を解決するための手段】図2は本発明の原理を説
明するための切り替えシステムの略構成図である。本発
明の中央処理装置の切り替え方法は、現用系の第1の中
央処理装置10と;予備系の第2の中央処理装置10’
と;第1の中央処理装置10と第2の中央処理装置1
0’とに接続され、第1の中央処理装置10と第2の中
央処理装置10’との間で情報を伝達する情報伝達部3
0と;ソフトウェア的に制御されて第1の中央処理装置
を予備系に切り替え第2の中央処理装置を現用系に切り
替える切り替え回路20とからなる2重化システムにお
ける切り替え方法である。
FIG. 2 is a schematic block diagram of a switching system for explaining the principle of the present invention. The switching method of the central processing unit according to the present invention includes a first central processing unit 10 of an active system and a second central processing unit 10 ′ of a standby system.
The first central processing unit 10 and the second central processing unit 1
0 'and an information transmission unit 3 for transmitting information between the first central processing unit 10 and the second central processing unit 10'.
0: a switching method in a duplex system comprising a switching circuit 20 that switches the first central processing unit to the standby system under software control and switches the second central processing unit to the active system.

【0010】図3は本発明の原理説明図である。本発明
の中央処理装置の切り替え方法は、第1の中央処理装置
10において走行中のソフトウェアを中断して所定の切
り替えソフトウェアを起動する段階(ステップ10)
と、第1の中央処理装置10のレジスタ情報を情報伝達
部30に退避するレジスタ情報退避段階(ステップ2
0)と、第2の中央処理装置を現用系に切り替え、第1
の中央処理装置を予備系に切り替えるよう切り替え回路
20を駆動する段階(ステップ30)と、中断されたソ
フトウェアを継続的に起動させるよう退避されたレジス
タ情報を情報伝達部30から第2の中央処理装置10’
にロードする継続起動段階(ステップ40)とからな
る。
FIG. 3 is a diagram illustrating the principle of the present invention. In the switching method of the central processing unit of the present invention, the step of interrupting the running software in the first central processing unit 10 and starting predetermined switching software (step 10).
And a register information saving step of saving register information of the first central processing unit 10 to the information transmitting unit 30 (step 2).
0), the second central processing unit is switched to the active system, and the first
Driving the switching circuit 20 so as to switch the central processing unit to the standby system (step 30); and transmitting the saved register information from the information transmitting unit 30 to the second central processing unit so as to continuously start the interrupted software. Device 10 '
(Step 40).

【0011】本発明の中央処理装置の切り替え方法の他
の面において、上記レジスタ情報退避段階は、第1の中
央処理装置10の第1の識別情報を第2の中央処理装置
10’に引き継ぐため第1の識別情報を情報伝達部30
に退避する段階を更に有し、上記継続起動段階は、レジ
スタ情報を情報伝達部30から第2の中央処理装置1
0’にロードする前に情報伝達部30に引き継がれた第
1の識別情報と第2の中央処理装置10’の第2の識別
情報とを比較し、第1の識別情報と第2の識別情報が一
致していない場合に上記ソフトウェアを継続的に起動さ
せるよう情報伝達部30に引き継がれたレジスタ情報を
情報伝達部30から第2の中央処理装置10’にロード
し、第1の識別情報と第2の識別情報が一致している場
合に切り替え時にソフトウェア的なエラーが発生したこ
とを表わすエラー発生情報を設定しレジスタ情報を情報
伝達部30から復帰させる。
In another aspect of the switching method of the central processing unit according to the present invention, the register information saving step is for transferring the first identification information of the first central processing unit 10 to the second central processing unit 10 '. The first identification information is transmitted to the information transmitting unit 30
Further comprising the step of saving the register information from the information transmitting unit 30 to the second central processing unit 1.
Before loading the data to 0 ', the first identification information inherited by the information transmission unit 30 is compared with the second identification information of the second central processing unit 10', and the first identification information and the second identification information are compared. If the information does not match, the register information taken over by the information transmitting unit 30 is loaded from the information transmitting unit 30 to the second central processing unit 10 'so as to continuously start the software, and the first identification information is loaded. When the ID and the second identification information match, error occurrence information indicating that a software error has occurred at the time of switching is set, and the register information is returned from the information transmission unit 30.

【0012】その上、本発明の中央処理装置の切り替え
方法の他の面において、上記レジスタ情報退避段階は、
中央処理装置の切り替え中であるかどうかを表わす切り
替え情報を第2の中央処理装置10’に引き継ぐため切
り替え情報を情報伝達部30に退避する段階を更に有
し、上記継続起動段階は、レジスタ情報を情報伝達部3
0から第2の中央処理装置10’にロードする前に情報
伝達部30に引き継がれた切り替え情報によって中央処
理装置の切り替え中であるかどうかを判定し、切り替え
中である場合に上記ソフトウェアを継続的に起動させる
よう情報伝達部30に引き継がれたレジスタ情報を情報
伝達部30から第2の中央処理装置10’にロードし、
切り替え中ではない場合に上記ソフトウェアを含むソフ
トウェア全体の初期設定を行なう。
Further, in another aspect of the switching method of the central processing unit according to the present invention, the register information saving step includes:
The second central processing unit 10 'further includes a step of saving the switching information to the information transmitting unit 30 so that the switching information indicating whether or not the central processing unit is being switched is transferred to the second central processing unit 10'. Information transmission unit 3
Before loading from 0 to the second central processing unit 10 ′, it is determined whether or not the central processing unit is being switched based on the switching information passed to the information transmitting unit 30, and if the switching is being performed, the software is continued. The register information passed to the information transmitting unit 30 is loaded from the information transmitting unit 30 to the second central processing unit 10 ′ so as to be activated,
When the switching is not being performed, the initial setting of the entire software including the above software is performed.

【0013】[0013]

【作用】本発明の中央処理装置の切り替え方法によれ
ば、走行中のソフトウェアが中断されて所定の中央処理
装置の切り替えソフトウェアが起動され(ステップ1
0)、かかる切り替えソフトウェアによって、上記中断
された走行中ソフトウェアの状態を含む現用系中央処理
装置10の状態を表わす現用系中央処理装置10のレジ
スタ情報が情報伝達部30に退避され(ステップ2
0)、予備系中央処理装置10’はレジスタ情報を情報
伝達部30からロードすることができるので(ステップ
40)、専用の交差回路を設けることなく中断点アドレ
スの引き継ぎを行なうことができる。更に、上記切り替
えソフトウェアは、切り替え回路20を駆動する(ステ
ップ30)ので、現用/予備系の属性を切り替えるため
の専用の交差回路を用いる必要はない。
According to the switching method of the central processing unit of the present invention, the running software is interrupted and the switching software of the predetermined central processing unit is activated (step 1).
0), the register information of the active central processing unit 10 indicating the state of the active central processing unit 10 including the interrupted running software state is saved in the information transmitting unit 30 by the switching software (step 2).
0) Since the standby central processing unit 10 'can load the register information from the information transmitting unit 30 (step 40), the interruption point address can be taken over without providing a dedicated cross circuit. Further, since the switching software drives the switching circuit 20 (step 30), there is no need to use a dedicated crossing circuit for switching the attributes of the working / standby system.

【0014】本発明の中央処理装置の切り替え方法はそ
の他の面において、旧現用系の中央処理装置10を表わ
す第1の識別情報と、新現用系の中央処理装置10’を
表わす第2の識別情報とを比較する。かかる比較の結
果、第1及び第2の識別情報が一致している場合に、上
記切り替えソフトウェアによる切り替え処理中に、上記
切り替え回路20が別の要因で再度作動したことを検出
し、上記中断されたソフトウェアにその旨を通知し、中
断されていたソフトウェア側で適当な処理を行なうこと
ができるようになるので、切り替え処理の信頼性が向上
する。
In another aspect, the switching method of the central processing unit according to the present invention includes first identification information representing the old active central processing unit 10 and second identification information representing the new active central processing unit 10 '. Compare with information. As a result of the comparison, when the first and second identification information match, it is detected that the switching circuit 20 has been operated again due to another factor during the switching processing by the switching software, and the interruption is performed. The software that has been interrupted is notified of the fact and appropriate processing can be performed on the software that has been interrupted, thereby improving the reliability of the switching processing.

【0015】更に、本発明の中央処理装置の切り替え方
法は、旧現用系の中央処理装置10において上記切り替
えソフトウェアによる切り替え中であるかどうかを表わ
す切り替え情報を情報伝達部30に退避し、新現用系の
中央処理装置10において引き継がれた切り替え情報に
よって中央処理装置の切り替え中であるかどうかを判定
し、上記切り替えソフトウェア以外の要因によって上記
切り替え回路20が駆動された場合を検出し、中断され
たソフトウェアを含むソフトウェアの全体を初期設定す
ることができるので、切り替え処理の信頼性が向上す
る。
Further, in the switching method of the central processing unit of the present invention, the switching information indicating whether or not the switching is being performed by the switching software in the old active central processing unit 10 is saved in the information transmitting unit 30, and the new active processing is performed. It is determined whether the switching of the central processing unit is being performed based on the switching information taken over by the central processing unit 10 of the system, the case where the switching circuit 20 is driven by a factor other than the switching software is detected, and the processing is interrupted. Since the entire software including the software can be initialized, the reliability of the switching process is improved.

【0016】[0016]

【実施例】以下に図面と共に本発明の中央処理装置の切
り替え方法及び切り替えシステムについて詳細に説明す
る。図4は本発明の中央処理装置の切り替えシステムの
構成図である。切り替えシステムは、現用系の第1の中
央処理装置10と、予備系の第2の中央処理装置10’
と、ソフトウェアの走行状態の異常を検知し第1の中央
処理装置10を予備系に切り替え第2の中央処理装置1
0’を現用系に切り替える切り替え回路20とを有す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A switching method and a switching system of a central processing unit according to the present invention will be described below in detail with reference to the drawings. FIG. 4 is a configuration diagram of the switching system of the central processing unit of the present invention. The switching system includes an active first central processing unit 10 and a standby second central processing unit 10 ′.
The first central processing unit 10 is switched to the standby system by detecting an abnormality in the running state of the software, and the second central processing unit 1
A switching circuit 20 for switching 0 'to the active system.

【0017】上記切り替えシステムは、第1の中央処理
装置10と第2の中央処理装置10’に接続されて第1
の中央処理装置10から第2の中央処理装置10’に引
き継がれる情報を記憶する記憶部30を更に有する。第
1の中央処理装置10はレジスタ情報、例えば、中央処
理装置10内のLSIのレジスタ情報を記憶部30に退
避し、第1の中央処理装置10を予備系に切り替え、第
2の中央処理装置10’を現用系に切り替える切り替え
回路20を駆動する退避・回路駆動部12を有する。上
記切り替え回路20によって予備系から現用系に切り替
えられた第2の中央処理装置10’は、記憶部30に退
避されたレジスタ情報をロードするロード部14を有す
る。
The switching system is connected to a first central processing unit 10 and a second central processing unit 10 ',
The storage unit 30 further stores information passed from the central processing unit 10 to the second central processing unit 10 ′. The first central processing unit 10 saves the register information, for example, the register information of the LSI in the central processing unit 10 into the storage unit 30, switches the first central processing unit 10 to the standby system, and It has an evacuation / circuit driving unit 12 that drives a switching circuit 20 that switches 10 ′ to the active system. The second central processing unit 10 ′ switched from the standby system to the active system by the switching circuit 20 has a load unit 14 for loading the saved register information into the storage unit 30.

【0018】以下に、上記記憶部30をより詳細に説明
する。図4に示す如く、記憶部30は、第1の中央処理
装置10がアクセスする第1のメモリ32と、第2の中
央処理装置10’がアクセスする第2のメモリ34と、
第1の中央処理装置10によって第1のメモリ32に書
き込まれるデータを第2のメモリ34に書き込むための
書込み回路36とからなる。上記書込み回路36は、第
1のメモリ32と第2のメモリを常に同一に保つ機能を
有する回路であることが好ましく、例えば、現用系であ
る第1のメモリ32の内容を熱予備状態にある第2のメ
モリ36に複写する機能と、プロセッサから現用系メモ
リ32への書込みを熱予備状態メモリ36に書き込む機
能を具備する回路(以下では、メモリ交差回路と呼
ぶ。)である。
Hereinafter, the storage unit 30 will be described in more detail. As shown in FIG. 4, the storage unit 30 includes a first memory 32 accessed by the first central processing unit 10, a second memory 34 accessed by the second central processing unit 10 ′,
A writing circuit 36 for writing data written to the first memory 32 by the first central processing unit 10 to the second memory 34; The writing circuit 36 is preferably a circuit having a function of always keeping the first memory 32 and the second memory the same. For example, the contents of the first memory 32, which is the active system, are in a thermal reserve state. A circuit having a function of copying to the second memory 36 and a function of writing data from the processor to the active memory 32 to the thermal standby state memory 36 (hereinafter, referred to as a memory crossing circuit).

【0019】上記切り替え回路20は、ソフトウェア的
に制御されて第1の中央制御装置10を現用系から予備
系に切り替え、第2の中央制御装置10’を予備系から
現用系に切り替える回路であり、例えば、ソフトウェア
から一定時間内にアクセスが無い場合に切り替えを行な
う回路が好ましい。切り替え回路20は、特に、自律的
に減算するタイマを有し、タイマがタイマアンダーフロ
ーする際にソフトウェアの走行状態の異常を検知し、現
用系装置を予備系に切り替え予備系装置を現用系に切り
替え、現用系に切り替えられる中央処理装置をメモリの
固定番地から起動させる回路(以下では、EMA回路と
呼ぶ。)であることが好ましい。
The switching circuit 20 is controlled by software to switch the first central control unit 10 from the active system to the standby system and to switch the second central control unit 10 'from the standby system to the active system. For example, a circuit that switches when there is no access from software within a predetermined time is preferable. The switching circuit 20 has, in particular, a timer for autonomously decrementing, detects an abnormality in the running state of software when the timer underflows, switches the active device to the standby system, and switches the standby device to the active system. It is preferable to use a circuit (hereinafter, referred to as an EMA circuit) that starts the central processing unit that can be switched to the active system from a fixed address of the memory.

【0020】上記の説明では、第1の中央処理装置10
は退避・回路駆動部12からなり、第2の中央処理装置
10’はロード部14からなるものとして説明している
が、第1の中央処理装置10と第2の中央処理装置1
0’は、退避・回路駆動部12とロード部14の両方を
有していてもよい。この場合の構成において、最初に、
第2の中央処理装置10’が現用系であり、第1の中央
処理装置10は予備系である。
In the above description, the first central processing unit 10
Is described as comprising the save / circuit drive unit 12 and the second central processing unit 10 'is composed of the load unit 14, but the first central processing unit 10 and the second central processing unit 1
0 'may have both the save / circuit drive unit 12 and the load unit 14. In the configuration in this case, first,
The second central processing unit 10 'is an active system, and the first central processing unit 10 is a standby system.

【0021】図5は本発明の一実施例による中央処理装
置の切り替えシステムのハードウェア構成図である。現
用系側装置は、中央処理装置10と、入出力装置50
と、中央処理装置10と入出力装置50とが接続される
バス52とから構成され、予備系側装置は、中央処理装
置10’と、入出力装置50’、中央処理装置10’と
入出力装置50’とが接続されるバス52’とから構成
される。中央処理装置10は、マイクロプロセッサ(M
PU)100と、メモリ(MM)102と、マイクロプ
ロセッサ100とメモリ102との間に接続されメモリ
102へのアクセスを行なうメモリアクセス回路(MA
C)104と、メモリ102と予備系側装置とを接続す
るメモリ交差回路(MXC)106と、マイクロプロセ
ッサ100と予備系側装置との間に接続され現用系と予
備系とを切り替える切り替え回路(EMA)108と、
バス52とのインタフェースを果たすバスインタフェー
ス制御回路(BIC)110とから構成される。ここ
で、メモリ交差回路とは、上記の如く、現用系と予備系
の両方の系のメモリ内容を常に同一にするよう、現用系
メモリの内容を熱予備状態メモリに複写する機能と、マ
イクロプロセッサからのメモリ書込みに応じて熱予備状
態メモリに書込み機能を具備する回路である。同様に、
中央処理装置10’は、マイクロプロセッサ(MPU)
100’と、メモリ(MM)102’と、メモリアクセ
ス回路(MAC)104’と、メモリ交差回路(MX
C)106’と、切り替え回路(EMA)108’と、
バスインタフェース制御回路(BIC)110’とから
構成される。
FIG. 5 is a hardware configuration diagram of a central processing unit switching system according to an embodiment of the present invention. The active system side device includes a central processing unit 10 and an input / output device 50.
And a bus 52 to which the central processing unit 10 and the input / output device 50 are connected. The standby system side device includes a central processing unit 10 ′, an input / output device 50 ′, and a central processing unit 10 ′. And a bus 52 'to which the device 50' is connected. The central processing unit 10 includes a microprocessor (M
PU) 100, a memory (MM) 102, and a memory access circuit (MA) connected between the microprocessor 100 and the memory 102 for accessing the memory 102.
C) 104, a memory crossover circuit (MXC) 106 for connecting the memory 102 and the standby system side device, and a switching circuit connected between the microprocessor 100 and the standby side device for switching between the active system and the standby system ( EMA) 108;
And a bus interface control circuit (BIC) 110 that performs an interface with the bus 52. Here, the memory crossing circuit is, as described above, a function of copying the contents of the active system memory to the thermal standby state memory so that the memory contents of both the active system and the standby system are always the same. This is a circuit having a function of writing to the thermal standby state memory in response to a memory write from the memory. Similarly,
The central processing unit 10 'is a microprocessor (MPU)
100 ′, a memory (MM) 102 ′, a memory access circuit (MAC) 104 ′, and a memory cross circuit (MX)
C) 106 ′, a switching circuit (EMA) 108 ′,
And a bus interface control circuit (BIC) 110 '.

【0022】以下に、本発明の一実施例におけるアプリ
ケーションプログラムの中断点再開方法について図6を
参照して説明する。上記中央処理装置10及び10’に
は、ハードウェアの制御手段をアプリケーションプログ
ラムに提供するオペレーティングシステム(OS)が組
み込まれている。アプリケーションプログラムは、中央
処理装置の切り替えシステムコールを起動することによ
り、中央処理装置の切り替えを要求する。以下に詳細に
説明するかかるシステムコールは、中央処理装置の切り
替えを行ない、中断点再開方法に基づいてアプリケーシ
ョンプログラムを再起動する。即ち、上記システムコー
ルは、システムコールの発生前の中央処理装置の状態を
旧現用系中央処理装置10から新現用系中央処理装置1
0’に引き継ぎ、システムコール起動直後の命令に復帰
することにより、アプリケーションプログラムの中断点
再開を実現する。
Hereinafter, a method of resuming an interruption point of an application program according to an embodiment of the present invention will be described with reference to FIG. An operating system (OS) that provides hardware control means to an application program is incorporated in the central processing units 10 and 10 ′. The application program requests the switching of the central processing unit by activating the central processing unit switching system call. Such a system call, which will be described in detail below, switches the central processing unit and restarts the application program based on the interruption point restart method. That is, the system call changes the state of the central processing unit before the occurrence of the system call from the old active central processing unit 10 to the new active central processing unit 1.
By taking over to 0 'and returning to the instruction immediately after the start of the system call, the interruption point of the application program is resumed.

【0023】次いで、本発明の一実施例における切り替
えシステムコールの動作を図7に示すシステムコールの
フローチャートを参照して説明する。最初に、中央処理
装置内情報の引き継ぎのためにレジスタ情報をメモリ上
にコピーする(ステップ100)。上記のメモリ交差回
路106,106’を用いることにより、予備系のメモ
リ102’は常に現用系メモリ102と同一の内容を保
持している。即ち、現用系メモリ102へのライトアク
セスによって熱予備系メモリ102’へのライトが行な
われる。系の切り替えの前に現用系中央処理装置10に
おいて、中央処理装置10内のレジスタ情報を現用系メ
モリ102にセーブすることにより、かかるレジスタ情
報が熱予備系メモリ102’に書き込まれ、現用系メモ
リ102と同一の内容が反映される。ここで、中央処理
装置10内のLSIのレジスタ情報のセーブは、MPU
のプログラムカウンタ(PC)を除いて、レジスタのリ
ードの結果をメモリ上の特定領域にセーブすることによ
り行なわれる。一方、プログラムカウンタについては、
切り替えシステムコールを正常に終了させるプログラム
の先頭アドレスをセーブする。
Next, the operation of the switching system call in one embodiment of the present invention will be described with reference to the flowchart of the system call shown in FIG. First, the register information is copied onto the memory to take over the information in the central processing unit (step 100). By using the above memory crossing circuits 106 and 106 ', the standby memory 102' always holds the same contents as the active memory 102. That is, a write access to the active memory 102 'causes a write to the thermal standby memory 102'. Before switching the system, the active central processing unit 10 saves the register information in the central processing unit 10 in the active memory 102, so that the register information is written into the thermal standby memory 102 ′, The same content as 102 is reflected. Here, saving of the register information of the LSI in the central processing unit 10 is performed by the MPU.
, Except for the program counter (PC), the result of reading the register is saved in a specific area on the memory. On the other hand, for the program counter,
Save the start address of the program that normally ends the switching system call.

【0024】次いで、EMA回路108を起動する(ス
テップ110)。EMA回路108の起動は、一定時間
EMA回路108内のタイマリセットを行なわずにルー
プ処理すること(スピンウェイト)により実現される。
一定時間を超過してもEMA回路が起動されない場合、
即ち、ループ処理直後のプログラムが実行される場合に
は、システムコールプログラムをエラー終了させること
が好ましい。
Next, the EMA circuit 108 is started (step 110). The activation of the EMA circuit 108 is realized by performing a loop process (spin wait) without resetting the timer in the EMA circuit 108 for a fixed time.
If the EMA circuit is not activated after a certain period of time,
That is, when the program immediately after the loop processing is executed, it is preferable that the system call program be terminated with an error.

【0025】EMA回路108,108’の起動により
中央処理装置の切り替えがハードウェア及びファームウ
ェアによって行なわれる(ステップ120)。この時点
で、メモリの2重書き、即ち、現用系メモリへのライト
アクセスによる予備系メモリへのライトを停止状態にす
る(ステップ130)。かかる中央処理装置の切り替え
によって、予備系から現用系に切り替えられた新現用系
中央処理装置10’はそのメモリ102’の固定番地か
ら起動され、実行を開始する(ステップ140)。
The activation of the EMA circuits 108, 108 'causes the central processing unit to be switched by hardware and firmware (step 120). At this point, the dual writing of the memory, that is, the writing to the standby memory by the write access to the active memory is stopped (step 130). With the switching of the central processing unit, the new active central processing unit 10 'switched from the standby system to the active system is started from the fixed address of the memory 102' and starts executing (step 140).

【0026】最後に新現用系中央処理装置10’におい
て、上記ステップ100でセーブされた旧現用系中央処
理装置10のレジスタ情報を復帰する(ステップ15
0)。即ち、メモリ102’にセーブされたレジスタ情
報を新現用系中央処理装置10’内LSIの対応するレ
ジスタにロードする。系が切り替えられた後に旧予備系
メモリの内容を中央処理装置内レジスタにロードするこ
とにより、中央処理装置内情報の引き継ぎが行なわれ
る。上記ステップ130で中断されたメモリの2重書き
は、メモリ交差回路106’のLSIの各レジスタを再
ロードすることによって再開される。プログラムカウン
タに関しては、ステップ130で先頭アドレスのセーブ
された切り替えシステムコールの正常終了プログラムを
起動して、切り替えシステムコールを発行したアプリケ
ーションプログラムへ復帰する。
Finally, in the new active central processing unit 10 ', the register information of the old active central processing unit 10 saved in step 100 is restored (step 15).
0). That is, the register information saved in the memory 102 'is loaded into the corresponding register of the LSI in the new active central processing unit 10'. After the system is switched, the contents of the old spare system memory are loaded into the register in the central processing unit, whereby the information in the central processing unit is taken over. The double writing of the memory suspended in the above step 130 is restarted by reloading each register of the LSI of the memory crossing circuit 106 '. With respect to the program counter, the normal end program of the switching system call whose head address was saved in step 130 is started, and the program returns to the application program which issued the switching system call.

【0027】以上の説明の如く、本発明の一実施例によ
れば、専用の交差回路を用いることなく、走行中のアプ
リーケーションプログラムが中断されて所定の中央処理
装置の切り替えシステムコールが起動され、かかる切り
替えシステムコールによって、中断されたアプリケーシ
ョンプログラムの状態を含む現用系中央処理装置10の
状態を表わす現用系中央処理装置10のレジスタ情報が
切り替え後の新現用系中央処理装置10’に引き継が
れ、中断されたアプリケーションプログラムが再開され
る。
As described above, according to one embodiment of the present invention, a running application program is interrupted and a predetermined central processing unit switching system call is activated without using a dedicated crossover circuit. By the switching system call, the register information of the active central processing unit 10 indicating the state of the active central processing unit 10 including the state of the interrupted application program is taken over by the new active central processing unit 10 'after the switching. Then, the suspended application program is resumed.

【0028】図8は本発明の他の一実施例による切り替
えシステムコールの動作フローチャートを示す図であ
る。かかる本発明の他の一実施例による切り替えシステ
ムコールは、切り替えシステムコールの起動に基づく中
央処理装置の切り替えであるかどうかを判定し、さら
に、切り替えシステムコールによる中央処理装置の切り
替えが成功したかどうかを判定する。同図において、図
7に示す動作フローチャートのステップに付けられた参
照番号と同じ参照番号を付けられたステップは、図7の
ステップと同じ機能を果たしている。
FIG. 8 is a flowchart showing an operation of a switching system call according to another embodiment of the present invention. The switching system call according to another embodiment of the present invention determines whether the central processing unit is switched based on the activation of the switching system call, and further determines whether the switching of the central processing unit by the switching system call is successful. Determine whether In the figure, the steps denoted by the same reference numbers as the steps in the operation flowchart shown in FIG. 7 perform the same functions as the steps in FIG.

【0029】最初に、中央処理装置内情報の引き継ぎの
ためにレジスタ情報をメモリ上にコピーする(ステップ
100)。次いで、現用系中央処理装置10の識別情
報、即ち、いずれの装置が現用系であるかを表わす情
報、例えば、装置番号をメモリ102上の特定アドレス
にセーブする(ステップ102)。メモリ102にセー
ブされた情報と同一の内容は、前述した如く、メモリ1
02’に書き込まれる。
First, the register information is copied onto the memory to take over the information in the central processing unit (step 100). Next, the identification information of the active system central processing unit 10, that is, information indicating which device is the active system, for example, the device number, is saved at a specific address on the memory 102 (step 102). The same contents as the information saved in the memory 102 are stored in the memory 1 as described above.
02 '.

【0030】切り替えシステムコールが起動されたこと
を示す系切り替え中データをメモリ102上の特定アド
レスに設定する(ステップ104)。この系切り替え中
データは、前述の如く、メモリ102’に反映される。
次いで、一定時間EMA回路108内のタイマリセット
を行なわずにループ処理すること(スピンウェイト)に
よりEMA回路108を起動する(ステップ110)。
The system switching data indicating that the switching system call has been activated is set to a specific address on the memory 102 (step 104). The data during system switching is reflected in the memory 102 'as described above.
Next, the EMA circuit 108 is started by performing a loop process (spin wait) without resetting the timer in the EMA circuit 108 for a predetermined time (step 110).

【0031】EMA回路108,108’の起動により
中央処理装置の切り替えがハードウェア及びファームウ
ェアによって行なわれる(ステップ120)。この時点
で、メモリの2重書きを停止状態にする(ステップ13
0)。かかる中央処理装置の切り替えによって、予備系
から現用系に切り替えられた新現用系中央処理装置1
0’はそのメモリ102’の固定番地から起動され、実
行を開始する(ステップ140)。
The activation of the EMA circuits 108, 108 'causes the central processing unit to be switched by hardware and firmware (step 120). At this point, the double writing of the memory is stopped (step 13).
0). By switching the central processing unit, the new active central processing unit 1 is switched from the standby system to the active system.
0 'is activated from the fixed address of the memory 102' and starts executing (step 140).

【0032】上記ステップ104でセーブされた系切り
替え中データを読み出し、切り替えシステムコールによ
る中央処理装置切り替えであるか、ソフトウェアの走行
時の異常に起因する切り替えであるかを判定する(ステ
ップ142)。切り替えシステムコールに起因する場
合、上記の系切り替え中データを非系切り替え中状態に
再設定してステップ146に進む。ソフトウェアの異常
に起因する切り替えである場合には、オペレーティング
システムの初期化を起動(固定点再開)して切り替えシ
ステムコールの処理を終了する(ステップ144)。
The system switching data saved in step 104 is read, and it is determined whether the switching is due to a central processing unit switching by a switching system call or a switching due to an abnormality during running of the software (step 142). If it is caused by the switching system call, the above data during system switching is reset to the non-system switching state, and the process proceeds to step 146. If the switching is due to a software error, the initialization of the operating system is started (fixed point restart), and the processing of the switching system call is terminated (step 144).

【0033】中央装置の切り替えが切り替えシステムコ
ールに起因する場合には、上記ステップ102でセーブ
された旧現用系中央処理装置の装置番号と、切り替え後
の新現用系中央処理装置の装置番号とを比較する(ステ
ップ146)。旧現用系中央処理装置と切り替え後の新
現用系中央処理装置の装置番号が一致している場合は、
ステップ144に進む。一致していない場合は、ステッ
プ150に進む。
If the switching of the central unit is caused by the switching system call, the unit number of the old active central processing unit saved in step 102 and the unit number of the new active central processing unit after the switching are changed. A comparison is made (step 146). If the old active central processing unit and the new active central processing unit after switching have the same unit number,
Proceed to step 144. If they do not match, the process proceeds to step 150.

【0034】旧現用系中央処理装置と新現用系中央処理
装置の装置番号が一致している場合、前述のEMA回路
の起動(ステップ110)から系切り替えの判定(ステ
ップ142)までの処理の間に、EMA回路が起動され
て中央処理装置の切り替えが行なわれ、切り替えシステ
ムコールによる中央処理装置の切り替えが正常に行なわ
れなかったと判断し、切り替えシステムコールがエラー
終了した旨のエラー情報を設定し(ステップ148)、
旧中央処理装置のレジスタ情報を復帰する(ステップ1
50)。
When the device numbers of the old active central processing unit and the new active central processing unit match, during the processing from the above-described activation of the EMA circuit (step 110) to the determination of system switching (step 142). Then, the EMA circuit is activated, the central processing unit is switched, and it is determined that switching of the central processing unit by the switching system call has not been performed normally, and error information indicating that the switching system call has ended in error is set. (Step 148),
Restore the register information of the old central processing unit (Step 1)
50).

【0035】旧現用系中央処理装置と新現用系中央処理
装置の装置番号が一致していない場合、切り替えシステ
ムコールによる中央処理装置の切り替えが正常に行なわ
れたと判断し、旧中央処理装置のレジスタ情報を復帰す
る(ステップ150)。上記本発明の他の一実施例によ
れば、旧現用系の中央処理装置を表わす装置番号と、新
現用系の中央処理装置を表わす装置番号とを比較し、切
り替えシステムコールによる切り替え処理中に、EMA
回路が別の要因で再度作動したかどうかを判定し、判定
結果をアプリケーションプログラムに通知することがで
きるので、切り替えシステムコールに基づく切り替え処
理の信頼性が向上する。
If the unit numbers of the old active central processing unit and the new active central processing unit do not match, it is determined that the switching of the central processing unit by the switching system call has been normally performed, and the register of the old central processing unit is determined. The information is restored (step 150). According to another embodiment of the present invention, the device number representing the old active central processing unit is compared with the device number representing the new active central processing unit, and during the switching process by the switching system call, , EMA
Since it is possible to determine whether or not the circuit has been operated again due to another factor, and to notify the application program of the determination result, the reliability of the switching process based on the switching system call is improved.

【0036】更に、切り替えシステムコールによる切り
替え中であることを示す情報を旧現用系の中央処理装置
から新現用系の中央処理装置に引き継ぐことによって、
上記切り替えシステムコール以外の要因によって上記E
MA回路が駆動された場合を検出し、中断されたアプリ
ケーションプログラムを含むソフトウェアの全体を初期
設定することができるので切り替え処理の信頼性が向上
する。
Further, information indicating that switching is being performed by the switching system call is transferred from the old active central processing unit to the new active central processing unit.
Due to factors other than the above switching system call,
Since the case where the MA circuit is driven can be detected and the entire software including the interrupted application program can be initialized, the reliability of the switching process is improved.

【0037】尚、上記本発明の他の実施例において、切
り替えシステムコールの動作は、現用系中央処理装置の
レジスタ情報、装置番号、系切り替え中データの順にメ
モリにセーブする場合について説明しているが、レジス
タ情報、装置番号、系切り替え中データをセーブする順
序はかかる例に示された順序に限定されるものではな
い。
In the other embodiment of the present invention, the operation of the switching system call is described for the case where the register information of the active central processing unit, the device number, and the data during the system switching are saved in the memory in this order. However, the order of saving the register information, the device number, and the data during system switching is not limited to the order shown in the example.

【0038】[0038]

【発明の効果】上記の如く、本発明によれば、ソフトウ
ェアの走行時の異常を検出する切り替え回路を利用して
中央処理装置を切り替えることによって専用の交差回路
を追加する必要がなくなり、中央処理装置以外の装置の
故障に起因する切り替えを行なう際に、切り替え処理に
失敗する可能性が低減され、切り替えの確実性が向上す
る。従って、高速なローテーション法による故障装置の
特定が可能となる。
As described above, according to the present invention, it is not necessary to add a dedicated crossover circuit by switching the central processing unit by using a switching circuit for detecting an abnormality during running of the software. When switching is performed due to a failure of a device other than the device, the possibility of failure in the switching process is reduced, and the reliability of the switching is improved. Therefore, the faulty device can be specified by the high-speed rotation method.

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

【図1】故障装置を特定するローテーション法の説明図
である。
FIG. 1 is an explanatory diagram of a rotation method for specifying a faulty device.

【図2】本発明の原理を説明するための切り替えシステ
ムの略構成図である。
FIG. 2 is a schematic configuration diagram of a switching system for explaining the principle of the present invention.

【図3】本発明の原理説明図である。FIG. 3 is a diagram illustrating the principle of the present invention.

【図4】本発明の中央処理装置の切り替えシステムの構
成図である。
FIG. 4 is a configuration diagram of a switching system of a central processing unit of the present invention.

【図5】本発明の一実施例による中央処理装置の切り替
えシステムの構成図である。
FIG. 5 is a configuration diagram of a switching system of a central processing unit according to an embodiment of the present invention.

【図6】本発明の一実施例による中断点再開法の概念を
説明する図である。
FIG. 6 is a diagram for explaining the concept of the interruption point resuming method according to one embodiment of the present invention.

【図7】本発明の一実施例による切り替えシステムコー
ルの動作フローチャートである。
FIG. 7 is an operation flowchart of a switching system call according to an embodiment of the present invention.

【図8】本発明の他の一実施例による切り替えシステム
コールの動作フローチャートである。
FIG. 8 is an operation flowchart of a switching system call according to another embodiment of the present invention.

【符号の説明】[Explanation of symbols]

10,10’ 中央処理装置 12 退避・回路駆動部 14 ロード部 20 切り替え回路 30 情報伝達部 32,36,102,102’ メモリ 34 書込み回路 50,50’ 入出力装置 52,52’ バス 100,100’ マイクロプロセッサ 104,104’ メモリアクセス回路 106,106’ メモリ交差回路 108,108’ EMA回路 110,110’ バスインタフェース回路 10, 10 'central processing unit 12 save / circuit drive unit 14 load unit 20 switching circuit 30 information transmission unit 32, 36, 102, 102' memory 34 write circuit 50, 50 'input / output device 52, 52' bus 100, 100 'Microprocessor 104, 104' Memory access circuit 106, 106 'Memory crossing circuit 108, 108' EMA circuit 110, 110 'Bus interface circuit

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/16 - 11/20 G06F 15/16 - 15/177 H04M 3/22 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 11/16-11/20 G06F 15/16-15/177 H04M 3/22

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 現用系の第1の中央処理装置と、予備系
の第2の中央処理装置と、該第1の中央処理装置と該第
2の中央処理装置との情報伝達部と、ソフトウェア的に
制御されて該第1の中央処理装置を予備系に切り替え該
第2の中央処理装置を現用系に切り替える切り替え回路
と、を含む2重化システムにおける中央処理装置の切り
替え方法において、 該第1の中央処理装置において走行中のソフトウェアを
中断して所定の切り替えソフトウェアを起動する段階
と、 該第1の中央処理装置のレジスタ情報を該情報伝達部に
退避するレジスタ情報退避段階と、 該第2の中央処理装置を現用系に切り替え、該第1の中
央処理装置を予備系に切り替えるよう該切り替え回路を
駆動する段階と、 該中断されたソフトウェアを継続的に起動させるよう該
退避されたレジスタ情報を該情報伝達部から該第2の中
央処理装置にロードする継続起動段階と、 を有し、 該レジスタ情報退避段階は、該第1の中央処理装置の第
1の識別情報を該情報伝達部に退避する段階を含み、 該継続起動段階は、該レジスタ情報を該情報伝達部から
該第2の中央処理装置にロードする前に該情報伝達部に
引き継がれた該第1の識別情報と該第2の中央処理装置
の第2の識別情報とを比較し、該第1の識別情報と該第
2の識別情報が一致していない場合に前記ソフトウェア
を継続的に起動させるよう該情報伝達部に引き継がれた
該レジスタ情報を該情報伝達部から該第2の中央処理装
置にロードし、該第1の識別情報と該第2の識別情報が
一致している場合に切り替え時にソフトウェア的なエラ
ーが発生したことを表わすエラー発生情報を設定し該レ
ジスタ情報を該情報伝達部から復帰させる、 中央処理装置の切り替え方法。
A first central processing unit of an active system, a second central processing unit of a standby system, an information transmission unit between the first central processing unit and the second central processing unit, and software And a switching circuit for switching the first central processing unit to the standby system under control of the first central processing unit and the second central processing unit to the active system. Interrupting running software in one central processing unit to start predetermined switching software; register information saving step of saving register information of the first central processing unit to the information transmitting unit; Driving the switching circuit to switch the second central processing unit to the active system and switch the first central processing unit to the standby system; and continuously activating the interrupted software. Loading the saved register information from the information transmission unit to the second central processing unit. The register information saving stage includes a first identification of the first central processing unit. Evacuating information to the information transmitting unit, wherein the continuation start-up step includes the step of taking over the register information taken over by the information transmitting unit before loading the register information from the information transmitting unit to the second central processing unit. The first identification information is compared with the second identification information of the second central processing unit, and if the first identification information does not match the second identification information, the software is continuously started. Loading the register information passed to the information transmitting unit from the information transmitting unit to the second central processing unit so that the first identification information and the second identification information match. When a software error occurs during switching A method of switching a central processing unit, comprising setting error occurrence information to be represented and returning the register information from the information transmitting unit.
【請求項2】 現用系の第1の中央処理装置と、予備系
の第2の中央処理装置と、該第1の中央処理装置と該第
2の中央処理装置との情報伝達部と、ソフトウェア的に
制御されて該第1の中央処理装置を予備系に切り替え該
第2の中央処理装置を現用系に切り替える切り替え回路
と、を含む2重化システムにおける中央処理装置の切り
替え方法において、 該第1の中央処理装置において走行中のソフトウェアを
中断して所定の切り替えソフトウェアを起動する段階
と、 該第1の中央処理装置のレジスタ情報を該情報伝達部に
退避するレジスタ情報退避段階と、 該第2の中央処理装置を現用系に切り替え、該第1の中
央処理装置を予備系に切り替えるよう該切り替え回路を
駆動する段階と、 該中断されたソフトウェアを継続的に起動させるよう該
退避されたレジスタ情報を該情報伝達部から該第2の中
央処理装置にロードする継続起動段階と、 を有し、 該レジスタ情報退避段階は、中央処理装置の切り替え中
であるかどうかを表わす切り替え情報を該情報伝達部に
退避する段階を含み、 該継続起動段階は、該レジスタ情報を該情報伝達部から
該第2の中央処理装置にロードする前に該情報伝達部に
引き継がれた該切り替え情報によって中央処理装置の切
り替え中であるかどうかを判定し、切り替え中である場
合に該ソフトウェアを継続的に起動させるよう該情報伝
達部に引き継がれた該レジスタ情報を該情報伝達部から
該第2の中央処理装置にロードし、切り替え中ではない
場合に該ソフトウェアを含むソフトウェア全体の初期設
定を行う、 中央処理装置の切り替え方法。
2. An active first central processing unit, a standby second central processing unit, an information transmission unit between the first central processing unit and the second central processing unit, and software And a switching circuit for switching the first central processing unit to the standby system under control of the first central processing unit and the second central processing unit to the active system. Interrupting running software in one central processing unit to start predetermined switching software; register information saving step of saving register information of the first central processing unit to the information transmitting unit; Driving the switching circuit to switch the second central processing unit to the active system and switch the first central processing unit to the standby system; and continuously activating the interrupted software. Loading the saved register information from the information transmitting unit to the second central processing unit. The register information saving stage indicates whether the central processing unit is being switched. Evacuating switching information to the information transmitting unit, wherein the continuation start-up step is performed by the information transmitting unit before the register information is loaded from the information transmitting unit to the second central processing unit. It is determined whether or not the central processing unit is being switched based on the switching information, and when the switching is being performed, the register information passed to the information transmitting unit is transmitted from the information transmitting unit to the software so as to continuously start the software. A method for switching a central processing unit, wherein the method is loaded into a second central processing unit, and initializes the entire software including the software when the switching is not being performed.
【請求項3】 前記レジスタ情報退避段階は、前記第1
の中央処理装置の第1の識別情報を前記情報伝達部に退
避する段階を更に含み、 前記継続起動段階は、前記レジスタ情報を前記情報伝達
部から前記第2の中央処理装置にロードする前に前記情
報伝達部に引き継がれた該第1の識別情報と前記第2の
中央処理装置の第2の識別情報とを比較し、該第1の識
別情報と該第2の識別情報が一致していない場合に前記
ソフトウェアを継続的に起動させるよう前記情報伝達部
に引き継がれた前記レジスタ情報を前記情報伝達部から
前記第2の中央処理装置にロードし、前記第1の識別情
報と前記第2の識別情報が一致している場合に切り替え
時にソフトウェア的なエラーが発生したことを表わすエ
ラー発生情報を設定し前記レジスタ情報を前記情報伝達
部から復帰させる、 請求項2記載の中央処理装置の切り替え方法。
3. The method according to claim 1, wherein the register information saving step includes the step of:
Further comprising the step of saving the first identification information of the central processing unit to the information transmitting unit, wherein the continuous start-up step is performed before the register information is loaded from the information transmitting unit to the second central processing unit. The first identification information passed to the information transmission unit is compared with the second identification information of the second central processing unit, and the first identification information and the second identification information match. Loading the register information taken over by the information transmitting unit from the information transmitting unit to the second central processing unit so that the software is continuously activated when there is no such information; 3. The central processing unit according to claim 2, wherein when the identification information matches, error occurrence information indicating that a software error has occurred at the time of switching is set, and the register information is returned from the information transmission unit. Method of switching.
【請求項4】 現用系と予備系に2重化された中央処理
装置、入出力装置及びシステムバスを有し、 各中央処理装置は、タイマを自律減算しタイマアンダー
フロー時にソフトウェアエラーが発生したと判断し現用
系と予備系を切り替える切り替え回路を具備している、 システムであって、 現用系中央処理装置の故障検出時に起動され、該切り替
え回路を作動させて現用系と予備系を切り替えさせる切
り替え手段を更に有し、 該切り替え手段は、 現用系のメモリと、 予備系のメモリと、 現用系中央処理装置のレジスタ情報を該現用系のメモリ
に退避させ、退避された該レジスタ情報を該予備系のメ
モリへ引き継ぐ手段と、 該切り替え回路のタイマを一定時間リセットさせないこ
とによりタイマアンダーフローを発生させて該切り替え
回路を駆動する手段と、 該予備系のメモリへ引き継がれた該レジスタ情報を、切
り替え後の新しい現用系中央処理装置へロードする手段
と、 を有し、 前記切り替え手段は、さらに、切り替え前の現用系中央
処理装置の装置番号を前記切り替え後の新しい現用系中
央処理装置へ渡す手段を含み、 前記切り替え後の新しい現用系中央処理装置は、該切り
替え前の現用系中央処理装置の装置番号と切り替え後の
現用系中央処理装置の装置番号を比較し、一致している
場合には、該切り替え前の現用系中央処理装置にエラー
発生を通知する手段を含み、 これにより、故障が検出された中央処理装置で走行中の
ソフトウェアが新しい現用系中央処理装置で継続起動さ
れることを特徴とする、システム。
4. A central processing unit, an input / output unit, and a system bus, which are duplicated in a working system and a standby system, wherein each central processing unit autonomously decrements a timer and a software error occurs when a timer underflows. And a switching circuit for switching between the active system and the standby system. The system is activated when a failure of the active system central processing unit is detected, and operates the switching circuit to switch between the active system and the standby system. The system further includes a switching unit, wherein the switching unit saves the active system memory, the standby system memory, and the register information of the active system central processing unit to the active system memory, and stores the saved register information in the active system memory. Means for taking over to the memory of the standby system, and causing a timer underflow by not resetting the timer of the switching circuit for a fixed time to cause the switching circuit to operate. And a means for loading the register information taken over by the memory of the standby system into a new active system central processing unit after switching. The switching unit further comprises: a current system before switching. Means for passing the device number of the central processing unit to the new active central processing unit after the switching, wherein the new active central processing unit after the switching includes the device number of the active central processing unit before the switching and the unit number after the switching. Means for notifying the active central processing unit before the switchover of the occurrence of an error when the device numbers of the active central processing unit are compared with each other. A system wherein software running on the device is continuously activated on a new active central processing unit.
JP04727695A 1995-03-07 1995-03-07 Central processing unit switching method and switching system Expired - Lifetime JP3346670B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04727695A JP3346670B2 (en) 1995-03-07 1995-03-07 Central processing unit switching method and switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04727695A JP3346670B2 (en) 1995-03-07 1995-03-07 Central processing unit switching method and switching system

Publications (2)

Publication Number Publication Date
JPH08241222A JPH08241222A (en) 1996-09-17
JP3346670B2 true JP3346670B2 (en) 2002-11-18

Family

ID=12770774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04727695A Expired - Lifetime JP3346670B2 (en) 1995-03-07 1995-03-07 Central processing unit switching method and switching system

Country Status (1)

Country Link
JP (1) JP3346670B2 (en)

Also Published As

Publication number Publication date
JPH08241222A (en) 1996-09-17

Similar Documents

Publication Publication Date Title
US6393560B1 (en) Initializing and restarting operating systems
US6654880B1 (en) Method and apparatus for reducing system down time by restarting system using a primary memory before dumping contents of a standby memory to external storage
JP2710195B2 (en) Storage controller
US5712967A (en) Method and system for graceful recovery from a fault in peripheral devices using a variety of bus structures
WO2010100757A1 (en) Arithmetic processing system, resynchronization method, and firmware program
JP2002049509A (en) Data processing system
JP3346670B2 (en) Central processing unit switching method and switching system
JP2003186697A (en) System and method for testing peripheral device
JP2000293391A (en) Method and device for large-scale memory system management
KR20070065966A (en) A duplication apparatus having a function of restarting the concurrent write function of the paused standby board and the method thereof
KR100385861B1 (en) Standby Loading Method for Duplex Architecture and a Computer-readable Medium having a Program for Performing the Method embedded thereon
JP2000076216A (en) Multiprocessor system, processor duplexing method therefor and record medium recorded with control program therefor
JP2003044284A (en) Activation method for computer system and program for activation
JPH10133926A (en) Mirror disk restoring method and restoring system
JP3494788B2 (en) Program execution management system and program execution management method
JP3509705B2 (en) Automatic restart processing system and restart processing method in switching system
JP3185446B2 (en) Computer system
JP2679625B2 (en) Redundant system restart processing method and method
JPH11203120A (en) Operating system
JPH07248929A (en) Host device and restart system using the same
JP2002244885A (en) Computer system monitoring system
JPH1196083A (en) Semiconductor disk device
JP2002063047A (en) Doubling system switching device and switching method therefor
JPH1049394A (en) System and method for processing fault
JPH08263455A (en) Degrading method for fault processor in multiprocessor system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070906

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080906

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080906

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100906

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100906

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110906

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120906

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130906

Year of fee payment: 11

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term