JPH05233329A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH05233329A
JPH05233329A JP7253392A JP7253392A JPH05233329A JP H05233329 A JPH05233329 A JP H05233329A JP 7253392 A JP7253392 A JP 7253392A JP 7253392 A JP7253392 A JP 7253392A JP H05233329 A JPH05233329 A JP H05233329A
Authority
JP
Japan
Prior art keywords
task
register
cpu
switching
register file
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
JP7253392A
Other languages
Japanese (ja)
Inventor
Kunihiro Akiyoshi
邦洋 秋吉
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP7253392A priority Critical patent/JPH05233329A/en
Publication of JPH05233329A publication Critical patent/JPH05233329A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform fast processing for task switching and the saving and restoration of a register, etc., by providing a switching control means which performs the fast processing for the task switching between a central processing unit and an operating system. CONSTITUTION:A task part executes the task switching when the occurrence of a system call to perform the task switching at a time when software interruption is performed is recognized, and a switching control part 1 applies wait to a CPU. The CPU saves the value of a stack pointer 8 to a stack pointer saving register 6, and copies the value of a register file address 5 on the stack pointer 8. The value of the register 8 is copied on the preservation area of a register file 7 indicated by the pointer 8, and processing of system call is executed. Thence, a bit with the highest priority in a ready task register 2 is set on a run task register 3, and the address of the register file 7 is set on the address 5. After the processing is completed, a restoration instruction is issued to the CPU.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は情報処理装置のマイクロ
コンピュータに係り、詳細には情報処理装置の中央処理
装置(CPU)とオペレーティングシステム(OS)と
の制御をリアルタイムで行うOS用のマイクロコンピュ
ータに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer for an information processing apparatus, and more particularly to a microcomputer for an OS that controls a central processing unit (CPU) and an operating system (OS) of the information processing apparatus in real time. It is about.

【0002】[0002]

【従来の技術】一般に、情報処理装置のCPUとOSと
の制御を行う場合は、オペレータのシステムコールによ
るタスク切替の発生時毎に、ソフトウェア上でタスクの
選択およびレジスタの退避・復帰を行っていた。
2. Description of the Related Art Generally, when controlling a CPU and an OS of an information processing apparatus, a task is selected and a register is saved / restored by software every time a task is switched by an operator system call. It was

【0003】[0003]

【発明が解決しようとする課題】しかしながら、ソフト
ウェア上でタスクの選択およびレジスタの退避・復帰を
行うと、現時点でのタスクをソフトウェア上で一旦退避
させた後に、再度ソフトウェア上で次のタスクに切替を
行うことになる。従って、タスク切替の処理時間が長く
なり、作業効率が悪いという不具合があった。また、O
S制御を行う為のソフト開発を行う場合は、ソフト開発
に基づくレジスタファイルの保存等をソフトウェア上で
行わなければならない為、ソフト開発そのものの負荷的
要素が大きいという不具合があった。そこで本発明の目
的は、情報処理装置のCPUとOSとの制御上における
タスク切替・レジスタの退避・復帰等を、マイクロコン
ピュータで高速処理することができるとともに、OS制
御用のソフト開発そのものの負荷を軽減することができ
るマイクロコンピュータを提供することにある。
However, when a task is selected and registers are saved / restored in software, the current task is temporarily saved in software and then switched to the next task in software again. Will be done. Therefore, there is a problem that the processing time for task switching becomes long and the work efficiency is poor. Also, O
When software development for S control is performed, the register file based on the software development must be saved on the software, so that the load factor of software development itself is large. Therefore, an object of the present invention is to enable a microcomputer to perform high-speed processing for task switching, register saving / restoring, etc. under the control of the CPU and OS of the information processing apparatus, and to load the OS control software itself. It is to provide a microcomputer capable of reducing the above.

【0004】[0004]

【課題を解決するための手段】請求項1記載の発明で
は、情報処理装置のCPUとOSとの制御をリアルタイ
ムで行うマイクロコンピュータに、前記CPUとOSと
のタスク切替等を高速化する切替制御手段を備えさせ
た。請求項2記載の発明では マイクロコンピュータに
OSのソフト開発のための保存領域を確保する保存領域
確保手段を備えさせた。
According to a first aspect of the present invention, in a microcomputer that controls a CPU and an OS of an information processing apparatus in real time, a switching control that speeds up task switching between the CPU and the OS. Equipped with means. According to the second aspect of the invention, the microcomputer is provided with the storage area securing means for securing the storage area for the software development of the OS.

【0005】[0005]

【作用】本発明のマイクロコンピュータは、OSとの制
御を行う為のタスク切替およびレジスタ等の退避・復帰
等を、切替制御手段で高速処理することができる。ま
た、OS制御用のソフト開発を保存領域確保手段で、ソ
フト開発そのものの負荷の軽減をさせることができる。
In the microcomputer of the present invention, the switching control means can perform high-speed processing such as task switching for controlling the OS and saving / restoring of registers and the like. In addition, the software development for OS control can be saved by the storage area securing means to reduce the load of the software development itself.

