JPH11134202A - Task switching device - Google Patents

Task switching device

Info

Publication number
JPH11134202A
JPH11134202A JP9295134A JP29513497A JPH11134202A JP H11134202 A JPH11134202 A JP H11134202A JP 9295134 A JP9295134 A JP 9295134A JP 29513497 A JP29513497 A JP 29513497A JP H11134202 A JPH11134202 A JP H11134202A
Authority
JP
Japan
Prior art keywords
context
task
task switching
information
switching device
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
JP9295134A
Other languages
Japanese (ja)
Inventor
Hiroshi Morimoto
浩 森本
Takuya Nomura
琢家 野村
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 JP9295134A priority Critical patent/JPH11134202A/en
Publication of JPH11134202A publication Critical patent/JPH11134202A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To preserve a task state at the time of switching a task and to suppress the use quantity of a context preservation part to a minimum since a large quantity of necessary context information is preserved in a whole task state because the task state at the time of calling the task cannot be discriminated in a former task switching device and the use quantity of the context preservation part is preserved since unnecessary context information is preserved in the task state. SOLUTION: Since the task state at the time of calling task switching is preserved, a task state identification part 23 preserves identification information 32 in the task state into the specified area of the context preservation part 31. A restoration state identification part 26 can identify the task state before task switching from identification information 32 of the context preservation part 31 after a task switching processing. Thus, context information 33 of the context preservation part 31 is optimized and the use quantity of the context preservation part 31 can be reduced.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロプロセッ
サ等に組み込まれるタスク切替え装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a task switching device incorporated in a microprocessor or the like.

【0002】[0002]

【従来の技術】図7は、従来のタスク切替え装置のブロ
ック図である。
2. Description of the Related Art FIG. 7 is a block diagram of a conventional task switching device.

【0003】同図において、タスク切替え装置111
は、コンテキスト待避部123とタスク切替部124と
コンテキスト復帰部125から構成され、コンテキスト
保存部131との間でデータの読み書きを行う。また、
タスク部121には通常のプログラムを、タスク独立部
122には割り込みプログラムを格納する。そしてプロ
グラムは機械語であるが、アセンブラから変換されたも
の(プログラム1、3)と、C言語等の高級言語から変
換されたもの(プログラム2、4)とがある。
In FIG. 1, a task switching device 111
Comprises a context saving unit 123, a task switching unit 124, and a context return unit 125, and reads and writes data from and to the context storage unit 131. Also,
The task section 121 stores a normal program, and the task independent section 122 stores an interrupt program. The program is a machine language, and includes a program converted from an assembler (programs 1 and 3) and a program converted from a high-level language such as C language (programs 2 and 4).

【0004】タスク切替え装置111は、タスク部12
1またはタスク独立部122が現在実行しているタスク
(プログラム)と別のタスクを実行しようとするとき、
タスク切替え処理を行った後に、任意のタスクが実行さ
れる。従って、タスク部121のタスクが実行中にタス
ク独立部122のタスクが割り込んで実行される場合
(割り込み)と、タスク独立部122のタスクが実行中
にさらにタスク独立部122のタスクが割り込んで実行
される場合(多重割り込み)とがある。また、割り込み
が実行終了後はもとのタスクの実行が再開されることに
なる。
The task switching device 111 includes a task unit 12
When one or the task independent unit 122 attempts to execute a task different from the task (program) currently being executed,
After performing the task switching process, an arbitrary task is executed. Therefore, when the task of the task independent unit 122 is interrupted and executed while the task of the task unit 121 is executing (interrupt), the task of the task independent unit 122 is further interrupted and executed while the task of the task independent unit 122 is executing. (Multiple interrupts). After execution of the interrupt is completed, execution of the original task is resumed.

【0005】以上の構成を持つ従来のタスク切替え装置
111について、コンテキスト保存部131にタスク部
121とタスク独立部122とを実行させる為に必要な
コンテキスト情報141を保存・復元する動作を説明す
る。 (1) コンテキスト保存部131へのコンテキスト情
報141の待避動作 タスク部121又はタスク独立部122が現在実行中の
タスクと別のタスクを実行しようとするとき、タスク切
替え装置111はタスク状態に関係なくすべての一定量
のコンテキスト情報141をコンテキスト保存部131
に保存する。なお、コンテキスト情報141とはもとの
タスクの実行するためのすべての情報をいい、PSW
(プログラムステータスワード)等が含まれる。 (2) コンテキスト保存部131からのコンテキスト
情報141の復帰動作 コンテキスト復帰部125は、コンテキスト保存部13
1に格納されている一定量のコンテキスト情報141を
復帰させ、もとのタスクの実行が再開される。
The operation of the conventional task switching device 111 having the above configuration for saving and restoring the context information 141 necessary for causing the context storage unit 131 to execute the task unit 121 and the task independent unit 122 will be described. (1) Operation of Saving Context Information 141 to Context Saving Unit 131 When the task unit 121 or the task independent unit 122 attempts to execute a task different from the task currently being executed, the task switching device 111 operates regardless of the task state. All the fixed amount of context information 141 is stored in the context storage unit 131.
To save. Note that the context information 141 refers to all information for executing the original task.
(Program status word) and the like. (2) Operation for Returning Context Information 141 from Context Storage Unit 131 The context recovery unit 125
1 is restored, and the execution of the original task is resumed.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記の
従来のタスク切替え装置111は、現在実行されている
タスクの種類に関わらず、すべての一定量のコンテキス
ト情報141をコンテキスト保存部131に保存してい
た。このため、保存および復元のための処理時間が増大
し、かつ多大な容量のコンテキスト保存部131を必要
とするという問題点を有している。
However, the above-described conventional task switching device 111 stores all the fixed amount of context information 141 in the context storage unit 131 regardless of the type of the currently executed task. Was. For this reason, there is a problem that the processing time for saving and restoring increases, and that a large capacity of the context saving unit 131 is required.

【0007】すなわち、タスクが切り替えられる前に実
行されていたのが、アセンブラから変換されたプログラ
ムである場合とC言語から変換されたプログラムである
場合とでは保存すべき情報量が違うにも関わらず、常に
一定の情報を保存していた。
[0007] That is, although the amount of information to be stored is different between a case where a program converted from an assembler and a case where a program is converted from a C language are executed before the task is switched. And always stored certain information.

【0008】具体的には、C言語を変換するコンパイラ
は使用するレジスタ数が規定されておりハードウェアが
有するレジスタをすべて使用する訳ではない。一方アセ
ンブラでは作成者がレジスタを自由に使用できる。
More specifically, the compiler for converting the C language defines the number of registers to be used, and does not use all the registers of the hardware. The assembler, on the other hand, allows the author to use registers freely.

【0009】従って、C言語から変換された機械語によ
るタスクを実行中に割り込みが発生した場合はコンパイ
ラで規定されたレジスタ数だけを情報待避すれば足り、
アセンブラから変換された機械語によるタスクを実行中
に割り込みが発生した場合はハードウェアが備えるすべ
てのレジスタの情報を待避しなければならない。
Therefore, if an interrupt occurs during execution of a task using a machine language converted from the C language, it is sufficient to save only the number of registers specified by the compiler.
If an interrupt occurs during execution of a task in the machine language converted from the assembler, it is necessary to save the information of all registers provided in the hardware.

【0010】本発明はかかる点に鑑み、タスク切替え時
に待避するコンテキスト情報量を最適にすることでコン
テキストの保存および復元の処理時間とコンテキスト保
存部の使用量とを最小限にすることを目的とする。
In view of the foregoing, it is an object of the present invention to minimize the processing time for saving and restoring a context and the amount of use of a context storage unit by optimizing the amount of context information saved at the time of task switching. I do.

【0011】[0011]

【課題を解決するための手段】この課題を解決するため
本発明の請求項1記載のタスク切替え装置は、退避が必
要なコンテキストを識別し、識別情報を所定の領域に退
避するタスク状態識別手段と、前記タスク状態識別手段
により識別されたコンテキストを退避するコンテキスト
退避手段と、前記所定の領域から識別情報を読出して復
帰が必要なコンテキストを識別する復帰状態識別手段
と、前記復帰状態識別手段により識別されたコンテキス
トを復帰するコンテキスト復帰手段とを備えることを特
徴とする。
In order to solve this problem, a task switching device according to a first aspect of the present invention identifies a context that needs to be saved, and saves identification information to a predetermined area. A context saving unit that saves the context identified by the task state identification unit; a return state identification unit that reads identification information from the predetermined area to identify a context that needs to be restored; And context return means for returning the identified context.

【0012】本発明の請求項2記載のタスク切替え装置
は、請求項1記載のタスク切替え装置において、前記タ
スク状態識別手段は、タスク切り替えがアセンブラ言語
のプログラムでなされたか高級言語のプログラムでなさ
れたかの情報を前記識別情報としたものである。
According to a second aspect of the present invention, there is provided the task switching apparatus according to the first aspect, wherein the task state identifying means determines whether the task switching is performed by an assembler language program or a high-level language program. Information is the identification information.

【0013】本発明の請求項3記載のタスク切替え装置
は、請求項2記載のタスク切替え装置において、前記コ
ンテキスト退避手段は、前記タスク状態識別手段により
タスク切り替えが高級言語のプログラムでなされたこと
が識別された場合、前記高級言語の言語処理系において
破壊レジスタと定義されたレジスタを含まないコンテキ
ストを退避するとしたものである。
According to a third aspect of the present invention, there is provided the task switching apparatus according to the second aspect, wherein the context saving means is configured such that the task switching is performed by the high-level language program by the task state identification means. If it is identified, a context that does not include a register defined as a destructive register in the language processing system of the high-level language is saved.

【0014】本発明の請求項4記載のタスク切替え装置
は、請求項3記載のタスク切替え装置において、前記コ
ンテキスト退避手段は、引数または戻り値を格納するレ
ジスタに対して、該レジスタが前記破壊レジスタと定義
されたレジスタに含まれる場合であっても、該レジスタ
を退避するとしたものである。
According to a fourth aspect of the present invention, in the task switching apparatus according to the third aspect, the context saving means is arranged such that a register for storing an argument or a return value is the destruction register. Even if the register is included in the register defined as, the register is saved.

【0015】本発明の請求項5記載のタスク切替え装置
は、請求項3記載のタスク切替え装置において、前記コ
ンテキスト退避手段は、前記タスク状態識別手段により
タスク切り替えが高級言語のプログラムでなされたこと
が識別された場合であっても、該タスク切替えが各タス
クから独立なプログラムからなされた場合は、前記破壊
レジスタと定義されたレジスタを退避するとしたもので
ある。
According to a fifth aspect of the present invention, there is provided the task switching device according to the third aspect, wherein the context saving means is configured such that the task switching by the task state identification means is performed by a high-level language program. Even if the task is identified, if the task switching is performed by a program independent of each task, the register defined as the destruction register is saved.

【0016】本発明の請求項6記載のタスク切替え装置
は、請求項5記載のタスク切替え装置において、各タス
クから独立な前記プログラムは、割り込みプログラムで
あるとしたものである。
According to a sixth aspect of the present invention, in the task switching apparatus according to the fifth aspect, the program independent of each task is an interrupt program.

【0017】本発明の請求項7記載のタスク切替え装置
は、請求項1記載のタスク切替え装置において、前記識
別情報は、退避または復帰するコンテキストにいかなる
資源を含むかを、ビット毎に該資源を割り付けた情報ま
たは含む資源の状態をエンコードした情報であるとした
ものである。
According to a seventh aspect of the present invention, there is provided the task switching apparatus according to the first aspect, wherein the identification information indicates which resource is included in the context to be saved or restored, for each bit. It is assumed that the allocated information or the state of the included resource is encoded information.

【0018】本発明の請求項8記載のタスク切替え装置
は、請求項1から7のいずれか1項に記載のタスク切替
え装置において、前記所定の領域と、前記コンテキスト
退避手段によりコンテキストが退避される領域とは、予
め定められたコンテキスト保存領域において互いに連続
するとしたものである。
According to an eighth aspect of the present invention, in the task switching apparatus according to any one of the first to seventh aspects, a context is saved by the predetermined area and the context saving means. The region is defined as being continuous with each other in a predetermined context storage region.

【0019】本発明の請求項9記載のタスク切替え装置
は、請求項1から7のいずれか1項に記載のタスク切替
え装置において、前記所定の領域は、前記コンテキスト
退避手段によりコンテキストが退避される際に、該コン
テキストに含まれる資源を所定のデータ長に整列させて
退避するときに発生する未使用領域の一部または全部で
あるとしたものである。
A task switching device according to a ninth aspect of the present invention is the task switching device according to any one of the first to seventh aspects, wherein a context of the predetermined area is saved by the context saving means. At this time, the resources included in the context are part or all of the unused area generated when the resources are saved after being arranged in a predetermined data length.

【0020】[0020]

【発明の実施の形態】以下、本発明の実施形態につい
て、図1から図6を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS.

【0021】図1は、本発明の実施形態におけるタスク
切替え装置の構成および使用形態図である。
FIG. 1 is a diagram showing the configuration and use of a task switching device according to an embodiment of the present invention.

【0022】同図において、タスク切替え装置11は、
タスク状態識別部23と、コンテキスト待避部24と、
タスク切替部25と、復帰状態識別部26と、コンテキ
スト復帰部27とから構成され、コンテキスト保存部3
1との間でデータの読み書きを行う。
In FIG. 1, the task switching device 11
A task state identification unit 23, a context saving unit 24,
The context switching unit 3 includes a task switching unit 25, a return state identification unit 26, and a context return unit 27.
Data is read from and written to 1.

【0023】この実施の形態では、タスク状態識別部2
3によって現在実行中のタスクがアセンブラから変換さ
れた機械語か、C言語等の高級言語から変換された機械
語かを識別し、C言語等から変換された機械語である場
合は保存する情報量を最適とするものである。
In this embodiment, the task state identification unit 2
3 identifies whether the currently executing task is a machine language converted from an assembler or a machine language converted from a high-level language such as C language, and information to be saved if the task is a machine language converted from C language or the like. The amount is optimized.

【0024】すなわち、アセンブラから変換された機械
語によるタスクを実行中に割り込みが発生した場合は、
ハードウェアが備えるすべてのレジスタの情報を待避す
る。一方、C言語等から変換された機械語である場合
は、コンパイラが規定するレジスタのみの情報を待避す
るものである。
That is, if an interrupt occurs during execution of a task using the machine language converted from the assembler,
Save the information of all registers provided in hardware. On the other hand, if the language is a machine language converted from the C language or the like, information of only the register specified by the compiler is saved.

【0025】以上の構成を持つ本発明のタスク切替え装
置11について、タスク部21とタスク独立部22とを
実行させる為に必要なコンテキストをコンテキスト保存
部31に保存・復元させる動作を説明する。 (1)タスク状態識別部23のタスク状態の退避動作 タスク状態識別部23は、現在実行中のタスクがアセン
ブラから変換された機械語又はC言語等から変換された
機械語によるものかを区別し、その状態の情報をコンテ
キスト保存部31の特定された未使用領域に識別情報3
2として保存すると共に、コンテキスト待避部24にそ
の状態を渡す。
With respect to the task switching device 11 of the present invention having the above-described configuration, an operation of saving and restoring a context necessary for executing the task unit 21 and the task independent unit 22 in the context saving unit 31 will be described. (1) Task state saving operation of the task state identification unit 23 The task state identification unit 23 distinguishes whether the currently executing task is a machine language converted from an assembler or a machine language converted from a C language or the like. The information of the state is stored in the specified unused area of the context storage unit 31 with the identification information 3.
2, and the status is passed to the context saving unit 24.

【0026】なお、上記の区別は一般に、アセンブラか
ら変換された機械語とC言語から変換された機械語とは
別のメモリ空間に格納されるため、いずれのメモリ空間
に格納されているかを認識することにより実現する。 (2)コンテキスト待避部24のコンテキスト保存部3
1への待避動作 コンテキスト待避部24は、タスク状態識別部23から
渡されたタスク状態をもとに、タスク状態に応じた最適
なコンテキスト情報33をタスク保存部31に待避す
る。 (3)復帰状態識別部26のコンテキスト情報33の復
帰動作 復帰状態識別部26は、コンテキスト保存部31の特定
領域に保存されている識別情報34を読み出し、コンテ
キスト保存部31に保存されているコンテキスト情報3
5の種類を識別すると共に、保存されているコンテキス
ト情報35の種類に関する情報をコンテキスト復帰部2
7に渡す。
Note that the above distinction is generally made so that the machine language converted from the assembler and the machine language converted from the C language are stored in different memory spaces, so that it is recognized which memory space is stored. It is realized by doing. (2) Context saving unit 3 of context saving unit 24
Save operation to 1 The context save unit 24 saves the optimal context information 33 corresponding to the task state in the task storage unit 31 based on the task state passed from the task state identification unit 23. (3) Return Operation of Context Information 33 of Return State Identification Unit 26 The return state identification unit 26 reads the identification information 34 stored in a specific area of the context storage unit 31, and reads the context stored in the context storage unit 31. Information 3
5 as well as information on the type of the saved context information 35.
Pass to 7.

【0027】これにより、保存する情報量を切り替えて
いるため、必要な情報を復帰させることができる。 (4)コンテキスト復帰部27のコンテキスト保存部3
1からの復帰動作 コンテキスト復帰部27は、復帰状態識別部26から渡
された情報をもとに、コンテキスト保存部31からコン
テキスト情報35を読み込み、コンテキスト情報33を
復帰させて、次のタスクを実行させる。
Thus, since the amount of information to be stored is switched, necessary information can be restored. (4) Context storage unit 3 of context return unit 27
Return operation from 1 The context return unit 27 reads the context information 35 from the context storage unit 31 based on the information passed from the return state identification unit 26, restores the context information 33, and executes the next task. Let it.

【0028】以下に本実施形態のタスク切替え装置をフ
ローチャートおよびコンテキスト保存部の状態を図を用
いて説明する。
The task switching device according to the present embodiment will be described below with reference to the flowchart and the state of the context storage unit.

【0029】まず、図2は、本実施形態のタスク切替え
装置が対象とするプロセッサのコンテキストとなり得る
レジスタを示した図である。このプロセッサは、いずれ
も24ビットのデータレジスタD0〜D3、アドレスレ
ジスタA0〜A3、プログラムカウンタPCと、16ビ
ットのプロセッサ状態語PSWを備える。 (1)タスク部21からのタスク切替え呼び出し タスク部21は主にユーザのアプリケーションタスクで
構成され、関数単位のタスク切替えが行われる。
First, FIG. 2 is a diagram showing registers that can be a context of a processor targeted by the task switching device of the present embodiment. This processor includes 24-bit data registers D0 to D3, address registers A0 to A3, a program counter PC, and a 16-bit processor status word PSW. (1) Task switching call from the task unit 21 The task unit 21 is mainly configured by a user application task, and performs task switching in units of functions.

