JP5644380B2 - Information processing device - Google Patents
Information processing device Download PDFInfo
- Publication number
- JP5644380B2 JP5644380B2 JP2010247503A JP2010247503A JP5644380B2 JP 5644380 B2 JP5644380 B2 JP 5644380B2 JP 2010247503 A JP2010247503 A JP 2010247503A JP 2010247503 A JP2010247503 A JP 2010247503A JP 5644380 B2 JP5644380 B2 JP 5644380B2
- Authority
- JP
- Japan
- Prior art keywords
- processing
- processing means
- information
- identification information
- abnormal state
- 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 - Fee Related
Links
- 230000010365 information processing Effects 0.000 title claims description 44
- 230000002159 abnormal effect Effects 0.000 claims description 51
- 238000000034 method Methods 0.000 claims description 43
- 230000008569 process Effects 0.000 claims description 43
- 238000006467 substitution reaction Methods 0.000 claims description 13
- 230000004044 response Effects 0.000 claims description 2
- 230000005856 abnormality Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Landscapes
- Storage Device Security (AREA)
- Hardware Redundancy (AREA)
Description
本発明は、マルチコア・プロセッサに代表される、処理手段を複数備える情報処理装置に関する。 The present invention relates to an information processing apparatus including a plurality of processing means represented by a multi-core processor.
従来、複数の処理手段を備える情報処理装置が普及している。例えば、一パッケージ内に複数のプロセッサコア(CPUコア)を封入して各プロセッサコアが独立して処理を行うマルチコア・プロセッサ、CPU等のプロセッサを複数個備えるマルチプロセッサ処理装置等が知られている。 Conventionally, information processing apparatuses including a plurality of processing means have been widely used. For example, a multi-core processor in which a plurality of processor cores (CPU cores) are enclosed in one package and each processor core performs processing independently, a multi-processor processing apparatus including a plurality of processors such as CPUs, and the like are known. .
この種の情報処理装置において、複数の処理手段は、それぞれ固有のタスクを実行している場合がある。例えば、近年、車載制御装置の分野においては、複数の制御装置が有する機能を一の制御装置に統合する動きが見られるが、この場合、元々複数の制御装置がそれぞれ有していた機能は、各処理手段に割り当てられるのが通常である。このように、複数の処理手段を有する情報処理装置では、各処理手段がそれぞれ重要な機能を発揮している場合があり、いずれかの処理手段に異常が発生した際に、他の処理手段によって代替処理を行う必要が生じる場合がある。 In this type of information processing apparatus, the plurality of processing units may each execute a unique task. For example, in recent years, in the field of in-vehicle control devices, there has been a movement to integrate the functions of a plurality of control devices into one control device, but in this case, the functions originally possessed by a plurality of control devices are Usually assigned to each processing means. In this way, in an information processing apparatus having a plurality of processing means, each processing means may exhibit an important function, and when an abnormality occurs in any of the processing means, the other processing means It may be necessary to perform alternative processing.
特許文献1には、特定のプロセッサで発生した異常を検出する異常検出手段を備え、その検出結果に基づいて、特定のプロセッサ以外の他のプロセッサのいずれかに、特定のプロセッサに割り当てられた特定制御を代替させるマルチプロセッサシステムについて記載されている。このシステムでは、例えば、コア0が車両制御のための処理を、コア1〜3が情報制御のための処理を行っており、コア0に異常が生じた場合には、コア1のオペレーティングシステム(OS;登録商標)を情報制御用OSから車両制御用OSに切り替え、その際に、レジストリや設定ファイルの書き換えを行って情報制御用OSのコンフィギュレーションを変更させている。
また、複数の処理手段を備える情報処理装置において、処理手段間でデータを共有したり、外部機器との間で入出力されるデータを各処理手段が参照できるようにするために、共有メモリにデータを格納することが行われている。共有メモリにおいては、各処理手段が無制限書き込み等を行うことのないように、種々のアクセス制限が行われるのが通常である。 In addition, in an information processing apparatus including a plurality of processing means, in order to share data among the processing means and to allow each processing means to refer to data input / output to / from an external device, a shared memory is provided. Data is being stored. In the shared memory, various access restrictions are usually performed so that each processing means does not perform unlimited writing or the like.
特許文献2には、メモリの所定領域に対する各プロセッサのアクセス権限に関する情報を保持するアクセス権限情報保持手段と、上記アクセス権限に関する情報に基づいて各プロセッサによるメモリへのアクセスを管理するメモリ管理手段と、を備えるマルチプロセッサシステムについて記載されている。アクセス権限情報は、アドレス情報やアクセス権限の種類(「リード」、「ライト」、「バースト転送」、「コード転送」、「データ転送」等)とCPUとの関係を規定している。
しかしながら、上記特許文献1に記載のシステムでは、共有メモリ保護の観点について何ら記載されていない。特許文献2に記載されているように、複数の処理手段のそれぞれには、共有メモリへのアクセス可能な範囲(アドレス領域やアクセス種類)に関して制限が設けられていることが多いため、代替処理を行おうとする処理手段による共有メモリへのアクセス要求が拒絶されてしまう場合がある。
However, the system described in
このように、許可されないアクセス要求がなされた場合には、システムリセットが行われることがあり、その結果、代替処理をスムーズに行うことができないという事態が生じ得る。 As described above, when an unauthorized access request is made, a system reset may be performed, and as a result, a situation may occur in which the substitute process cannot be performed smoothly.
本発明はこのような課題を解決するためのものであり、メモリ保護を実現しつつ、複数の処理手段のいずれかに異常が生じた際に、スムーズに(エラーやシステムリセットを発生させることなく)代替処理を行わせることが可能な情報処理装置を提供することを、主たる目的とする。 The present invention is intended to solve such a problem. When an abnormality occurs in any of a plurality of processing means while realizing memory protection, it is smoothly performed (without causing an error or a system reset). ) A main object is to provide an information processing apparatus capable of performing alternative processing.
上記目的を達成するための本発明の一態様は、
複数の処理手段を備える情報処理装置であって、
前記複数の処理手段によってアクセスされ、各処理手段に割り当てられた専用領域が設定されている共有メモリと、
前記複数の処理手段の動作状態を管理するとともに、前記複数の処理手段によりそれぞれ保持された自己の識別情報を参照することにより、前記共有メモリの専用領域が割り当てられた処理手段以外の処理手段が該専用領域を使用しないように管理する管理手段と、
前記複数の処理手段の識別情報を保持したハードウエア手段と、を備え、
前記管理手段は、
前記複数の処理手段のうち一の処理手段が異常状態となった場合に、該異常状態となった処理手段の代替処理を行うように他の処理手段に指示し、該指示に応じて該他の処理手段より前記共有メモリへのアクセスがあった場合に、該他の処理手段に保持された識別情報を参照する代わりに、前記ハードウエア手段により保持された前記異常状態となった処理手段の識別情報を参照することで、前記異常状態となった処理手段に割り当てられた専用領域を、前記他の処理手段に使用可能とすることを特徴とする。
In order to achieve the above object, one embodiment of the present invention provides:
An information processing apparatus comprising a plurality of processing means,
A shared memory that is accessed by the plurality of processing means and in which a dedicated area assigned to each processing means is set;
A processing unit other than the processing unit to which the dedicated area of the shared memory is allocated by managing the operation states of the plurality of processing units and referring to the identification information held by each of the plurality of processing units. Management means for managing such that the dedicated area is not used ;
And a hardware unit which holds identification information of said plurality of processing means,
The management means includes
When one of the plurality of processing means is in an abnormal state, the other processing means is instructed to perform a substitute process for the processing means in the abnormal state, and the other processing means is in response to the instruction. When the shared memory is accessed from the processing means, instead of referring to the identification information held in the other processing means, the processing means in the abnormal state held by the hardware means by referring to the identification information, the dedicated region assigned to the processing means becomes the abnormal state, characterized in that it available to the other processing unit.
この本発明の一態様によれば、複数の処理手段のうち一の処理手段が異常状態となった場合に、管理手段が、異常状態となった処理手段の代替処理を行うように他の処理手段に指示し、指示に応じて他の処理手段より共有メモリへのアクセスがあった場合に、他の処理手段に保持された識別情報を参照する代わりに、ハードウエア手段により保持された異常状態となった処理手段の識別情報を参照することで、異常状態となった処理手段に割り当てられた専用領域を、他の処理手段に使用可能とするため、メモリ保護を実現しつつ、複数の処理手段のいずれかに異常が生じた際に、スムーズに代替処理を行わせることができる。 According to this aspect of the present invention, when one processing unit among a plurality of processing units is in an abnormal state, the management unit performs other processing so as to perform a substitute process for the processing unit in the abnormal state. When the shared memory is accessed from other processing means according to the instruction, instead of referring to the identification information held in the other processing means, the abnormal state held by the hardware means By referring to the identification information of the processing means that has become an abnormal state, the dedicated area allocated to the processing means that has become abnormal can be used for other processing means. When an abnormality occurs in any of the means, the substitute process can be smoothly performed.
本発明の一態様において、
複数の処理手段を備える情報処理装置であって、
前記複数の処理手段によってアクセスされ、各処理手段に割り当てられた専用領域が設定されている共有メモリと、
前記複数の処理手段の動作状態を管理するとともに、前記複数の処理手段によりそれぞれ保持された自己の識別情報を参照することにより、前記共有メモリの専用領域が割り当てられた処理手段以外の処理手段が該専用領域を使用しないように管理する管理手段と、
前記複数の処理手段の識別情報を保持したハードウエア手段と、を備え、
前記管理手段は、
前記複数の処理手段のうち一の処理手段が異常状態となった場合に、該異常状態となった処理手段の代替処理を行うように他の処理手段に指示すると共に、前記ハードウエア手段により保持された前記異常状態となった処理手段の識別情報を用いて、前記代替処理を行う処理手段により保持された識別情報を書き換えることにより、前記異常状態となった処理手段に割り当てられた専用領域を、前記他の処理手段に使用可能とすることを特徴とする。
In one embodiment of the present invention,
An information processing apparatus comprising a plurality of processing means,
A shared memory that is accessed by the plurality of processing means and in which a dedicated area assigned to each processing means is set;
A processing unit other than the processing unit to which the dedicated area of the shared memory is allocated by managing the operation states of the plurality of processing units and referring to the identification information held by each of the plurality of processing units. Management means for managing such that the dedicated area is not used;
Hardware means holding identification information of the plurality of processing means,
The management means includes
When one of the plurality of processing means is in an abnormal state , the other processing means is instructed to perform a substitute process for the processing means in the abnormal state and held by the hardware means By rewriting the identification information held by the processing means that performs the substitution process using the identification information of the processing means that has become abnormal, the dedicated area assigned to the processing means that has become abnormal , characterized in that it available to the other processing unit.
また、本発明の一態様において、
複数の処理手段を備える情報処理装置であって、
前記複数の処理手段によってアクセスされ、各処理手段に割り当てられた専用領域が設定されている共有メモリと、
前記複数の処理手段の動作状態を管理するとともに、前記複数の処理手段によりそれぞれ保持された自己の識別情報を参照することにより、前記共有メモリの専用領域が割り当てられた処理手段以外の処理手段が該専用領域を使用しないように管理する管理手段と、
前記複数の処理手段の識別情報を保持したハードウエア手段と、を備え、
前記管理手段は、
前記複数の処理手段のうち一の処理手段が異常状態となった場合に、該異常状態となった処理手段の代替処理を行うように他の処理手段に指示すると共に、自己が保持する識別情報に代えて、前記ハードウエア手段により保持された前記異常状態となった処理手段の識別情報を出力するように前記代替処理を行う処理手段に指示することにより、前記異常状態となった処理手段に割り当てられた専用領域を、前記他の処理手段に使用可能とすることを特徴とする。
In one embodiment of the present invention,
An information processing apparatus comprising a plurality of processing means,
A shared memory that is accessed by the plurality of processing means and in which a dedicated area assigned to each processing means is set;
A processing unit other than the processing unit to which the dedicated area of the shared memory is allocated by managing the operation states of the plurality of processing units and referring to the identification information held by each of the plurality of processing units. Management means for managing such that the dedicated area is not used;
Hardware means holding identification information of the plurality of processing means,
The management means includes
When one of the plurality of processing means is in an abnormal state , the other processing means is instructed to perform alternative processing of the processing means in the abnormal state, and identification information held by itself Instead, by instructing the processing means that performs the alternative processing to output the identification information of the processing means in the abnormal state held by the hardware means, the processing means in the abnormal state is instructed. an exclusive area allocated, characterized in that it available to the other processing unit.
また、本発明の一態様において、
前記代替処理を行う指示は、アイドル状態となっている処理手段に対してなされることを特徴とするものとしてもよい。
In one embodiment of the present invention,
The instruction to perform the alternative process may be given to a processing unit in an idle state.
また、本発明の一態様において、
前記ハードウエア手段は、例えば、ROM(Read Only Memory)又はEEPROM(Electrically Erasable and Programmable Read Only Memory)から前記複数の処理手段の識別情報がダウンロードされることにより、前記複数の処理手段の識別情報を保持するレジスタである。
In one embodiment of the present invention,
For example, the hardware means downloads the identification information of the plurality of processing means by downloading the identification information of the plurality of processing means from a ROM (Read Only Memory) or an EEPROM (Electrically Erasable and Programmable Read Only Memory). It is a register to hold.
また、本発明の一態様において、
前記管理手段は、例えば、RTOS(Real-Time Operating System)である。
In one embodiment of the present invention,
The management means is, for example, RTOS (Real-Time Operating System).
また、本発明の一態様において、
前記複数の処理手段は、プロセッサコアであり、
マルチコア・プロセッサとして構成されるものとしてもよい。
In one embodiment of the present invention,
The plurality of processing means are processor cores,
It may be configured as a multi-core processor.
本発明によれば、メモリ保護を実現しつつ、複数の処理手段のいずれかに異常が生じた際に、スムーズに代替処理を行わせることが可能な情報処理装置を提供することができる。 According to the present invention, it is possible to provide an information processing apparatus capable of smoothly performing substitution processing when an abnormality occurs in any of a plurality of processing units while realizing memory protection.
以下、本発明を実施するための形態について、添付図面を参照しながら実施例を挙げて説明する。 DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described with reference to the accompanying drawings.
以下、図面を参照し、本発明の実施例に係る情報処理装置について説明する。本発明の各実施例に係る情報処理装置は、一パッケージ内に複数のプロセッサコア(CPUコア;以下省略)を封入したマルチコア・プロセッサ、或いはCPU等のプロセッサを複数個備えるマルチプロセッサ処理装置として構成されるが、以下の説明では、マルチコア・プロセッサとして構成されるものとする。 Hereinafter, an information processing apparatus according to an embodiment of the present invention will be described with reference to the drawings. The information processing apparatus according to each embodiment of the present invention is configured as a multi-core processor in which a plurality of processor cores (CPU cores; hereinafter omitted) are enclosed in one package, or a multi-processor processing apparatus including a plurality of processors such as CPUs. However, in the following description, it is assumed to be configured as a multi-core processor.
<第1実施例>
[構成、基本機能]
図1は、本発明の第1実施例に係る情報処理装置1のシステム構成例である。情報処理装置1は、主要な構成として、プロセッサコア10#1、10#2と、識別ID保持用レジスタ20と、RTOS(Real-time operating system)30と、共有メモリ40と、を備える。これらの構成要素は、例えばバス(シリアル回線であってもよい)50によって通信可能に接続されている。プロセッサコアの個数に特段の制限はないが、本実施例においては二個とした。
<First embodiment>
[Configuration, basic functions]
FIG. 1 is a system configuration example of an
プロセッサコア10#1、10#2は、図示しないプログラムメモリに格納された命令列をフェッチして一時的に格納する命令バッファ、フェッチする命令列のアドレスを示すプログラムカウンタ、命令バッファに格納された命令列をデコード(復号)する命令デコーダ、命令デコーダによりデコードされた命令を実行するための演算器、演算器による演算結果等が格納される専用レジスタ、一次キャッシュメモリ等を有しており、それぞれが特定のタスクに係る処理を実行する。
The
また、プロセッサコア10#1、10#2は、それぞれ、自己の識別ID等を保持した内部レジスタ12#1、12#2を有する。
The
識別ID保持用レジスタ20は、プロセッサコア10#1、10#2の識別ID等を保持している。
The identification
これらのレジスタが保持する識別IDは、情報処理装置1の起動時やリカバリー時等にROM(Read Only Memory)15やEEPROM(Electrically Erasable and Programmable Read Only Memory)等からダウンロードされる。なお、処理速度の点からレジスタが適しているが、レジスタに代えて、不揮発性のメモリ、その他のハードウエア手段等が用いられても構わない。
The identification IDs held by these registers are downloaded from a ROM (Read Only Memory) 15 or an EEPROM (Electrically Erasable and Programmable Read Only Memory) or the like when the
RTOS30は、プロセッサコア10#1、10#2のいずれか、又はその他のプロセッサコアにより実行される。RTOS30は、OSEK、ITRON、その等のリアルタイムオペレーティングシステムである。RTOS30は、通常のオペレーティングシステムが有する機能を実現しており、プロセッサコア10#1、10#2の動作状態を管理している。
The
共有メモリ40は、例えばRAM(Random Access Memory)である。共有メモリ40には、プロセッサコア10#1、10#2のそれぞれが使用可能な専用領域40#1、40#2が設定されている。
The shared
共有メモリ40における専用領域に対する排他制御は、RTOS30により行われる。RTOS30は、いずれかのプロセッサコアから共有メモリ40へのアクセス要求がなされると、要求元のプロセッサコアが有する内部レジスタ12#1又は12#2が保持する識別IDを参照し、識別IDとアクセス要求に含まれる共有メモリ40のアドレスを比較する。そして、専用領域が割り当てられたプロセッサコア以外のプロセッサコアが当該専用領域へのアクセス要求を行った場合には、これを拒絶し、エラー処理を実行する。これによって、専用領域が割り当てられたプロセッサコア以外のプロセッサコアが当該専用領域を使用しないように管理している(メモリ保護の実現)。
Exclusive control for the dedicated area in the shared
[代替処理]
第1実施例に係るRTOS30は、動作状態を管理しているプロセッサコア10#1、10#2のいずれかが異常状態となった場合には、異常状態となったプロセッサコアの代替処理を行うように他のプロセッサコアに指示する。係る代替処理の指示は、無条件に行うのではなく、各プロセッサコアが実行している命令の重要度、緊急性等を考慮して、代替処理を指示しない場合があっても構わない。
[Alternative processing]
When one of the
また、三個以上のプロセッサコアを備える場合、アイドル状態等、処理に余裕がある状態のプロセッサコアに対して代替処理を指示するように、予めRTOS30の機能が設定されていると好適である。
Further, when three or more processor cores are provided, it is preferable that the function of the
また、第1実施例に係るRTOS30は、代替処理を指示する際には、内部レジスタ12#1又は12#2が保持する識別IDに代えて、識別ID保持用レジスタ20により保持された識別IDのうち、異常状態となったプロセッサコアの識別情報を参照する。
The
これによって、代替処理を行うプロセッサコアが、異常状態となったプロセッサコアに割り当てられている共有メモリ40の専用領域を使用することが可能となる。
As a result, the processor core that performs the substitution process can use the dedicated area of the shared
図2は、第1実施例に係る情報処理装置1において、代替処理が指示される際の情報伝達の順序を示す図である。本図では、プロセッサコア10#2が異常状態となったものとする。また、ROM15の図示を省略している。
FIG. 2 is a diagram illustrating the order of information transmission when an alternative process is instructed in the
(1)まず、プロセッサコア10#2からRTOS30に、異常状態となったことを示す割り込み信号等が送信される。なお、これに代えて、RTOS30がポーリング等を行ってプロセッサコア10#2の異常を発見してもよい。
(1) First, an interrupt signal indicating an abnormal state is transmitted from the
(2)次に、RTOS30は、プロセッサコア10#1に代替指示を送信する。
(2) Next, the
(3)その後、プロセッサコア10#1から共有メモリ40へのアクセス要求がなされる。
(3) Thereafter, an access request to the shared
(4)RTOS30は、プロセッサコア10#1の内部レジスタ12#1を参照せず、識別ID保持用レジスタ20により保持された識別IDのうちプロセッサコア#2の識別IDを参照するため、(5)プロセッサコア10#1によるプロセッサコア#2用の専用領域の使用を許可する。
(4) Since the
以上説明した本実施例の情報処理装置1によれば、RTOS30が代替処理を指示する際に、内部レジスタ12#1又は12#2が保持する識別IDに代えて、識別ID保持用レジスタ20により保持された識別IDのうち、異常状態となったプロセッサコアの識別情報を参照するため、メモリ保護を実現しつつ、複数のプロセッサコアのいずれかに異常が生じた際に、スムーズに(エラーやシステムリセットを発生させることなく;以下同じ)代替処理を行わせることができる。
According to the
また、レジスタ等に保持された情報を変更せず、RTOS30の処理を介して代替処理を実現するため、異常状態となったプロセッサコアが復帰した際に、速やかに元の状態に復帰することができる。すなわち、円滑にリカバリーを行うことができる。
In addition, since the information held in the register or the like is not changed and the substitute processing is realized through the processing of the
<第2実施例>
[構成、基本機能]については、第1実施例と共通するため、各構成要素について同一の符号を付し、説明を省略する。
<Second embodiment>
[Configuration and basic functions] are the same as those in the first embodiment, and therefore, the same reference numerals are given to the respective constituent elements and the description thereof is omitted.
[代替処理]
第2実施例に係るRTOS30は、第1実施例と同様、動作状態を管理しているプロセッサコア10#1、10#2のいずれかが異常状態となった場合には、異常状態となったプロセッサコアの代替処理を行うように他のプロセッサコアに指示する。係る代替処理の指示は、無条件に行うのではなく、各プロセッサコアが実行している命令の重要度、緊急性等を考慮して、代替処理を指示しない場合があっても構わない。
[Alternative processing]
As in the first embodiment, the
また、第2実施例に係るRTOS30は、代替処理を指示する際には、内部レジスタ12#1又は12#2のうち、代替処理を指示するプロセッサコアが有する内部レジスタの内容を、異常状態となったプロセッサコアの識別IDに書き換える処理を実行する。異常状態となったプロセッサコアの識別IDは、識別ID保持用レジスタ20から取得する。ここで、「書き換える」処理は、プロセッサコアに指示して「書き換えさせる」処理を含む。
In addition, when the
これによって、代替処理を行うプロセッサコアが、異常状態となったプロセッサコアに割り当てられている共有メモリ40の専用領域を使用することが可能となる。
As a result, the processor core that performs the substitution process can use the dedicated area of the shared
図3は、第2実施例に係る情報処理装置2において、代替処理が指示される際の情報伝達の順序を示す図である。本図では、プロセッサコア10#2が異常状態となったものとする。また、ROM15の図示を省略している。
FIG. 3 is a diagram illustrating the order of information transmission when an alternative process is instructed in the
(1)まず、プロセッサコア10#2からRTOS30に、異常状態となったことを示す割り込み信号等が送信される。なお、これに代えて、RTOS30がポーリング等を行ってプロセッサコア10#2の異常を発見してもよい。
(1) First, an interrupt signal indicating an abnormal state is transmitted from the
(2)次に、RTOS30は、プロセッサコア10#1に代替指示を送信する。(3)この際に、RTOS30は、プロセッサコア10#1の内部レジスタ12#1の内容をプロセッサコア10#2の識別IDに書き換える(又は書き換えさせる)。
(2) Next, the
(4)その後、プロセッサコア10#1から共有メモリ40へのアクセス要求がなされる。
(4) Thereafter, an access request to the shared
(5)RTOS30は、プロセッサコア10#1の内部レジスタ12#1を参照し、識プロセッサコア#2の識別IDを読み取り、(6)プロセッサコア10#1によるプロセッサコア#2用の専用領域の使用を許可する。
(5) The
以上説明した本実施例の情報処理装置2によれば、RTOS30が代替処理を指示する際に、代替処理を指示するプロセッサコアの内部レジスタの内容を、異常状態となったプロセッサコアの識別IDに書き換えるため、メモリ保護を実現しつつ、複数のプロセッサコアのいずれかに異常が生じた際に、スムーズに代替処理を行わせることができる。
According to the
<第3実施例>
[構成、基本機能]
図4は、本発明の第3実施例に係る情報処理装置3のシステム構成例である。本実施例の情報処理装置3は、情報伝達経路のみが第1及び第2実施例と相違するため、各構成要素について同一の符号を付し、説明を省略する。なお、本実施例の場合、識別ID保持用レジスタが細分化され、プロセッサコア10#2の識別IDのみを保持したレジスタが10#1に接続され、プロセッサコア10#1の識別IDのみを保持したレジスタが10#2に接続される態様であってもよい。
<Third embodiment>
[Configuration, basic functions]
FIG. 4 is a system configuration example of the
[代替処理]
第3実施例に係るRTOS30は、第1実施例と同様、動作状態を管理しているプロセッサコア10#1、10#2のいずれかが異常状態となった場合には、異常状態となったプロセッサコアの代替処理を行うように他のプロセッサコアに指示する。係る代替処理の指示は、無条件に行うのではなく、各プロセッサコアが実行している命令の重要度、緊急性等を考慮して、代替処理を指示しない場合があっても構わない。
[Alternative processing]
As in the first embodiment, the
また、第3実施例に係るRTOS30は、代替処理を指示する際には、代替処理を行うプロセッサコアに対し、自己が保持する識別IDに代えて、識別ID保持用レジスタ20により保持された異常状態となったプロセッサコアの識別IDを出力するように指示する。
In addition, when the
これによって、代替処理を行うプロセッサコアが、異常状態となったプロセッサコアに割り当てられている共有メモリ40の専用領域を使用することが可能となる。
As a result, the processor core that performs the substitution process can use the dedicated area of the shared
図5は、第3実施例に係る情報処理装置3において、代替処理が指示される際の情報伝達の順序を示す図である。本図では、プロセッサコア10#2が異常状態となったものとする。また、ROM15の図示を省略している。
FIG. 5 is a diagram illustrating the order of information transmission when an alternative process is instructed in the
(1)まず、プロセッサコア10#2からRTOS30に、異常状態となったことを示す割り込み信号等が送信される。なお、これに代えて、RTOS30がポーリング等を行ってプロセッサコア10#2の異常を発見してもよい。
(1) First, an interrupt signal indicating an abnormal state is transmitted from the
(2)次に、RTOS30は、プロセッサコア10#1に代替指示を送信する。(3)この際に、RTOS30は、プロセッサコア10#1に対し、内部レジスタ12#1が保持する識別IDに代えて、識別ID保持用レジスタ20により保持されたプロセッサコア10#2の識別IDを出力するように指示する。
(2) Next, the
(4)プロセッサコア10#1は、識別ID保持用レジスタ20からプロセッサコア10#2の識別IDを読み取り、(5)共有メモリ40へのアクセス要求をRTOS30に出力する際には、プロセッサコア10#2の識別IDと共にアクセス要求を出力する。
(4) The
(6)RTOS30は、プロセッサコア10#2の識別IDと共に入力されたアクセス要求であるため、プロセッサコア10#1によるプロセッサコア#2用の専用領域の使用を許可する。
(6) Since the
以上説明した本実施例の情報処理装置3によれば、RTOS30が代替処理を指示する際に、代替処理を行うプロセッサコアに対し、自己が保持する識別IDに代えて、識別ID保持用レジスタ20により保持された異常状態となったプロセッサコアの識別IDを出力するように指示するため、メモリ保護を実現しつつ、複数のプロセッサコアのいずれかに異常が生じた際に、スムーズに代替処理を行わせることができる。
According to the
なお、第3実施例の情報処理装置3においては、RTOS30の指示に応じて識別IDを切り替える機能を、各プロセッサコアが実行するプログラムが有していることが必要となる。このため、予め各プロセッサコアが実行するプログラムに、RTOS30の指示に応じて識別IDを切り替えるための命令列を包含させておく必要がある。
In the
これに対し、第1実施例及び第2実施例の場合、上記のようなプログラムの追加機能は必要がなく、RTOS30の機能修正のみで本発明が実現できるという有利さが存在する。
On the other hand, in the case of the first embodiment and the second embodiment, there is an advantage that the present invention can be realized only by correcting the function of the
以上、本発明を実施するための最良の形態について実施例を用いて説明したが、本発明はこうした実施例に何等限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変形及び置換を加えることができる。 The best mode for carrying out the present invention has been described above with reference to the embodiments. However, the present invention is not limited to these embodiments, and various modifications can be made without departing from the scope of the present invention. And substitutions can be added.
1、2、3 情報処理装置
10#1、10#2 プロセッサコア
12#1、12#2 内部レジスタ
15 ROM
20 識別ID保持用レジスタ
30 RTOS
40 共有メモリ
40#1、40#2 専用領域
50 バス
1, 2, 3
20 Identification
40 shared
Claims (7)
前記複数の処理手段によってアクセスされ、各処理手段に割り当てられた専用領域が設定されている共有メモリと、
前記複数の処理手段の動作状態を管理するとともに、前記複数の処理手段によりそれぞれ保持された自己の識別情報を参照することにより、前記共有メモリの専用領域が割り当てられた処理手段以外の処理手段が該専用領域を使用しないように管理する管理手段と、
前記複数の処理手段の識別情報を保持したハードウエア手段と、を備え、
前記管理手段は、
前記複数の処理手段のうち一の処理手段が異常状態となった場合に、該異常状態となった処理手段の代替処理を行うように他の処理手段に指示し、該指示に応じて該他の処理手段より前記共有メモリへのアクセスがあった場合に、該他の処理手段に保持された識別情報を参照する代わりに、前記ハードウエア手段により保持された前記異常状態となった処理手段の識別情報を参照することで、前記異常状態となった処理手段に割り当てられた専用領域を、前記他の処理手段に使用可能とすることを特徴とする情報処理装置。 An information processing apparatus comprising a plurality of processing means,
A shared memory that is accessed by the plurality of processing means and in which a dedicated area assigned to each processing means is set;
A processing unit other than the processing unit to which the dedicated area of the shared memory is allocated by managing the operation states of the plurality of processing units and referring to the identification information held by each of the plurality of processing units. Management means for managing such that the dedicated area is not used ;
And a hardware unit which holds identification information of said plurality of processing means,
The management means includes
When one of the plurality of processing means is in an abnormal state, the other processing means is instructed to perform a substitute process for the processing means in the abnormal state, and the other processing means is in response to the instruction. When the shared memory is accessed from the processing means, instead of referring to the identification information held in the other processing means, the processing means in the abnormal state held by the hardware means by referring to the identification information, the dedicated region assigned to the processing unit in an abnormal state, the information processing apparatus, characterized in that available to the other processing unit.
前記複数の処理手段によってアクセスされ、各処理手段に割り当てられた専用領域が設定されている共有メモリと、
前記複数の処理手段の動作状態を管理するとともに、前記複数の処理手段によりそれぞれ保持された自己の識別情報を参照することにより、前記共有メモリの専用領域が割り当てられた処理手段以外の処理手段が該専用領域を使用しないように管理する管理手段と、
前記複数の処理手段の識別情報を保持したハードウエア手段と、を備え、
前記管理手段は、
前記複数の処理手段のうち一の処理手段が異常状態となった場合に、該異常状態となった処理手段の代替処理を行うように他の処理手段に指示すると共に、前記ハードウエア手段により保持された前記異常状態となった処理手段の識別情報を用いて、前記代替処理を行う処理手段により保持された識別情報を書き換えることにより、前記異常状態となった処理手段に割り当てられた専用領域を、前記他の処理手段に使用可能とすることを特徴とする情報処理装置。 An information processing apparatus comprising a plurality of processing means,
A shared memory that is accessed by the plurality of processing means and in which a dedicated area assigned to each processing means is set;
A processing unit other than the processing unit to which the dedicated area of the shared memory is allocated by managing the operation states of the plurality of processing units and referring to the identification information held by each of the plurality of processing units. Management means for managing such that the dedicated area is not used;
Hardware means holding identification information of the plurality of processing means,
The management means includes
When one of the plurality of processing means is in an abnormal state , the other processing means is instructed to perform a substitute process for the processing means in the abnormal state and held by the hardware means By rewriting the identification information held by the processing means that performs the substitution process using the identification information of the processing means that has become abnormal, the dedicated area assigned to the processing means that has become abnormal An information processing apparatus which can be used for the other processing means.
前記複数の処理手段によってアクセスされ、各処理手段に割り当てられた専用領域が設定されている共有メモリと、
前記複数の処理手段の動作状態を管理するとともに、前記複数の処理手段によりそれぞれ保持された自己の識別情報を参照することにより、前記共有メモリの専用領域が割り当てられた処理手段以外の処理手段が該専用領域を使用しないように管理する管理手段と、
前記複数の処理手段の識別情報を保持したハードウエア手段と、を備え、
前記管理手段は、
前記複数の処理手段のうち一の処理手段が異常状態となった場合に、該異常状態となった処理手段の代替処理を行うように他の処理手段に指示すると共に、自己が保持する識別情報に代えて、前記ハードウエア手段により保持された前記異常状態となった処理手段の識別情報を出力するように前記代替処理を行う処理手段に指示することにより、前記異常状態となった処理手段に割り当てられた専用領域を、前記他の処理手段に使用可能とすることを特徴とする情報処理装置。 An information processing apparatus comprising a plurality of processing means,
A shared memory that is accessed by the plurality of processing means and in which a dedicated area assigned to each processing means is set;
A processing unit other than the processing unit to which the dedicated area of the shared memory is allocated by managing the operation states of the plurality of processing units and referring to the identification information held by each of the plurality of processing units. Management means for managing such that the dedicated area is not used;
Hardware means holding identification information of the plurality of processing means,
The management means includes
When one of the plurality of processing means is in an abnormal state , the other processing means is instructed to perform alternative processing of the processing means in the abnormal state, and identification information held by itself Instead, by instructing the processing means that performs the alternative processing to output the identification information of the processing means in the abnormal state held by the hardware means, the processing means in the abnormal state is instructed. An information processing apparatus characterized in that the allocated dedicated area can be used for the other processing means.
前記代替処理を行う指示は、アイドル状態となっている処理手段に対してなされることを特徴とする情報処理装置。 The information processing apparatus according to any one of claims 1 to 3 ,
The alternative process instruction for performing the an information processing apparatus, characterized in that it is made to processing means adapted idle.
前記ハードウエア手段は、ROM(Read Only Memory)又はEEPROM(Electrically Erasable and Programmable Read Only Memory)から前記複数の処理手段の識別情報がダウンロードされることにより、前記複数の処理手段の識別情報を保持するレジスタであることを特徴とする情報処理装置。 The information processing apparatus according to any one of claims 1 to 4 ,
The hardware means holds the identification information of the plurality of processing means by downloading the identification information of the plurality of processing means from a ROM (Read Only Memory) or an EEPROM (Electrically Erasable and Programmable Read Only Memory). An information processing apparatus characterized by being a register.
前記管理手段は、RTOS(Real-Time Operating System)であることを特徴とする情報処理装置。 An information processing apparatus according to any one of claims 1 to 5 ,
It said management means, information processing apparatus, characterized in that the RTOS (Real-Time Operating System) .
マルチコア・プロセッサとして構成される、請求項1ないし6のいずれか1項に記載の情報処理装置。 The plurality of processing means are processor cores,
Configured as a multi-core processor, the information processing apparatus according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010247503A JP5644380B2 (en) | 2010-11-04 | 2010-11-04 | Information processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010247503A JP5644380B2 (en) | 2010-11-04 | 2010-11-04 | Information processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012099000A JP2012099000A (en) | 2012-05-24 |
JP5644380B2 true JP5644380B2 (en) | 2014-12-24 |
Family
ID=46390819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010247503A Expired - Fee Related JP5644380B2 (en) | 2010-11-04 | 2010-11-04 | Information processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5644380B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE112013007143T5 (en) | 2013-06-07 | 2016-02-18 | Mitsubishi Electric Corporation | Computer system and control method |
WO2017017829A1 (en) | 2015-07-30 | 2017-02-02 | 三菱電機株式会社 | Program execution device, program execution system, and program execution method |
JP6504283B2 (en) * | 2018-02-07 | 2019-04-24 | 日本精工株式会社 | Control device of electric power steering device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6054052A (en) * | 1983-09-02 | 1985-03-28 | Nec Corp | Processing continuing system |
JP2001166960A (en) * | 1999-12-10 | 2001-06-22 | Fujitsu Ltd | Multi-processor system having individual area in shared memory |
JP2003131900A (en) * | 2001-10-24 | 2003-05-09 | Hitachi Ltd | Server system operation control method |
JP2008123031A (en) * | 2006-11-08 | 2008-05-29 | Toyota Motor Corp | Shared memory management device and multiprocessor system equipped with the same device |
JP4458119B2 (en) * | 2007-06-11 | 2010-04-28 | トヨタ自動車株式会社 | Multiprocessor system and control method thereof |
-
2010
- 2010-11-04 JP JP2010247503A patent/JP5644380B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2012099000A (en) | 2012-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4818793B2 (en) | Microcomputer and memory access control method | |
JP4872001B2 (en) | Memory access safety management | |
JP4939387B2 (en) | Data processing apparatus and address space protection method | |
JP2016207231A (en) | Instruction emulation processors, methods and systems | |
KR20120061938A (en) | Providing state storage in a processor for system management mode | |
JP6005392B2 (en) | Method and apparatus for routing | |
JP2006185348A (en) | Multiprocessor system and method for operating lock flag | |
JP2013225208A (en) | Information processing apparatus, information processing method and program | |
JP5644380B2 (en) | Information processing device | |
US11683310B2 (en) | Protecting supervisor mode information | |
JP2008033890A (en) | Microcomputer system | |
JP5999216B2 (en) | Data processing device | |
JP2009296195A (en) | Encryption device using fpga with multiple cpu cores | |
JP4594889B2 (en) | Method for tracing program executed on a system including a plurality of processing devices, and system including a plurality of processing devices | |
JP2021515308A (en) | Devices and methods for accessing metadata when debugging devices | |
JP2011150532A (en) | Information processing apparatus | |
JP5395838B2 (en) | Multi-core system | |
CN109358903B (en) | Data access device and access error notification method | |
JP2008015638A5 (en) | ||
JP2011222055A (en) | Microcomputer and control method for memory access | |
JP5828324B2 (en) | Multiprocessor system, multiprocessor control method, and processor | |
JP2009271597A (en) | Processor | |
US9342359B2 (en) | Information processing system and information processing method | |
JP5380392B2 (en) | Semiconductor device, bus interface device, and computer system | |
JP5324676B2 (en) | Processor, bus interface device, and computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130605 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140711 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140729 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140910 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20141007 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20141020 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5644380 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |