JPH0675789A - Information processor - Google Patents

Information processor

Info

Publication number
JPH0675789A
JPH0675789A JP22688192A JP22688192A JPH0675789A JP H0675789 A JPH0675789 A JP H0675789A JP 22688192 A JP22688192 A JP 22688192A JP 22688192 A JP22688192 A JP 22688192A JP H0675789 A JPH0675789 A JP H0675789A
Authority
JP
Japan
Prior art keywords
semaphore
unit
instruction
exception
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP22688192A
Other languages
Japanese (ja)
Inventor
Takao Yamamoto
崇夫 山本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP22688192A priority Critical patent/JPH0675789A/en
Publication of JPH0675789A publication Critical patent/JPH0675789A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the information processor improving the system efficiency. CONSTITUTION:The device is provided with a memory access section 5 detecting the failure in acquiring the semaphore on a memory by the execution of a test and set instruction for acquiring the semaphore and an exception processing section 7 generating exceptions by the information. Thus, the wasteful processing based on the failure in acquiring the semaphore is reduced, resulting in improving the system efficiency.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は複数プロセス間で処理ま
たは領域アクセス権の獲得のために待ち合わせ制御を行
なう情報処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus for performing queuing control for obtaining processing or area access right among a plurality of processes.

【0002】[0002]