【0030】コンテキストの退避に関しては、タスク状
態識別部23とコンテキスト待避部24とが以下のよう
に作用する。
With regard to the context saving, the task state identifying unit 23 and the context saving unit 24 operate as follows.

【0031】図3はコンテキスト情報を待避するプログ
ラムフローチャート、図4はアセンブラ言語でタスク切
替装置11を呼び出した場合のコンテキスト保存部の構
造を示した図、図5は高級言語でタスク切替装置11を
呼び出した場合のコンテキスト保存部の構造を示した図
である。
FIG. 3 is a program flowchart for saving context information, FIG. 4 is a diagram showing the structure of a context storage unit when the task switching device 11 is called in assembler language, and FIG. 5 is a diagram showing the task switching device 11 in high-level language. FIG. 6 is a diagram illustrating a structure of a context storage unit when called.

【0032】アセンブラ言語におけるタスク切替え呼び
出しの場合(ステップ201から始める)、コンテキス
ト保存部31に退避領域を確保する(ステップ20
3)。退避領域は、図2に示す全てのコンテキストを格
納するための38バイトを必要とする。次にアセンブラ
言語を示す識別情報を保存する(ステップ204)。識
別情報は、コンテキスト保存部の先頭から3を加算した
1バイト分の領域402のLSBに値0として示され
る。LSB以外は何でもよいが、判断のしやすさの観点
からLSB以外は0とする。そしてアセンブラ言語から
の呼び出しのみに退避必要なコンテキスト情報を退避す
る(ステップ205)。ここでは、データレジスタD0
とD1、アドレスレジスタA0の内容がそれぞれコンテ
キスト8情報〜コンテキスト10情報として、領域40
9〜411に退避される。最後にアセンブラ言語と高級
言語に必要なコンテキスト情報を退避する(ステップ2
08)。ここでは、データレジスタD2とD3、アドレ
スレジスタA1〜A3、プログラムカウンタPC、プロ
セッサ状態語PSWの内容がそれぞれコンテキスト1情
報〜コンテキスト7情報として、領域401と領域40
3〜408に退避される。以上でコンテキスト情報の退
避を完了する。なお、コンテキスト2情報〜コンテキス
ト6情報およびコンテキスト8情報〜コンテキスト10
情報は、コンテキスト1情報と同様にそれぞれの領域の
下位3バイトの位置に保存される。
In the case of a task switching call in the assembler language (starting from step 201), a save area is secured in the context storage unit 31 (step 20).
3). The save area requires 38 bytes for storing all the contexts shown in FIG. Next, identification information indicating the assembler language is stored (step 204). The identification information is indicated as a value 0 in the LSB of the 1-byte area 402 obtained by adding 3 from the beginning of the context storage unit. Anything other than the LSB is acceptable, but from the viewpoint of ease of determination, it is set to 0 except for the LSB. Then, the context information required to be saved only for the call from the assembler language is saved (step 205). Here, the data register D0
, D1, and the contents of the address register A0 as the context 8 information to the context 10 information, respectively.
9 to 411. Finally, save the context information necessary for the assembler language and high-level language (Step 2
08). Here, the contents of the data registers D2 and D3, the address registers A1 to A3, the program counter PC, and the processor status word PSW are defined as context 1 information to context 7 information, respectively, in the areas 401 and 40.
It is saved to 3-408. Thus, the saving of the context information is completed. Context 2 information to context 6 information and context 8 information to context 10
The information is stored in the lower 3 bytes of each area as in the context 1 information.

【0033】C言語などの高級言語におけるタスク切替
え呼び出しの場合(ステップ202から始める)、コン
テキスト保存部31に退避領域を確保する(ステップ2
06)。退避領域は、図2に示すコンテキストの内から
破壊レジスタとして定義されているデータレジスタD0
とD1およびアドレスレジスタA0を除くものを格納す
るための26バイトしか必要としない。破壊レジスタは
プログラムの関数間における値の保証が不要なレジスタ
としてコンパイラなどの言語処理系で扱われるレジスタ
である。次に高級言語を示す識別情報を保存する(ステ
ップ207)。識別情報は、コンテキスト保存部の先頭
から3を加算した1バイト分の領域402のLSBに値
1として示される。LSB以外は何でもよいが、判断の
しやすさの観点からLSB以外は0とする。そしてアセ
ンブラ言語と高級言語に共通して必要なコンテキスト情
報を退避する(ステップ208)。ここでは、データレ
ジスタD2とD3、アドレスレジスタA1〜A3、プロ
グラムカウンタPC、プロセッサ状態語PSWの内容が
それぞれコンテキスト1情報〜コンテキスト7情報とし
て、領域401と領域403〜408に退避される。以
上でコンテキスト情報の退避を完了する。なお、コンテ
キスト2情報〜コンテキスト6情報は、コンテキスト1
情報と同様にそれぞれの領域の下位3バイトの位置に保
存される。
In the case of a task switching call in a high-level language such as the C language (starting from step 202), a save area is secured in the context storage unit 31 (step 2).
06). The save area is a data register D0 defined as a destruction register from the context shown in FIG.
And only 26 bytes are required to store anything except D1 and address register A0. A destruction register is a register that is handled by a language processing system such as a compiler as a register that does not need to guarantee a value between functions of a program. Next, the identification information indicating the high-level language is stored (step 207). The identification information is indicated as the value 1 in the LSB of the 1-byte area 402 obtained by adding 3 from the top of the context storage unit. Anything other than the LSB is acceptable, but from the viewpoint of ease of determination, it is set to 0 except for the LSB. Then, necessary context information common to both the assembler language and the high-level language is saved (step 208). Here, the contents of the data registers D2 and D3, the address registers A1 to A3, the program counter PC, and the processor status word PSW are saved in the area 401 and the areas 403 to 408 as context 1 information to context 7 information, respectively. Thus, the saving of the context information is completed. The context 2 information to the context 6 information correspond to the context 1
Like the information, it is stored in the lower 3 bytes of each area.