【0006】[0006]

【実施例】以下に本発明のマイクロコンピュータの一実
施例を、図1および図2を参照して詳細に説明する。図
1は、本実施例のマイクロコンピュータの切替制御手段
を示すブロック図である。図2は本実施例のマイクロコ
ンピュータの保存領域確保手段を示すブロック図であ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the microcomputer of the present invention will be described in detail below with reference to FIGS. FIG. 1 is a block diagram showing the switching control means of the microcomputer of this embodiment. FIG. 2 is a block diagram showing the storage area securing means of the microcomputer of this embodiment.

【0007】図1において、図示しない情報処理装置に
おける、マイクロコンピュータの切替制御手段としての
切替制御部1は、実行形式タスクをビットで示すレディ
・タスク・レジスタ2、実行形式タスク中で最も優先さ
れるタスクをビットで示すラン・タスク・レジスタ3、
各タスクのレジスタファイルの先頭アドレス・テーブル
4、ラン・タスク・レジスタ3に対応するレジスタファ
イル・アドレス5、システムコール発生時のスタック・
ポインタ(SP)の値をセーブするSPセーブ・レジス
タ6を備えている。また、図1、図2において、マイク
ロコンピュータの保存領域確保手段は、RAMとしての
レジスタファイル7を備え、レジスタファイル7はスタ
ック・ポインタ8を有する。これらの切替制御部1とレ
ジスタファイル7を備えるマイクロコンピュータは、情
報処理装置内に実装され、情報処理装置のCPUとOS
の制御を行うべくCPUコア9に電気的に接続されてい
る。
In FIG. 1, a switching control unit 1 as a switching control means of a microcomputer in an information processing device (not shown) has a ready task register 2 that indicates an execution format task in bits, and has the highest priority among the execution format tasks. Run task register 3, which indicates the task
Start address table 4 of register file of each task, register file address 5 corresponding to run task register 3, stack file when system call occurs
The SP save register 6 is provided for saving the value of the pointer (SP). 1 and 2, the storage area securing means of the microcomputer includes a register file 7 as a RAM, and the register file 7 has a stack pointer 8. The microcomputer including the switching control unit 1 and the register file 7 is mounted in the information processing device, and has a CPU and an OS of the information processing device.
Is electrically connected to the CPU core 9 to control the above.

【0008】次に切替制御部1とレジスタファイル7の
動作を詳細に説明する。情報処理装置のオペレータが、
タスク切替を行うべくシステムコールの発生をソフトウ
ェア割込(SWI)した時点で、タスク部がSWIを実
行し切替制御部1がCPUにウェイトをかける。ここ
で、CPUはスタック・ポインタ8の値をSPセーブ・
レジスタ6にセーブし、スタック・ポインタ8にレジス
タファイル・アドレス5の値(実行中のタスクのレジス
タファイル)をコピーし、CPUのウェイトが解除され
る。そして、CPUが各レジスタをスタック・ポインタ
8が示すレジスタファイル7の保存領域に、SPセーブ
・レジスタ6の値をコピーし、システムコールの処理の
実行を行い、レディ・タスク・レジスタ2内で最も優先
されるビットをラン・タスク・レジスタ3にセットする
とともに、ラン・タスク・レジスタ3に対応するレジス
タファイル7のアドレスをレジスタファイル・アドレス
5にセットする。
Next, the operations of the switching controller 1 and the register file 7 will be described in detail. The operator of the information processing device
When the system call is interrupted by software (SWI) to switch the task, the task unit executes the SWI and the switching control unit 1 puts a wait on the CPU. Here, the CPU saves the value of the stack pointer 8
The value is saved in the register 6, the value of the register file address 5 (register file of the task being executed) is copied to the stack pointer 8, and the CPU wait is released. Then, the CPU copies the value of the SP save register 6 to the save area of the register file 7 indicated by the stack pointer 8 and executes the system call process, and the most of the ready task register 2 The priority bit is set in the run task register 3, and the address of the register file 7 corresponding to the run task register 3 is set in the register file address 5.

【0009】このシステムコール処理終了後、CPUに
対して復帰命令(RTI)をすべくウェイトがかかり、
レジスタファイル・アドレス5をスタック・ポインタ8
にコピーし、CPUのウェイトが解除され、CPUがレ
ジスタファイル7から各レジスタの値をリカバーしつ
つ、レジスタファイル7内のSPセーブ・レジスタ6の
値をスタック・ポインタ8にコピーし、システムコール
処理終了とともに、タスクが切替し次のタスクが実行さ
れる。
After the completion of this system call processing, a wait is given to give a return instruction (RTI) to the CPU,
Register file address 5 to stack pointer 8
The CPU wait state is released, the CPU recovers the value of each register from the register file 7, while copying the value of the SP save register 6 in the register file 7 to the stack pointer 8 for system call processing. Upon completion, the task is switched and the next task is executed.