【従来の技術】従来の情報処理装置(例えば、特開平3
−271859号公報参照)の一例について説明する。
図3は従来の情報処理装置の概略構成を示すものであ
る。図3において、1は命令デコード部で、命令10を
デコードする。2は制御部で、デコードされた命令から
制御信号を生成する。3はレジスタ部、4はデータメモ
リアクセスのアドレスを計算するアドレス計算部、5は
メモリとのデータのアクセスを行なう、メモリアクセス
部である。6はメモリである。
2. Description of the Related Art A conventional information processing apparatus (for example, Japanese Patent Laid-Open No.
(See Japanese Patent No. 271859).
FIG. 3 shows a schematic configuration of a conventional information processing apparatus. In FIG. 3, an instruction decoding unit 1 decodes the instruction 10. A control unit 2 generates a control signal from the decoded instruction. Reference numeral 3 is a register unit, 4 is an address calculation unit for calculating an address for data memory access, and 5 is a memory access unit for accessing data with a memory. 6 is a memory.

【0003】以上のように構成された情報処理装置につ
いて、以下その動作について説明する。まず、メモリ上
のセマフォへの獲得アクセスは、次のように行なわれ、
このアクセスの間は、セマフォに対し、他のアクセスは
許されないように制御する。
The operation of the information processing apparatus configured as described above will be described below. First, the acquired access to the semaphore on the memory is performed as follows,
During this access, the semaphore is controlled so that no other access is allowed.

【0004】(1)メモリ上の指定した1バイト(セマ
フォ)を読み出す。(2)読み出した、1バイトを保持
する。
(1) The designated 1 byte (semaphore) on the memory is read. (2) Hold the read 1 byte.

【0005】(3)読み出した1バイトを0xffにし
て、メモリ上の(1)で指定したバイトに書き込む。
(3) The read 1 byte is set to 0xff and written in the byte designated in (1) on the memory.

【0006】(4)(2)で保持した値が、0x00な
らば獲得成功とし、0xffなら獲得失敗を示す。
(4) If the value held in (2) is 0x00, the acquisition is successful, and if 0xff, the acquisition is unsuccessful.

【0007】(1),(2),(3)のアクセスを行なう
命令はテストアンドセット命令と呼ばれる。また、セマ
フォの解放アクセスは、メモリ上のセマフォのアドレス
に対して、0x00を書き込むことによって行なわれ
る。これは、ストア命令によって行なわれる。
The instructions for accessing (1), (2) and (3) are called test and set instructions. The semaphore release access is performed by writing 0x00 to the address of the semaphore on the memory. This is done by a store instruction.

【0008】[0008]

【発明が解決しようとする課題】しかしながら上記のよ
うな構成では、セマフォの獲得に失敗したプロセスは、
セマフォが解放されるまで獲得に失敗するセマフォ獲得
アクセスを繰り返し、プロセッサを無駄な実行を行なう
プロセスが走行するため、システムの効率が低下すると
いう問題点を有していた。
However, in the above configuration, the process that failed to acquire the semaphore is
There is a problem in that the efficiency of the system is lowered because a process that executes a wasteful execution of a processor runs repeatedly by repeatedly accessing a semaphore that fails in acquisition until the semaphore is released.

【0009】本発明は上記問題点に鑑み、システムの効
率が向上する情報処理装置を提供するものである。
In view of the above problems, the present invention provides an information processing apparatus which improves the efficiency of the system.

【0010】[0010]

【課題を解決するための手段】上記問題点を解決するた
めに本発明の情報処理装置は、テストアンドセット命令
がセマフォの獲得に失敗したことを検出するメモリアク
セス部と、このメモリアクセス部の検出したセマフォの
獲得の失敗を例外として検出する例外処理部とを備えた
ものである。
In order to solve the above problems, an information processing apparatus according to the present invention includes a memory access unit for detecting that a test and set instruction has failed to acquire a semaphore, and a memory access unit for the memory access unit. An exception processing unit that detects an unsuccessful acquisition of the detected semaphore as an exception.

【0011】[0011]

【作用】本発明は上記した構成によって、上記メモリア
クセス部がテストアンドセット命令の実行によって、セ
マフォの獲得に失敗したことを例外処理部に伝え、例外
処理部が例外を発生し、例外処理ハンドラに処理を移
し、例外処理ハンドラはセマフォの獲得に失敗したプロ
セスを休眠状態にすることによって、システムの効率を
向上することとなる。
According to the present invention, with the above-described configuration, the memory access unit notifies the exception processing unit that the acquisition of the semaphore has failed by executing the test and set instruction, and the exception processing unit generates an exception and the exception processing handler. Then, the exception handling handler improves the efficiency of the system by putting the process that failed to acquire the semaphore into the sleep state.

【0012】[0012]

【実施例】【Example】

(実施例1)以下本発明の第1の実施例の情報処理装置
について、図面を参照しながら説明する。図1は本発明
の実施例における情報処理装置の構成図を示すものであ
る。
(Embodiment 1) An information processing apparatus according to a first embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a block diagram of an information processing apparatus in an embodiment of the present invention.

【0013】図1において、1は命令10をデコードす
る命令デコード部、2は命令デコード部でデコードされ
た命令を入力としプロセッサの各部を制御する制御部、
3は汎用レジスタ部、4はレジスタ部3から読み出され
たアドレスソース15を入力としてメモリアクセスのア
ドレスを計算するアドレス計算部、5はアドレス計算部
4で計算されたアドレス16を用いてレジスタ部3とメ
モリ6の間でデータアクセスを行なうメモリアクセス
部、6はメモリ部、7は例外を検出し例外処理ハンドラ
への実行の移行を行なう例外処理部である。
In FIG. 1, 1 is an instruction decoding unit for decoding an instruction 10 and 2 is a control unit for controlling each unit of the processor with the instruction decoded by the instruction decoding unit as an input.
3 is a general-purpose register unit, 4 is an address calculation unit for calculating an address for memory access with the address source 15 read from the register unit 3 as an input, and 5 is a register unit using the address 16 calculated by the address calculation unit 4. A memory access unit for accessing data between the memory 3 and the memory 6, a memory unit 6 and an exception processing unit 7 for detecting an exception and shifting execution to an exception handler.

【0014】以上のように構成された情報処理装置につ
いて、以下図1を用いてその動作を説明する。
The operation of the information processing apparatus configured as described above will be described below with reference to FIG.

【0015】テストアンドセット命令の実行は以下のよ
うに行なわれる。テストアンドセット命令が命令10に
現れると、命令デコード部1はテストアンドセット命令
をデコードし、制御部2にテストアンドセット命令の処
理を要求する。制御部2はテストアンドセット命令のア
クセスアドレスのソースデータをレジスタ部3から読み
出す。読み出されたソースデータ15はアドレス計算部
4において加算されテストアンドセット命令のアクセス
アドレス16として出力される。メモリアクセス部5は
制御部2からテストアンドセット命令の実行を指示さ
れ、アクセスアドレス16をアドレス11に出力し、メ
モリ制御信号12を用いてメモリ6に対して読み出しを
指示する。
Execution of the test and set instruction is performed as follows. When the test and set instruction appears in the instruction 10, the instruction decoding unit 1 decodes the test and set instruction and requests the control unit 2 to process the test and set instruction. The control unit 2 reads the source data of the access address of the test and set instruction from the register unit 3. The read source data 15 is added in the address calculator 4 and output as the access address 16 of the test and set instruction. The memory access unit 5 is instructed by the control unit 2 to execute the test and set instruction, outputs the access address 16 to the address 11, and instructs the memory 6 to read using the memory control signal 12.

【0016】メモリ6はアドレス11で示されるアドレ
スで指定されるバイトをデータ13に出力し、メモリ制
御信号12を用いて読み出しの完了を指示する。メモリ
アクセス部5は読み出されたデータ13をデータ14に
出力すると同時に、制御信号17を用いて制御部2にテ
ストアンドセット命令のメモリからの読み出しの完了を
指示する。読みだし完了後、メモリアクセス部5はアド
レス16で示されているテストアンドセット命令のアク
セスアドレスに0xffの値を書き込む制御を行なう。
つまり、アドレス11には読み出しに使用したアドレス
を出力し、データ13には0xffを出力し、メモリ制
御信号12は書き込みを指示する。制御部2はメモリか
らの読み出しの完了を認識しレジスタ部3にデータ14
の書き込みを指示する。
The memory 6 outputs the byte designated by the address indicated by the address 11 to the data 13, and uses the memory control signal 12 to instruct the completion of reading. The memory access unit 5 outputs the read data 13 to the data 14, and at the same time, uses the control signal 17 to instruct the control unit 2 to complete the reading of the test and set instruction from the memory. After the reading is completed, the memory access unit 5 controls to write the value of 0xff to the access address of the test and set instruction indicated by the address 16.
That is, the address used for reading is output to the address 11, 0xff is output to the data 13, and the memory control signal 12 instructs writing. The control unit 2 recognizes the completion of the reading from the memory and stores the data 14 in the register unit 3.
Instruct writing.

【0017】また、メモリアクセス部5はテストアンド
セット命令によって読み出されたデータを0x00と比
較し、0x00でなければ、制御信号18を用いて、例
外処理部7にテストアンドセット命令がセマフォの獲得
に失敗したことを示す。しかし、読み出したデータが0
x00であれば、例外は発生しない。
The memory access unit 5 compares the data read by the test and set instruction with 0x00, and if it is not 0x00, the control signal 18 is used to notify the exception handling unit 7 that the test and set instruction is a semaphore. Indicates that acquisition failed. However, the read data is 0
If x00, no exception occurs.

【0018】例外処理部7は制御信号18によって、テ
ストアンドセット命令がセマフォの獲得に失敗したこと
を知ると、制御信号19を用いて、制御部2に対して、
例外処理ハンドラへの移行を指示する。例外処理ハンド
ラは、現在実行中であるプロセスを待ち状態にし、他の
待ち状態のプロセスを走行させるように、プロセス切替
を行なう。待ち状態になったプロセスは後のプロセス切
替によって、セマフォの獲得に失敗したテストアンドセ
ット命令から実行が再開される。
When the exception processing unit 7 knows from the control signal 18 that the test and set instruction has failed to acquire the semaphore, it uses the control signal 19 to inform the control unit 2 that
Instruct to move to exception handler. The exception handling handler switches the processes so that the currently executing process is put in a waiting state and another waiting process is run. The process in the waiting state resumes execution from the test-and-set instruction in which acquisition of the semaphore failed due to later process switching.

【0019】したがって、セマフォの獲得に失敗した場
合の再獲得試行の処理をプログラム中に記述することな
く、セマフォの再獲得試行を行なうことができるので、
プログラムサイズを小さくすることができる。また、シ
ングルプロセッサ構成の場合はプロセス切替が行なわれ
ないと、他のプロセスによってセマフォが解放されるこ
とがないので、セマフォの獲得に失敗したあと、直ちに
プロセス切替が行なわれる分、システム効率が向上す
る。
Therefore, the semaphore reacquisition trial can be performed without describing in the program the process of reacquisition trial when the acquisition of the semaphore fails.
The program size can be reduced. Also, in the case of a single processor configuration, if process switching is not performed, the semaphore will not be released by other processes. Therefore, after semaphore acquisition fails, process switching is performed immediately, improving system efficiency. To do.

【0020】(実施例2)以下本発明の第2の実施例に
ついて図面を参照しながら説明する。図2は本発明の第
2の実施例を示す情報処理装置の構成図である。同図に
おいて、1は命令デコード部、2は制御部、3は汎用レ
ジスタ部、4はアドレス計算部、5はメモリアクセス
部、6はメモリ部、7は例外処理部で、以上は図1の構
成と同様なものである。図1と異なるのは制御信号18
がテストアンドセット命令の実行によるセマフォの獲得
の失敗に加えて、セマフォを解放する命令の完了を示
し、その制御信号18によって、セマフォの獲得に失敗
したアクセスアドレスまたはセマフォを解放したアクセ
スアドレスを保持し、レジスタアクセス命令によってそ
の内容を読み出すことができるレジスタ14を設けた点
である。
(Embodiment 2) A second embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram of an information processing apparatus showing a second embodiment of the present invention. In the figure, 1 is an instruction decoding unit, 2 is a control unit, 3 is a general-purpose register unit, 4 is an address calculation unit, 5 is a memory access unit, 6 is a memory unit, and 7 is an exception processing unit. The configuration is similar. The difference from FIG. 1 is that the control signal 18
Indicates the completion of the instruction to release the semaphore in addition to the failure to acquire the semaphore due to the execution of the test and set instruction, and the control signal 18 holds the access address where the acquisition of the semaphore failed or the access address which released the semaphore. In addition, the register 14 whose content can be read by the register access instruction is provided.

【0021】以上のように構成された情報処理装置につ
いて、以下その動作を説明する。テストアンドセット命
令の実行は以下のように行なわれる。第1の実施例と同
様にテストアンドセット命令のアクセスアドレスの示す
データをデータ13に読み出し、メモリアクセス部5は
そのデータ13と0x00を比較し、一致しなければセ
マフォの獲得に失敗したことを、制御信号18に出力す
る。ここで、例外処理部7は第1の実施例と同様に例外
ハンドラへの移行を指示する。同時にレジスタ8はテス
トアンドセット命令のアクセスアドレス11を保持す
る。テストアンドセット命令の実行によるセマフォの獲
得の失敗により起動された例外処理ハンドラは、第1の
実施例と同様にセマフォの獲得に失敗した現在実行中の
プロセスを待ち状態にするべくプロセス切替を行なう
が、同時にレジスタ8を読み出す命令を発行しレジスタ
8の内容を読み出し、待ち状態に入る現在実行中のプロ
セスがレジスタ8に保持されているテストアンドセット
命令のアクセスアドレスにあるセマフォの獲得に失敗し
たことを待ち理由としてカーネルデータに登録する。
The operation of the information processing apparatus configured as described above will be described below. The test and set instruction is executed as follows. Similar to the first embodiment, the data indicated by the access address of the test and set instruction is read into the data 13, and the memory access unit 5 compares the data 13 with 0x00. If they do not match, it is determined that the acquisition of the semaphore has failed. , To the control signal 18. Here, the exception handling unit 7 instructs the transition to the exception handler as in the first embodiment. At the same time, the register 8 holds the access address 11 of the test and set instruction. The exception handling handler activated by the failure to acquire the semaphore due to the execution of the test and set instruction switches the process so as to put the currently executing process, which has failed to acquire the semaphore, into the waiting state, as in the first embodiment. , At the same time, issued an instruction to read register 8 and read the contents of register 8 and entered the waiting state The currently executing process failed to acquire the semaphore at the access address of the test and set instruction held in register 8. Register it in the kernel data as the reason for waiting.

【0022】セマフォ解放命令の実行は以下のように行
なわれる。セマフォ解放命令が命令10に現れると、命
令デコード部1はセマフォ解放命令をデコードし、制御
部2にセマフォ解放命令の処理を要求する。制御部2は
セマフォ解放命令のアクセスアドレスのソースデータを
レジスタ部3から読み出す。読み出されたソースデータ
15はアドレス計算部4において加算されセマフォ解放
命令のアクセスアドレス16として出力される。メモリ
アクセス部5は制御部2からセマフォ解放命令の実行を
指示され、アクセスアドレス16をアドレス11に出力
し、データ13に0x00を出力し、メモリ制御信号1
2を用いてメモリ6に対して書き込みを指示する。メモ
リアクセス部5はセマフォ解放命令の実行の完了を制御
信号18に出力し例外処理部7にセマフォ解放命令がセ
マフォの解放を行なったことを示す。例外処理部7は制
御信号18によって、セマフォ解放命令がセマフォの解
放を行なったことを知ると、制御信号19を用いて、制
御部2に対して、例外処理ハンドラへの移行を指示す
る。同時に、レジスタ8はセマフォ解放命令のアクセス
アドレス11を保持する。例外処理ハンドラは、レジス
タ8からセマフォ解放命令のアクセスアドレスを読み出
し、カーネルデータ中の現在待ち状態であるプロセス
で、レジスタ8の保持するセマフォの解放を待っている
プロセスの待ち理由を解除する。そして、レジスタ8に
保持されているアクセスアドレスにあるセマフォの解放
待ちをしていたプロセスがあれば、そこからプロセスを
選択し、なければセマフォ待ち以外の待ち状態のプロセ
スから選択して走行状態にする。セマフォを解放し待ち
状態に入ったプロセスが、後のプロセス切替によって走
行状態になるときは、セマフォ解放命令の次の命令から
実行が再開される。
Execution of the semaphore release instruction is performed as follows. When the semaphore release instruction appears in the instruction 10, the instruction decoding unit 1 decodes the semaphore release instruction and requests the control unit 2 to process the semaphore release instruction. The control unit 2 reads the source data of the access address of the semaphore release instruction from the register unit 3. The read source data 15 is added in the address calculator 4 and output as the access address 16 of the semaphore release instruction. The memory access unit 5 is instructed by the control unit 2 to execute the semaphore release instruction, outputs the access address 16 to the address 11, outputs 0x00 to the data 13, and outputs the memory control signal 1
2 is used to instruct the memory 6 to write. The memory access unit 5 outputs the completion of execution of the semaphore release instruction to the control signal 18 and indicates to the exception processing unit 7 that the semaphore release instruction has released the semaphore. When the exception handling unit 7 knows from the control signal 18 that the semaphore release instruction has released the semaphore, it uses the control signal 19 to instruct the control unit 2 to shift to the exception handling handler. At the same time, the register 8 holds the access address 11 of the semaphore release instruction. The exception handling handler reads the access address of the semaphore release instruction from the register 8 and releases the wait reason of the process waiting for the release of the semaphore held by the register 8 in the process currently in the wait state in the kernel data. Then, if there is a process waiting for the release of the semaphore at the access address held in the register 8, the process is selected from that process, and if there is not, the process in the waiting state other than the semaphore waiting state is selected to enter the running state. To do. When the process that has released the semaphore and entered the waiting state becomes the running state due to the subsequent process switching, execution resumes from the instruction following the semaphore release instruction.

【0023】なお、ここでのプロセスの選択はすべての
プロセスからセマフォの解放待ちのプロセスを除いたプ
ロセス群から次に実行すべきプロセスを適切に選んで走
行状態にすればよく、プロセス固有の優先順位に従って
も良いし、セマフォの解放待ちから解かれたプロセスか
ら選択しても良いし、セマフォの解放を行なったプロセ
スに戻っても良く、それはオペレーティングシステムに
依存する。
The process selection here may be performed by appropriately selecting the process to be executed next from the process group excluding the process waiting for the release of the semaphore from all the processes, and setting the process-specific priority. You can follow the order, you can choose from processes released from waiting to release the semaphore, or you can return to the process that released the semaphore, which is operating system dependent.

【0024】また、セマフォ待ちから解放されたプロセ
スは、セマフォの獲得に失敗したテストアンドセット命
令から実行が再開される。したがって、第1の実施例と
同様な効果に加え、セマフォ待ちの優先順位の高いプロ
セスをセマフォが解放された後、すぐに走行状態にする
ことが可能となり、システム効率が向上する。なお、実
施例において、セマフォはバイトサイズであるとした
が、これはメモリの最小アクセス単位であるか、また
は、テストアンドセット命令およびセマフォ解放命令に
バイト中のどのビットがセマフォであるかを指定する機
能を付加すれば任意のサイズで良い。また、実施例では
セマフォのセット状態を0xffリセット状態を0x0
0としたが、これは、2つの別の任意の固定値であれば
良い。
The process released from the wait for the semaphore resumes execution from the test and set instruction in which acquisition of the semaphore failed. Therefore, in addition to the effect similar to that of the first embodiment, it becomes possible to immediately bring a process having a high priority for waiting for a semaphore into a running state after the semaphore is released, thereby improving system efficiency. Although the semaphore has a byte size in the embodiment, this is the minimum memory access unit, or the test and set instruction and the semaphore release instruction specify which bit in the byte is the semaphore. Any size will do as long as the function to add is added. In the embodiment, the set state of the semaphore is 0xff and the reset state is 0x0.
Although it is set to 0, this may be any other two fixed values.

【0025】[0025]

【発明の効果】以上のように請求項1記載の本発明は、
テストアンドセット命令がセマフォの獲得に失敗したこ
とを検出するデータアクセス部と、このデータアクセス
部の検出したセマフォの獲得の失敗を例外として検出す
る例外処理部を設けることにより、上記データアクセス
部がテストアンドセット命令の実行によって、セマフォ
の獲得に失敗したことを例外処理部に伝え、例外処理部
が例外を発生し、例外処理ハンドラに処理を移し、例外
処理ハンドラはセマフォの獲得に失敗したプロセスを休
眠状態にすることによって、システムの効率を向上する
ことができる。
As described above, the present invention according to claim 1 is
By providing a data access unit that detects that the test and set instruction has failed to acquire the semaphore and an exception processing unit that detects the failure to acquire the semaphore detected by this data access unit as an exception, the data access unit Execution of the test and set instruction notifies the exception processing unit that acquisition of the semaphore has failed, the exception processing unit generates an exception, and transfers processing to the exception processing handler. Putting the dormant into sleep can improve the efficiency of the system.

【0026】また請求項2記載の本発明は、テストアン
ドセット命令の実行によるセマフォの獲得の失敗とセマ
フォの解放の完了を検出するメモリアクセス部と、それ
らの情報によりを例外を発生する例外処理部と、それら
のセマフォに対するアクセスアドレスを保持するレジス
タを設けることにより、セマフォ待ちの優先順位の高い
プロセスをセマフォが解放された後、すぐに走行状態に
することが可能となり、システムの効率を向上すること
ができる。
According to a second aspect of the present invention, a memory access unit for detecting failure of acquisition of a semaphore and completion of release of a semaphore by execution of a test and set instruction, and exception processing for generating an exception according to the information. Sections and registers that hold access addresses for those semaphores make it possible to put a process with a high priority waiting for a semaphore into a running state immediately after the semaphore is released, improving system efficiency. can do.

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

【図1】本発明の第1の実施例における情報処理装置の
構成図
FIG. 1 is a configuration diagram of an information processing device according to a first embodiment of the present invention.

【図2】本発明の第2の実施例における情報処理装置の
構成図
FIG. 2 is a configuration diagram of an information processing device according to a second embodiment of the present invention.

【図3】従来の情報処理装置の概略構成図FIG. 3 is a schematic configuration diagram of a conventional information processing device.

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

1 命令デコード部 2 制御部 3 レジスタ部 4 アドレス計算部 5 メモリアクセス部 6 メモリ 7 例外処理部 8 レジスタ 10 命令 11,16 アドレス 12,17,18,19 制御信号 13,14 データ 15 ソースデータ 1 instruction decoding unit 2 control unit 3 register unit 4 address calculation unit 5 memory access unit 6 memory 7 exception processing unit 8 register 10 instruction 11, 16 address 12, 17, 18, 19 control signal 13, 14 data 15 source data

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】テストアンドセット命令がセマフォの獲得
に失敗したことを検出するメモリアクセス部と、このメ
モリアクセス部の検出したセマフォの獲得の失敗を例外
として検出する例外処理部とを備えた情報処理装置。
1. Information comprising a memory access unit for detecting that a test and set instruction has failed to acquire a semaphore, and an exception processing unit for detecting a failure of acquisition of the semaphore detected by this memory access unit as an exception. Processing equipment.
【請求項2】テストアンドセット命令の実行によるセマ
フォの獲得の失敗とセマフォの解放の完了を検出するメ
モリアクセス部と、それらの情報によりを例外を発生す
る例外処理部と、前記例外の発生を検出し前記セマフォ
のメモリ上のアドレスを退避するレジスタとを備えた情
報処理装置。
2. A memory access unit for detecting failure in acquisition of a semaphore and completion of release of a semaphore due to execution of a test and set instruction, an exception processing unit for generating an exception according to the information, and generation of the exception. An information processing apparatus, comprising: a register that detects and saves an address on the memory of the semaphore.
JP22688192A 1992-08-26 1992-08-26 Information processor Pending JPH0675789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22688192A JPH0675789A (en) 1992-08-26 1992-08-26 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22688192A JPH0675789A (en) 1992-08-26 1992-08-26 Information processor

Publications (1)

Publication Number Publication Date
JPH0675789A true JPH0675789A (en) 1994-03-18

Family

ID=16852043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22688192A Pending JPH0675789A (en) 1992-08-26 1992-08-26 Information processor

Country Status (1)

Country Link
JP (1) JPH0675789A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921250B2 (en) * 2004-07-29 2011-04-05 International Business Machines Corporation Method to switch the lock-bits combination used to lock a page table entry upon receiving system reset exceptions

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921250B2 (en) * 2004-07-29 2011-04-05 International Business Machines Corporation Method to switch the lock-bits combination used to lock a page table entry upon receiving system reset exceptions

Similar Documents

Publication Publication Date Title
JPH06103472B2 (en) Microprocessor for debugging
JPH0675789A (en) Information processor
JP2000284964A (en) Efficient sub-instruction emulation in vliw processor
JP2985244B2 (en) Information processing device
JPS6146552A (en) Information processor
JP2761324B2 (en) High-speed processing method
JPS62125437A (en) Control method for additional processor
JPH0240722A (en) Arithmetic processor
JPH03260839A (en) Microcomputer
JPH04370832A (en) Processor circuit
JPS59178547A (en) Instruction retry system
JPH03127171A (en) Vector processor
JPH0150936B2 (en)
JP2001134449A (en) Data processor and its control method
JPH04328644A (en) Debug back-up device
JPH0259829A (en) Microcomputer
JPH04167146A (en) Address tracing system for information processor
JPS62145428A (en) Arithmetic processor
JPH0282318A (en) Floating-point arithmetic unit
JPS60193047A (en) Mode checking system of microprogram
JPH03269752A (en) Information processing system and input/output controller used for the same
JPH01255037A (en) Electronic computer
JPS6191727A (en) Information take-over system
JPS61165131A (en) Channel processor
JPH08202582A (en) Data transferring device for microprocessor