【0034】コンテキストの復帰に関しては、復帰状態
識別部26とコンテキスト復帰部27とが以下のように
作用する。
Regarding the context restoration, the restoration state identification unit 26 and the context restoration unit 27 operate as follows.

【0035】図6は、コンテキスト情報を復帰するプロ
グラムフローチャートである。まず、復帰状態識別部2
6がコンテキスト保存部の先頭に3を加算した領域40
2から識別情報を読み出し(ステップ301)、アセン
ブラ言語からの呼び出しか、高級言語からの呼び出しか
を識別する(ステップ302)。領域402の1バイト
のデータが0なら前者、1なら後者である。
FIG. 6 is a program flowchart for restoring context information. First, the return state identification unit 2
6 is an area 40 in which 3 is added to the head of the context storage unit
Then, identification information is read out from Step 2 (Step 301), and it is determined whether the call is from an assembler language or a high-level language (Step 302). If the 1-byte data of the area 402 is 0, the former is 1, and if it is 1, the latter is the latter.

【0036】アセンブラ言語からの呼び出しと判定した
場合は、アセンブラ言語のみ待避したコンテキスト情報
を復帰し(ステップ303)、その領域を開放する(ス
テップ304)。具体的には、図4において、領域40
9〜411からコンテキスト8情報〜コンテキスト10
情報を取り出してそれぞれデータレジスタD0、アドレ
スレジスタA0とA1に格納する。続いて共通で待避さ
れたコンテキスト情報を復帰してその領域を開放する
(ステップ305)。具体的には、領域401と領域4
03〜408からコンテキスト1情報〜コンテキスト7
情報を取り出してそれぞれデータレジスタD1〜D3、
アドレスレジスタA2とA3、プログラムカウンタP
C、プロセッサ状態語PSWに格納する。以上でコンテ
キスト情報の退避を完了する。なお、領域の開放はスタ
ックポインタを更新するなどして実現される。
If it is determined that the call is made from the assembler language, the context information saved only in the assembler language is restored (step 303), and the area is released (step 304). Specifically, in FIG.
9 to 411 to context 8 information to context 10
The information is taken out and stored in the data register D0 and the address registers A0 and A1, respectively. Subsequently, the common saved context information is restored to open the area (step 305). Specifically, the area 401 and the area 4
Context 1 information to Context 7 from 03 to 408
The information is taken out and the data registers D1 to D3,
Address registers A2 and A3, program counter P
C, stored in the processor status word PSW. Thus, the saving of the context information is completed. The release of the area is realized by updating the stack pointer or the like.

【0037】高級言語からの呼び出しと判定した場合
は、共通で待避されたコンテキスト情報を復帰してその
領域を開放する(ステップ305)。破壊レジスタとし
て定義されているデータレジスタD0およびアドレスレ
ジスタA0とA1については復帰する必要がない。具体
的には、領域401と領域403〜408からコンテキ
スト1情報〜コンテキスト7情報を取り出してそれぞれ
データレジスタD1〜D3、アドレスレジスタA2とA
3、プログラムカウンタPC、プロセッサ状態語PSW
に格納する。以上でコンテキスト情報の退避を完了す
る。なお、領域の開放はスタックポインタを更新するな
どして実現される。 (2)タスク独立部22からのタスク切替え呼び出し タスク独立部22は主に割り込みプログラムである。従
って、高級言語におけるタスク切替え呼び出しであって
も全てのコンテキストを退避および復帰する必要があ
る。アセンブラ言語および高級言語いずれの場合も、コ
ンテキスト保存部の構造は図4に示すものと同じにな
り、退避および復帰の動作は上記(1)のアセンブラ言
語の場合と同一である。
If it is determined that the call is made from a high-level language, the commonly saved context information is restored and the area is released (step 305). It is not necessary to return the data register D0 and the address registers A0 and A1 defined as the destruction registers. Specifically, the context 1 information to the context 7 information are extracted from the area 401 and the areas 403 to 408, and the data registers D1 to D3 and the address registers A2 and A3 are respectively obtained.
3. Program counter PC, processor status word PSW
To be stored. Thus, the saving of the context information is completed. The release of the area is realized by updating the stack pointer or the like. (2) Task switching call from the task independent unit 22 The task independent unit 22 is mainly an interrupt program. Therefore, it is necessary to save and restore all contexts even in the case of a task switching call in a high-level language. In both the assembler language and the high-level language, the structure of the context storage unit is the same as that shown in FIG. 4, and the saving and restoring operations are the same as in the case of the assembler language (1).

【0038】以上のように本発明の実施形態によれば、
タスク切替えがアセンブラ言語からなされたか高級言語
からなされたかを示す情報をコンテキスト保存部31の
領域402に保存し、高級言語の場合の破壊レジスタの
退避を省略する事で、コンテキスト保存部31に保存さ
れるコンテキスト情報量は最適になり、コンテキストの
保存および復元の処理時間とコンテキスト保存部31の
使用量とを削減することができる。さらに、領域402
には、3バイト長のレジスタをワード整列させたときに
発生する未使用領域を割り当てているため、識別情報の
保存によるコンテキスト保存部31の使用量の増大を招
かない。
As described above, according to the embodiment of the present invention,
Information indicating whether the task switching is performed in the assembler language or in the high-level language is stored in the area 402 of the context storage unit 31, and is saved in the context storage unit 31 by omitting the saving of the destruction register in the case of the high-level language. The amount of context information to be used is optimized, and the processing time for saving and restoring the context and the usage of the context storage unit 31 can be reduced. Further, the area 402
Since the unused area generated when the 3-byte long register is word-aligned is allocated, the usage of the context storage unit 31 due to the storage of the identification information does not increase.

【0039】なお、上記実施形態では、タスク切替えが
アセンブラ言語からなされたか高級言語からなされたか
を示す2値の情報のみをコンテキスト保存部31の領域
402に保存しているが、直接的にコンテキスト保存部
31に保存されるコンテキスト情報を識別するようにし
てもよい。例えば、8ビットの領域402のビットそれ
ぞれにデータレジスタD0〜D3およびアドレスレジス
タA0〜A3の退避の有無を示すようにしてもよいし、
256種類までの情報を8ビットにエンコードするよう
にしてもよい。
In the above embodiment, only the binary information indicating whether the task switching is performed in the assembler language or in the high-level language is stored in the area 402 of the context storage unit 31. The context information stored in the unit 31 may be identified. For example, each bit of the 8-bit area 402 may indicate whether the data registers D0 to D3 and the address registers A0 to A3 are saved,
Up to 256 types of information may be encoded into 8 bits.

