JPS61265660A - Execution mode switching control system in multiprocessor system - Google Patents
Execution mode switching control system in multiprocessor systemInfo
- Publication number
- JPS61265660A JPS61265660A JP10772785A JP10772785A JPS61265660A JP S61265660 A JPS61265660 A JP S61265660A JP 10772785 A JP10772785 A JP 10772785A JP 10772785 A JP10772785 A JP 10772785A JP S61265660 A JPS61265660 A JP S61265660A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- address mode
- virtual address
- switching
- execution mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010586 diagram Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000013101 initial test Methods 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 102100029968 Calreticulin Human genes 0.000 description 1
- 101100326671 Homo sapiens CALR gene Proteins 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明はマルチプロセッサシステムにおける実行モード
切替え制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an execution mode switching control method in a multiprocessor system.
半導体技術の進展によシマイクロプロセッサ及びLSI
が安価に供給される様になりて来た。Due to advances in semiconductor technology, microprocessors and LSI
has become available at low cost.
これらマイクロプロセッサ及びLSIを任意に組合せる
ことによシ、特定の問題に最適のパフォーマンスを発揮
させるコンピュータシステムを構築出来る。マイク四プ
ロセッサ自身をみても、独立プロセッサとコプロセッサ
と称される2種類(Ofロセッサを組み合せマルチプロ
セッサ構成とすることによシ、独立プロセッサの持つ命
令セットとアーキテクチャを拡張することが出来る。By arbitrarily combining these microprocessors and LSIs, it is possible to construct a computer system that exhibits optimal performance for a specific problem. Looking at the Microphone 4 processor itself, the instruction set and architecture of the independent processor can be expanded by combining two types of processors (of processors) called independent processors and coprocessors to form a multiprocessor configuration.
上記の例として、システムを管理する主プロセッt、H
−数値演算グロセッサ等すツプロセッサの組合せを想定
しよう。この数値演算プロセッサをシステムに付加する
ことによシ数値演算が大幅に高速化出来る。上記各プロ
セッサは実行アドレスモードに仮想アドレスモードと実
アドレスモードが存在し、各プロセッサはソフトウェア
によシ実アドレスモードから仮想アドレスモードへ切換
えが出来る。As an example of the above, the main processes t, H that manage the system
- Let's assume a combination of processors such as a numerical processing processor. By adding this numerical arithmetic processor to the system, numerical arithmetic operations can be greatly speeded up. Each of the above processors has a virtual address mode and a real address mode as execution address modes, and each processor can be switched from the real address mode to the virtual address mode by software.
しかしながら、これらプロセッサ間でアドレスモードが
異なるとプログラムの正常動作が行なわれない。又、サ
ブプロセッサにはカレントモードを主プロセッサが認知
するのに充分な情報を持っていないため、主プロセッサ
からサブプロセッサを従属的に切替えることは困難であ
った。従りて、すffプロセッサいずれか一方のモード
でしか動作出来ない。However, if the address modes differ between these processors, the program will not operate normally. Further, since the sub-processor does not have sufficient information for the main processor to recognize the current mode, it is difficult to switch the sub-processor from the main processor to a subordinate state. Therefore, the ff processor can only operate in one of the modes.
本発明は上述した事情に鑑みてなされたものであシ、各
プロセッサ間のアドレスモード切替えを同期させること
によシ、個々のプロセッサにおける実行モードの違いに
よる不都合を回避し性能向上をはかったマルチプロセッ
サシステムにおける実行モード切替え制御方式を提供す
ることを目的とする。The present invention has been made in view of the above-mentioned circumstances, and is a multiprocessor system that avoids the inconvenience caused by differences in execution modes among individual processors and improves performance by synchronizing address mode switching between each processor. The purpose of this paper is to provide an execution mode switching control method in a processor system.
本発明は実行モードに仮想アドレッシングと実アドレッ
シングを持つプロセッサによシマルチグロセッサシステ
ムを構築した場合の各プロセッサ間の実行モードの同期
に関するものであ)、両アドレッシングモードの切替え
をスーパバイザを介することによシ、主プロセッサとサ
ブプロセッサのアドレッシングモードの同期化を実現し
た。このため、システムの状態情報ヲ一時退避せしめる
スーパパイプ個有の一時記憶装置と、実アドレスモード
へ切替え、且つ上述した一時記憶装置に影響を与えない
ハードウェアリセットスイッチと、サブプロセッサ実装
の有無を表示するフラグ、そして以下に概略手順を述べ
るプログラムを備えた。つまシ、実アドレスモードへの
切替えが必要になりたときスーa4 ハイデ個有の一時
記憶領域にシステムの一部情報(カレントなシステム状
態情報)を退避し、上述したスイッチを駆動して主プロ
セッサ及びすffプロセッサみにハードウェアリセット
をかけ、主プロセッサは上述した一時記憶領域をチェッ
クすることによりモード切替えのための再スタートを認
知し、システムの初期化をスキップして復帰処理を行な
い、動作状態を切替え発生時の状態に戻す様に構成した
。The present invention relates to synchronization of execution modes between processors when a multigrossing system is constructed using processors having virtual addressing and real addressing in their execution modes. As a result, we have achieved synchronization of the addressing modes of the main processor and subprocessor. For this reason, we need a temporary storage device unique to the superpipe that temporarily saves system status information, a hardware reset switch that switches to real address mode and does not affect the temporary storage device mentioned above, and the presence or absence of a subprocessor implementation. It has flags to display and a program that outlines the steps below. When it becomes necessary to switch to the real address mode, the A4 saves some system information (current system status information) to its own temporary storage area, drives the switch mentioned above, and controls the main processor. A hardware reset is applied to only the and ff processors, and the main processor recognizes the restart for mode switching by checking the temporary storage area mentioned above, skips system initialization, performs recovery processing, and resumes operation. It was configured to return the state to the state at the time the switch occurred.
このことによシ、各プロセッサ間のアドレスモードの違
いによる不都合を回避出来、性能向上がはかれる。This makes it possible to avoid inconveniences caused by differences in address modes between processors, and improve performance.
以下、図面を使用して本発明実施例につき詳細に説明す
る。Hereinafter, embodiments of the present invention will be described in detail using the drawings.
第1図は本発明の実施例を示すブロック図である。図に
おいて、1は主プロセッサ(CPU)、 2は数値演算
プロセッサ等のサブプロセッサ(Co−CPU)であシ
、これらプロセッサによシ小規模なマルチプロセッサシ
ステムを構築出来る。FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a main processor (CPU), 2 is a sub-processor (Co-CPU) such as a numerical calculation processor, and a small-scale multiprocessor system can be constructed using these processors.
3は上述したプロセッサ1,2のみをリセットするため
のスイッチである。本発明実施例ではダート(リセット
ドライ/4)が例示されている・4は表示データが格納
される表示用記憶装置(VRAM)、5は表示制御装置
(CRTC)である、互はシステム管理プログラム等を
格納する不揮発生メモリ(ROM)であシ、その記憶構
造を第2図に示しである。即ち、IPL&イニシャルテ
スト、基本人出力ドライバ、スーパパイプの各プログラ
ムが記憶される。IPL &イニシャルテストはIPL
及びハードウェア動作テスト、ハードウェア初期化を行
なうためのプログラムであシ、又、基本人出力ドライバ
は入出カバードウェアリソース、即ち、フロッピーディ
スクドライブ8、キーボード9、表示ディバイス10を
駆動するためのグ筒グラム群、そしてスーツ臂パイデハ
実行モードを切替える等、リソース全体を管理するプロ
グラムである。3 is a switch for resetting only the processors 1 and 2 mentioned above. In the embodiment of the present invention, Dart (Reset Dry/4) is exemplified. 4 is a display storage device (VRAM) in which display data is stored, 5 is a display control device (CRTC), and each is a system management program. The memory structure is shown in FIG. 2. That is, IPL & initial test, basic human output driver, and super pipe programs are stored. IPL & initial test is IPL
It is a program for performing hardware operation tests and hardware initialization, and the basic human output driver is a program for driving input/output covered hardware resources, that is, a floppy disk drive 8, a keyboard 9, and a display device 10. This is a program that manages the entire resource, such as switching the cylinder gram group and suit arm Paideha execution mode.
Lは主記憶装置、いわゆるシステムRAMであシ、第3
図にその記憶構造が示されている。図かられかるように
オペレーティングシステムや実行中の二一デタスクが格
納される。L is the main memory, so-called system RAM;
The storage structure is shown in the figure. As you can see from the figure, the operating system and 21 tasks being executed are stored.
又、本発明と特に関係するところでは、システム退避用
の一時記憶領域がレジスタ領域として割9つけられてい
る。第4図に上述したプログラム群によるシステム管理
機構が図示されている。8は上述したオペレーティング
システムやユーザプログラムが格納されるフロッピーデ
ィスク等の補助記憶装置、9はキーボード、10は表示
デバイスである。Further, in a part particularly related to the present invention, a temporary storage area for system saving is allocated as a register area. FIG. 4 shows a system management mechanism based on the program group described above. 8 is an auxiliary storage device such as a floppy disk in which the above-mentioned operating system and user programs are stored; 9 is a keyboard; and 10 is a display device.
第5図は本発明実施例の動作を示す70−チャードであ
)、モード切替え部分のみ抽出して示している。図中、
実線は実アドレスモードでの動きを、波線は仮想アドレ
スモードでの動きを示す。FIG. 5 is a 70-chart showing the operation of the embodiment of the present invention, and only the mode switching portion is extracted and shown. In the figure,
Solid lines indicate movement in real address mode, and wavy lines indicate movement in virtual address mode.
以下、第5図に示したフローチャートを参照しながら本
発明実施例の動作につき詳細に説明する。まず、通電さ
れると、不揮発生メモリ旦に格納されているIPL &
テストプログラムが起動するOこの際1サブプロセッサ
2の実装状態をチェックし、実装されている場合は、主
プロセッサ1内にあるプロセッサの状態を示すレジスタ
(MSW)をセットする。次にシステムの初期化が終る
と、フロッピーディスク8からシステA RAM 7i
C−k Aレーティングシステム(O8)t−ロードし
てくる。次にこのO8を起動しユーザの指示を待つ。こ
の時仮想アドレスモードへの切シ替えの必要性が発生し
た場合、O8はスーパノ々イデを起動する。主プロセッ
サ1内の上述した■薄をチェックし、サブプロセッサフ
ラグがセットされていれば、サブプロセッサ2の命令に
よって仮想アドレスモードへ切シ替える。その後、主プ
ロセッサ1は、仮想アドレスモード実行のための初期化
を行ない、自身を仮想アドレスモードへ切シ替える。そ
の後O8に復帰しマルチタスクのためのタスキング処理
を行ない二−デタスク待ちとなる。この状態でユーザタ
スクは主プロセッサ1と同一モードでサブプロセッサ2
のアクセスが可能となる。Hereinafter, the operation of the embodiment of the present invention will be explained in detail with reference to the flowchart shown in FIG. First, when the power is turned on, the IPL &
The test program starts. At this time, the implementation state of one sub-processor 2 is checked, and if it is installed, a register (MSW) in the main processor 1 indicating the processor state is set. Next, when the system initialization is completed, the system A RAM 7i is transferred from the floppy disk 8.
C-k A rating system (O8) t-loading. Next, this O8 is activated and waits for the user's instructions. At this time, if it becomes necessary to switch to virtual address mode, O8 activates the super node. The above-mentioned condition (1) in the main processor 1 is checked, and if the sub-processor flag is set, the sub-processor 2 switches to the virtual address mode by an instruction. Thereafter, the main processor 1 performs initialization for virtual address mode execution and switches itself to virtual address mode. Thereafter, the process returns to O8, performs tasking processing for multitasking, and waits for a second task. In this state, the user task runs on subprocessor 2 in the same mode as main processor 1.
access is possible.
次に実アドレスモードへのモード切替えが発生したら、
再びO8はスー/4’パイプを起動し、スーi4パイプ
個有の一時記憶領域にシステムの一部(カレントのシス
テム状態)を退避させ、リセットスイッチもしくはダー
ト3を駆動し、主プロセッ?1及びサブプロセッサ2の
みにノ)−ドクエアリセットをかける。主プロセッサ1
は、通電時と同様に再実行を開始するが、ただちにシス
テム退避領域をチェックし、モード切シ替えのための再
スタートを認知する。Next time a mode switch to real address mode occurs,
The O8 starts up the Sue/4' pipe again, saves part of the system (current system state) to the temporary storage area unique to the Sue i4 pipe, drives the reset switch or Dart 3, and returns the main processor? d)-Docuair reset is applied only to sub-processor 1 and sub-processor 2. Main processor 1
starts re-execution in the same way as when the power is turned on, but immediately checks the system save area and recognizes the restart for mode switching.
ここで、モード切シ替え動作であることが検知されると
、システムの初期化操作をスキップし、システム復帰処
理を行ない動作状態を切シ替え発生時の状態まで戻す。Here, if a mode switching operation is detected, the system initialization operation is skipped, and system recovery processing is performed to return the operating state to the state at the time of switching occurrence.
このようにして、実アドレスモード用に作成されたユー
ザプログラムの実行が可能となる。In this way, a user program written for real address mode can be executed.
尚、本発明実施例で使用しているプロセッサは、仮想ア
ドレスモードから実アドレスモードへの切シ替えは、ハ
ードウェアリセットによってのみ可能である。このよう
にして、両アドレッシングモードの切シ替えをスーツク
ツ々イデを介することによシ、主プロセッサとサブプロ
セッサのアドレッシングモードの同期化を実現すること
ができる。Note that the processor used in the embodiment of the present invention can only be switched from virtual address mode to real address mode by hardware reset. In this way, the addressing modes of the main processor and the sub-processor can be synchronized by switching between the two addressing modes through the respective devices.
以上説明の様に本発明によれば以下に列挙する効果が得
られる。As explained above, according to the present invention, the following effects can be obtained.
(1)マルチプロセッサシステムにおいて、各プロセッ
サ間のアドレッシングモードのくい違いによる不都合が
回避できる。(1) In a multiprocessor system, problems caused by differences in addressing modes between processors can be avoided.
(2)アドレッシングモードの切シ替えがス♂−ディに
可能となる。(2) Addressing modes can be switched quickly.
(3)アドレッシング切シ替え時の各タスク間の動作に
影響を与えない。(3) Does not affect operations between tasks when switching addressing.
(4)モード切少替えがスピーディに行なえるため、実
アドレッシング用のユーザプログラムと仮想アドレッシ
ング用のユーザプログラムの共存ス・;可能となる。(4) Since mode switching can be performed quickly, it becomes possible for a user program for real addressing and a user program for virtual addressing to coexist.
第1図は本発明の実施例を示すブロック図、第2図は第
1図に示したROMの記憶構造を示した図、第3図は第
1図に示したシステムRAMの記憶構造を示す図、第4
図は本発明によるシステム管理機構を概念的に示した図
、第5図は本発明実施例の動作を示すフローチャートで
ある。
1・・・主プロセッサ、2・・・サブプロセッサ、3・
・・リセットドライバ、旦・・・ROM、7・・・シス
テムRAM。
出願人代理人 弁理士 鈴 江 武 彦fs1図
iIz図 13図
第4図
第5図FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the storage structure of the ROM shown in FIG. 1, and FIG. 3 is a diagram showing the storage structure of the system RAM shown in FIG. 1. Figure, 4th
The figure is a diagram conceptually showing the system management mechanism according to the present invention, and FIG. 5 is a flowchart showing the operation of the embodiment of the present invention. 1...Main processor, 2...Sub processor, 3.
...Reset driver, 7...ROM, 7...system RAM. Applicant's Representative Patent Attorney Takehiko Suzue FS1 Figure iIz Figure 13 Figure 4 Figure 5
Claims (1)
持つ主プロセッサ及びサブプロセッサにてシステムが構
成され、システムの一部情報が退避され記憶される一時
記憶領域及び上記サブプロセッサの実装の有無を示すフ
ラグ情報が割付けられ記憶されるメモリと、実行モード
を実アドレッシングに切替える、上記一時記憶領域に影
響を与えないハードウェアリセットのためのスイッチン
グ手段と、実行モードを実アドレッシングへ切替える際
、上記メモリの一時記憶領域にカレントのシステム状態
情報を退避させ、且つ上記スイッチング手段を駆動し、
主プロセッサ及びサブプロセッサにハードウェアリセッ
トをかける手段とを具備し、主プロセッサは、上記一時
記憶領域を調べることによりモード切替えのための再ス
タートを認知し、システムを初期化することなく復帰処
理を行ない、動作状態を上記切替え発生時の状態に戻す
ことを特徴とするマルチプロセッサシステムにおける実
行モード切替え制御方式。The system consists of a main processor and sub-processors that have virtual addressing and real addressing in their execution modes, and a temporary storage area in which some system information is saved and stored, and flag information indicating whether or not the above-mentioned sub-processors are installed are allocated. a switching means for hardware reset that does not affect the temporary storage area for switching the execution mode to real addressing; evacuating current system state information and driving the switching means;
means for applying a hardware reset to the main processor and sub-processor, the main processor recognizes restart for mode switching by checking the temporary storage area, and performs return processing without initializing the system. An execution mode switching control method in a multiprocessor system, characterized in that the execution mode switching control method in a multiprocessor system is characterized in that the operating state is returned to the state at the time when the switching occurred.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10772785A JPS61265660A (en) | 1985-05-20 | 1985-05-20 | Execution mode switching control system in multiprocessor system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10772785A JPS61265660A (en) | 1985-05-20 | 1985-05-20 | Execution mode switching control system in multiprocessor system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61265660A true JPS61265660A (en) | 1986-11-25 |
Family
ID=14466415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10772785A Pending JPS61265660A (en) | 1985-05-20 | 1985-05-20 | Execution mode switching control system in multiprocessor system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61265660A (en) |
-
1985
- 1985-05-20 JP JP10772785A patent/JPS61265660A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Dike | A user-mode port of the Linux kernel | |
US5127098A (en) | Method and apparatus for the context switching of devices | |
US8429669B2 (en) | Virtual machine switching control by prefetching information out of and updating a set of processor control information based on a bitmap having update status | |
US20070288224A1 (en) | Pre-creating virtual machines in a grid environment | |
US20170024291A1 (en) | Virtual machine fault tolerance | |
US5016166A (en) | Method and apparatus for the synchronization of devices | |
JPH0512045A (en) | Method and device for continuing operation of computer system | |
JPH06168146A (en) | Virtual computer system | |
US20100332722A1 (en) | Virtual machine system and control method thereof | |
JPH07311749A (en) | Multiprocessor system and kernel substituting method | |
JP2005122334A (en) | Memory dump method, memory dump program, and virtual computer system | |
JP4785142B2 (en) | Data processing device | |
JP2000066904A (en) | Method for controlling multitask and storage medium | |
US7484032B2 (en) | Fault tolerant computer system | |
JP5328410B2 (en) | Booted operating system (OS) operation computer, computer OS boot method, and OS boot program | |
US5016161A (en) | Method and apparatus for the flow control of devices | |
JPS61265660A (en) | Execution mode switching control system in multiprocessor system | |
JPWO2008114415A1 (en) | Multi-processing system | |
JP2001236237A (en) | Multi-OS configuration method | |
JP2006522971A (en) | operating system | |
JPH0552535B2 (en) | ||
JPH11184828A (en) | Test method for multiprocessor system | |
JP2671160B2 (en) | Exception handling method | |
JP3163196B2 (en) | Instruction interruption information storage control method in virtual storage control | |
JP2663895B2 (en) | CPU simulator |