【0010】このように、システムコール発生時点で、
タスク切替制御が切替制御部1内で、現時点でのタスク
から次のタスクへと高速処理することができ、タスク切
替の作業効率を高めることができる。また、OS制御用
のソフト開発そのものも、レジスタファイル7の保存領
域を確保することにより、ソフト開発における負荷を軽
減することができる。
As described above, when the system call occurs,
The task switching control can perform high-speed processing from the current task to the next task in the switching control unit 1, and the task switching work efficiency can be improved. Further, in the software development itself for OS control, the load in software development can be reduced by securing the storage area of the register file 7.

【0011】[0011]

【発明の効果】請求項1記載の発明によれば、情報処理
装置のCPUとOSとの制御上におけるタスク切替・レ
ジスタの退避・復帰等を高速処理することができる。請
求項2記載の発明によれば、OS制御用のソフト開発そ
のものの負荷を軽減することができる。
According to the first aspect of the present invention, it is possible to perform high-speed processing such as task switching and register saving / restoring under the control of the CPU and OS of the information processing apparatus. According to the second aspect of the invention, it is possible to reduce the load of software development itself for OS control.

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

【図1】本発明のマイクロコンピュータにおける一実施
例の切替制御手段を示すブロック図である。
FIG. 1 is a block diagram showing a switching control means of an embodiment in a microcomputer of the present invention.

【図2】本発明のマイクロコンピュータにおける一実施
例の保存領域確保手段を示すブロック図である。
FIG. 2 is a block diagram showing storage area securing means of an embodiment in the microcomputer of the present invention.

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

1 切替制御部 2 レディ・タスク・レジスタ 3 ラン・タスク・レジスタ 5 レジスタファイル・アドレス 6 SPセーブ・レジスタ 7 レジスタファイル 8 スタック・ポインタ 9 CPUコア 1 Switching Control Unit 2 Ready Task Register 3 Run Task Register 5 Register File Address 6 SP Save Register 7 Register File 8 Stack Pointer 9 CPU Core

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 情報処理装置の中央処理装置とオペレー
ティングシステムとの制御をリアルタイムで行うマイク
ロコンピュータにおいて、 前記中央処理装置とオペレーティングシステムとのタス
ク切替等を高速処理する切替制御手段を具備することを
特徴とするマイクロコンピュータ。
1. A microcomputer for controlling a central processing unit of an information processing apparatus and an operating system in real time, comprising a switching control means for performing high-speed processing such as task switching between the central processing unit and the operating system. Characteristic microcomputer.
【請求項2】 前記オペレーティングシステムのソフト
開発のための保存領域を確保する保存領域確保手段を具
備することを特徴とする請求項1記載のマイクロコンピ
ュータ。
2. The microcomputer according to claim 1, further comprising a storage area reserving means for reserving a storage area for software development of the operating system.
JP7253392A 1992-02-20 1992-02-20 Microcomputer Pending JPH05233329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7253392A JPH05233329A (en) 1992-02-20 1992-02-20 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7253392A JPH05233329A (en) 1992-02-20 1992-02-20 Microcomputer

Publications (1)

Publication Number Publication Date
JPH05233329A true JPH05233329A (en) 1993-09-10

Family

ID=13492085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7253392A Pending JPH05233329A (en) 1992-02-20 1992-02-20 Microcomputer

Country Status (1)

Country Link
JP (1) JPH05233329A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007219938A (en) * 2006-02-17 2007-08-30 Seiko Epson Corp Processor
US7434222B2 (en) * 2001-12-20 2008-10-07 Infineon Technologies Ag Task context switching RTOS

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7434222B2 (en) * 2001-12-20 2008-10-07 Infineon Technologies Ag Task context switching RTOS
JP2007219938A (en) * 2006-02-17 2007-08-30 Seiko Epson Corp Processor

Similar Documents

Publication Publication Date Title
JPH05233329A (en) Microcomputer
JP2677458B2 (en) System call execution device
JPS58151663A (en) Switching system of system file
JPS6027031A (en) Information processor
JPH05233358A (en) Computer device
JPH09282118A (en) Printing device selection system
JPH02176832A (en) Microcomputer
JPH03250334A (en) Data processor
JPS62276634A (en) Virtual computer system
JPS62125432A (en) Print control system for terminal equipment of 2-job operation system
JP2001109634A (en) System call controller and recording medium
JPH02178864A (en) Ipl processing system
JPH02137054A (en) Information processor
JPH0319033A (en) System interruption/restart system
JPH0228840A (en) Information processor
JPH03126134A (en) Task switching system for cpu
JPS6394339A (en) Virtual calculation system
JPH04155532A (en) Task switching system
JPS58155588A (en) Processing system of logical swap out
JPH1091220A (en) Programmable controller
JPH064168A (en) Computer system
JPH04155539A (en) Debug processing system for program whose kind of language is different
JPS6212535B2 (en)
JPH01158527A (en) Memory control system
JPH0497435A (en) Control system for exceptional treatment