【0040】また、上記実施形態では、識別情報を格納
する領域402には3バイト長のレジスタをワード整列
させたときに発生する未使用領域を割り当てているが、
プロセッサ状態語PSWを退避する領域の、本来プロセ
ッサ状態語PSWに未使用のビットを利用してもよい
し、敢えて専用の領域を割り当ててもよい。後者の場合
でも、該専用領域がコンテキスト保存部に保存されるコ
ンテキスト情報の削減量を下回れば効果がある。特に、
4バイト長のレジスタの内容を保存する場合には有効と
なることが多い。
In the above embodiment, an unused area generated when a 3-byte register is word-aligned is assigned to the area 402 for storing identification information.
Unused bits in the area where the processor status word PSW is saved may be used as the processor status word PSW, or a dedicated area may be allocated. Even in the latter case, it is effective if the amount of the dedicated area is smaller than the reduction amount of the context information stored in the context storage unit. Especially,
It is often effective when storing the contents of a 4-byte length register.

【0041】また、上記実施形態では、破壊レジスタを
データレジスタD0とD1およびアドレスレジスタA0
としているが、これらに限定されるものではない。さら
に、破壊レジスタに引数または戻り値を格納するレジス
タを割り付ける場合、高級言語におけるタスク切替え呼
び出しであってもこれらのレジスタを退避や復帰するよ
うにしてもよい。
Further, in the above embodiment, the destruction registers are the data registers D0 and D1 and the address register A0.
However, the present invention is not limited to these. Further, when a register for storing an argument or a return value is allocated to the destruction register, these registers may be saved or restored even in a task switching call in a high-level language.

【0042】[0042]

【発明の効果】以上のように本発明の請求項1記載のタ
スク切替え装置は、退避が必要なコンテキストを識別
し、識別情報を所定の領域に退避するタスク状態識別手
段と、前記タスク状態識別手段により識別されたコンテ
キストを退避するコンテキスト退避手段と、前記所定の
領域から識別情報を読出して復帰が必要なコンテキスト
を識別する復帰状態識別手段と、前記復帰状態識別手段
により識別されたコンテキストを復帰するコンテキスト
復帰手段とを備えることを特徴とする。
As described above, the task switching device according to the first aspect of the present invention provides a task state identification unit that identifies a context that needs to be saved and saves identification information to a predetermined area. Means for saving the context identified by the means, means for reading the identification information from the predetermined area to identify the context which needs to be restored, and means for restoring the context identified by the means for identifying the restored state And a context return unit.

【0043】この構成によれば、退避および復帰が必要
なコンテキストのみが識別され、保存されるコンテキス
ト情報量は最適になり、コンテキストの量を削減するこ
とができる。
According to this configuration, only contexts that need to be saved and restored are identified, the amount of context information to be saved is optimized, and the amount of context can be reduced.

【0044】本発明の請求項2記載のタスク切替え装置
は、請求項1記載のタスク切替え装置において、前記タ
スク状態識別手段は、タスク切り替えがアセンブラ言語
のプログラムでなされたか高級言語のプログラムでなさ
れたかの情報を前記識別情報としたものである。
According to a second aspect of the present invention, there is provided the task switching apparatus according to the first aspect, wherein the task state identifying means determines whether the task switching is performed by an assembler language program or a high-level language program. Information is the identification information.

【0045】この構成によれば、最小の識別情報のみで
退避および復帰が必要なコンテキストを効率よく識別す
ることができる。
According to this configuration, it is possible to efficiently identify a context that needs to be saved and restored using only the minimum identification information.

【0046】本発明の請求項3記載のタスク切替え装置
は、請求項2記載のタスク切替え装置において、前記コ
ンテキスト退避手段は、前記タスク状態識別手段により
タスク切り替えが高級言語のプログラムでなされたこと
が識別された場合、前記高級言語の言語処理系において
破壊レジスタと定義されたレジスタを含まないコンテキ
ストを退避するとしたものである。
According to a third aspect of the present invention, in the task switching apparatus according to the second aspect, the context saving unit is configured such that the task switching by the task state identification unit is performed by a high-level language program. If it is identified, a context that does not include a register defined as a destructive register in the language processing system of the high-level language is saved.

【0047】この構成によれば、破壊レジスタの退避お
よび復帰がなくなり、保存されるコンテキスト情報量は
最適になり、コンテキストの量を削減することができ
る。
According to this configuration, there is no need to save and restore the destruction register, the amount of context information to be saved is optimized, and the amount of context can be reduced.

【0048】本発明の請求項4記載のタスク切替え装置
は、請求項3記載のタスク切替え装置において、前記コ
ンテキスト退避手段は、引数または戻り値を格納するレ
ジスタに対して、該レジスタが前記破壊レジスタと定義
されたレジスタに含まれる場合であっても、該レジスタ
を退避するとしたものである。
According to a fourth aspect of the present invention, there is provided the task switching device according to the third aspect, wherein the context saving means is configured such that a register for storing an argument or a return value is the destruction register. Even if the register is included in the register defined as, the register is saved.

【0049】この構成によれば、引数または戻り値が格
納される破壊レジスタは退避され、容易に矛盾なくコン
テキストが切替えられる。
According to this configuration, the destruction register storing the argument or the return value is saved, and the context is easily switched without contradiction.

【0050】本発明の請求項5記載のタスク切替え装置
は、請求項3記載のタスク切替え装置において、前記コ
ンテキスト退避手段は、前記タスク状態識別手段により
タスク切り替えが高級言語のプログラムでなされたこと
が識別された場合であっても、該タスク切替えが各タス
クから独立なプログラムからなされた場合は、前記破壊
レジスタと定義されたレジスタを退避するとしたもので
ある。
According to a fifth aspect of the present invention, there is provided the task switching device according to the third aspect, wherein the context saving unit is configured such that the task switching is performed by the high-level language program by the task state identification unit. Even if the task is identified, if the task switching is performed by a program independent of each task, the register defined as the destruction register is saved.

【0051】この構成によれば、各タスクから独立なプ
ログラムでは破壊レジスタは退避され、容易に矛盾なく
コンテキストが切替えられる。
According to this configuration, in a program independent of each task, the destruction register is saved, and the context is easily switched without contradiction.

【0052】本発明の請求項6記載のタスク切替え装置
は、請求項5記載のタスク切替え装置において、各タス
クから独立な前記プログラムは、割り込みプログラムで
あるとしたものである。
A task switching device according to a sixth aspect of the present invention is the task switching device according to the fifth aspect, wherein the program independent of each task is an interrupt program.

【0053】この構成によれば、割り込みプログラムで
は破壊レジスタは退避され、容易に矛盾なくコンテキス
トが切替えられる。
According to this configuration, the destruction register is saved in the interrupt program, and the context is easily switched without contradiction.

【0054】本発明の請求項7記載のタスク切替え装置
は、請求項1記載のタスク切替え装置において、前記識
別情報は、退避または復帰するコンテキストにいかなる
資源を含むかを、ビット毎に該資源を割り付けた情報ま
たは含む資源の状態をエンコードした情報であるとした
ものである。
According to a seventh aspect of the present invention, there is provided the task switching device according to the first aspect, wherein the identification information indicates, for each bit, what resource is included in the context to be saved or restored. It is assumed that the allocated information or the state of the included resource is encoded information.

【0055】この構成によれば、識別情報を参照するだ
けで退避および復帰が真に必要なコンテキストを効率よ
く識別することができる。
According to this configuration, it is possible to efficiently identify a context that really needs to be saved and restored only by referring to the identification information.

【0056】本発明の請求項8記載のタスク切替え装置
は、請求項1から7のいずれか1項に記載のタスク切替
え装置において、前記所定の領域と、前記コンテキスト
退避手段によりコンテキストが退避される領域とは、予
め定められたコンテキスト保存領域において互いに連続
するとしたものである。
According to an eighth aspect of the present invention, in the task switching device according to any one of the first to seventh aspects, a context is saved by the predetermined area and the context saving means. The region is defined as being continuous with each other in a predetermined context storage region.

【0057】この構成によれば、領域のつながりにより
識別情報とそれによって識別されるコンテキストとの対
応が明確になる。
According to this configuration, the correspondence between the identification information and the context identified by the connection of the areas becomes clear.

【0058】本発明の請求項9記載のタスク切替え装置
は、請求項1から7のいずれか1項に記載のタスク切替
え装置において、前記所定の領域は、前記コンテキスト
退避手段によりコンテキストが退避される際に、該コン
テキストに含まれる資源を所定のデータ長に整列させて
退避するときに発生する未使用領域の一部または全部で
あるとしたものである。
A task switching device according to a ninth aspect of the present invention is the task switching device according to any one of the first to seventh aspects, wherein a context of the predetermined area is saved by the context saving means. At this time, the resources included in the context are part or all of the unused area generated when the resources are saved after being arranged in a predetermined data length.

【0059】この構成によれば、識別情報の退避による
コンテキストの量の増大を招かない。
According to this configuration, the amount of context does not increase due to the saving of the identification information.

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

【図1】本発明の実施形態におけるタスク切替え装置の
構成および使用形態図
FIG. 1 is a configuration and usage diagram of a task switching device according to an embodiment of the present invention.

【図2】本実施形態のタスク切替え装置が対象とするプ
ロセッサのコンテキストとなり得るレジスタを示した図
FIG. 2 is a diagram showing registers that can be a context of a processor targeted by the task switching device of the embodiment;

【図3】同実施形態におけるタスク切替え装置のコンテ
キスト情報を退避するプログラムフローチャート
FIG. 3 is a program flowchart for saving context information of the task switching device according to the embodiment;

【図4】アセンブラ言語でタスク切替装置11を呼び出
した場合のコンテキスト保存部の構造を示した図
FIG. 4 is a diagram showing a structure of a context storage unit when the task switching device 11 is called in an assembler language.

【図5】高級言語でタスク切替装置11を呼び出した場
合のコンテキスト保存部の構造を示した図
FIG. 5 is a diagram showing a structure of a context storage unit when the task switching device 11 is called in a high-level language.

【図6】同実施形態におけるタスク切替え装置のコンテ
キスト情報を復帰するプログラムフローチャート
FIG. 6 is a program flowchart for restoring context information of the task switching device according to the embodiment;

【図7】従来のタスク切替え装置の構成および使用形態
FIG. 7 is a diagram showing a configuration and a usage pattern of a conventional task switching device.

【符号の説明】 11 タスク切替え装置 21 タスク部 22 タスク独立部 23 タスク状態識別部 24 コンテキスト待避部 25 タスク切替部 26 復帰状態識別部 27 コンテキスト復帰部 31 コンテキスト保存部 32、34 識別情報 33、35 コンテキスト情報 111 タスク切替え装置 121 タスク部 122 タスク独立部 123 コンテキスト待避部 124 タスク切替部 125 コンテキスト復帰部 131 コンテキスト保存部 141 コンテキスト情報[Description of Signs] 11 Task switching device 21 Task section 22 Task independent section 23 Task state identification section 24 Context saving section 25 Task switching section 26 Return state identification section 27 Context restoration section 31 Context storage section 32, 34 Identification information 33, 35 Context information 111 Task switching device 121 Task part 122 Task independent part 123 Context saving part 124 Task switching part 125 Context return part 131 Context storage part 141 Context information

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 退避が必要なコンテキストを識別し、識
別情報を所定の領域に退避するタスク状態識別手段と、 前記タスク状態識別手段により識別されたコンテキスト
を退避するコンテキスト退避手段と、 前記所定の領域から識別情報を読出して復帰が必要なコ
ンテキストを識別する復帰状態識別手段と、 前記復帰状態識別手段により識別されたコンテキストを
復帰するコンテキスト復帰手段とを備えることを特徴と
するタスク切替え装置。
A task status identifying unit that identifies a context that requires saving and saves identification information to a predetermined area; a context saving unit that saves the context identified by the task state identifying unit; A task switching apparatus comprising: a return state identification unit that reads identification information from an area to identify a context that requires a return; and a context return unit that restores the context identified by the return state identification unit.
【請求項2】 前記タスク状態識別手段は、タスク切り
替えがアセンブラ言語のプログラムでなされたか高級言
語のプログラムでなされたかの情報を前記識別情報とす
ることを特徴とする請求項1記載のタスク切替え装置。
2. The task switching device according to claim 1, wherein the task status identification unit uses information as to whether the task switching is performed by an assembler language program or a high-level language program as the identification information.
【請求項3】 前記コンテキスト退避手段は、前記タス
ク状態識別手段によりタスク切り替えが高級言語のプロ
グラムでなされたことが識別された場合、前記高級言語
の言語処理系において破壊レジスタと定義されたレジス
タを含まないコンテキストを退避することを特徴とする
請求項2記載のタスク切替え装置。
3. The high-level language language processing system according to claim 3, wherein the context saving unit is configured to delete a register defined as a destruction register in the high-level language processing system when the task state identification unit identifies that the task switching is performed by a high-level language program. 3. The task switching device according to claim 2, wherein contexts not included are saved.
【請求項4】 前記コンテキスト退避手段は、引数また
は戻り値を格納するレジスタに対して、該レジスタが前
記破壊レジスタと定義されたレジスタに含まれる場合で
あっても、該レジスタを退避することを特徴とする請求
項3記載のタスク切替え装置。
4. The context saving means saves a register for storing an argument or a return value, even if the register is included in a register defined as the destruction register. The task switching device according to claim 3, wherein:
【請求項5】 前記コンテキスト退避手段は、前記タス
ク状態識別手段によりタスク切り替えが高級言語のプロ
グラムでなされたことが識別された場合であっても、該
タスク切替えが各タスクから独立なプログラムからなさ
れた場合は、前記破壊レジスタと定義されたレジスタを
退避することを特徴とする請求項3記載のタスク切替え
装置。
5. The context saving unit according to claim 1, wherein the task switching is performed by a program independent of each task even when the task state identifying unit identifies that the task switching is performed by a high-level language program. 4. The task switching device according to claim 3, wherein when the error occurs, the register defined as the destruction register is saved.
【請求項6】 各タスクから独立な前記プログラムは、
割り込みプログラムであることを特徴とする請求項5記
載のタスク切替え装置。
6. The program independent of each task,
6. The task switching device according to claim 5, wherein the task switching device is an interrupt program.
【請求項7】 前記識別情報は、退避または復帰するコ
ンテキストにいかなる資源を含むかを、ビット毎に該資
源を割り付けた情報または含む資源の状態をエンコード
した情報であることを特徴とする請求項1記載のタスク
切替え装置。
7. The identification information according to claim 6, wherein the identification information is information on what kind of resources are included in the context to be saved or restored, or information on the allocation of the resources for each bit or information on the state of the included resources. 2. The task switching device according to claim 1.
【請求項8】 前記所定の領域と、前記コンテキスト退
避手段によりコンテキストが退避される領域とは、予め
定められたコンテキスト保存領域において互いに連続す
ることを特徴とする請求項1から7のいずれか1項に記
載のタスク切替え装置。
8. The apparatus according to claim 1, wherein the predetermined area and an area in which the context is saved by the context saving unit are continuous with each other in a predetermined context saving area. The task switching device according to the paragraph.
【請求項9】 前記所定の領域は、前記コンテキスト退
避手段によりコンテキストが退避される際に、該コンテ
キストに含まれる資源を所定のデータ長に整列させて退
避するときに発生する未使用領域の一部または全部であ
ることを特徴とする請求項1から7のいずれか記載のタ
スク切替え装置。
9. The unused area generated when the context is saved by the context saving means and resources included in the context are aligned and saved to a predetermined data length when the context is saved by the context saving means. The task switching device according to any one of claims 1 to 7, wherein the task switching device is a part or a whole.
JP9295134A 1997-10-28 1997-10-28 Task switching device Pending JPH11134202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9295134A JPH11134202A (en) 1997-10-28 1997-10-28 Task switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9295134A JPH11134202A (en) 1997-10-28 1997-10-28 Task switching device

Publications (1)

Publication Number Publication Date
JPH11134202A true JPH11134202A (en) 1999-05-21

Family

ID=17816730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9295134A Pending JPH11134202A (en) 1997-10-28 1997-10-28 Task switching device

Country Status (1)

Country Link
JP (1) JPH11134202A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003027846A1 (en) * 2001-09-20 2003-04-03 Ricoh Company, Ltd. Task switching system, task switching method and dsp modem
JP3218155U (en) * 2018-07-02 2018-09-27 武登志 中尾 Storage bag stand

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003027846A1 (en) * 2001-09-20 2003-04-03 Ricoh Company, Ltd. Task switching system, task switching method and dsp modem
JP3218155U (en) * 2018-07-02 2018-09-27 武登志 中尾 Storage bag stand

Similar Documents

Publication Publication Date Title
US5634046A (en) General purpose use of a stack pointer register
US6076156A (en) Instruction redefinition using model specific registers
KR100848603B1 (en) A data processing apparatus and method for saving return state
US5148544A (en) Apparatus and method for control of asynchronous program interrupt events in a data processing system
JPH02267634A (en) Interrupt system
GB2348306A (en) Batch processing of tasks in data processing systems
JP3970609B2 (en) Processor system
US8327122B2 (en) Method and system for providing context switch using multiple register file
JPH09128267A (en) Data processor and data processing method
JPH11134202A (en) Task switching device
AU626067B2 (en) Apparatus and method for control of asynchronous program interrupt events in a data processing system
JP2004030224A (en) Processor, method for retracting register and method for designating register
US7890740B2 (en) Processor comprising a first and a second mode of operation and method of operating the same
JPH056281A (en) Information processor
EP0301707A2 (en) Apparatus and method for providing an extended processing environment on nonmicrocoded data processing system
JP4504756B2 (en) Memory management method and memory management program in Java (registered trademark) execution environment
JP2009230479A (en) Microprocessor
JPS5826043B2 (en) Processor reset method
JP2004287618A (en) Starting control method of operating system, program making computer execute its method, and starting control device of operating system
US5778207A (en) Assisting operating-system interrupts using application-based processing
JP2562838B2 (en) Processor and store buffer control method
JP2000155677A (en) Method for preventing runaway of program and computer system for the method and recording medium for recording program for preventing runaway
JP2932812B2 (en) Language processing program execution device
JP3733746B2 (en) Programmable controller
EP1104899A2 (en) Data processing apparatus and method of controlling the same