JPH02220138A - Interruption protecting system for real time operating system - Google Patents
Interruption protecting system for real time operating systemInfo
- Publication number
- JPH02220138A JPH02220138A JP4235089A JP4235089A JPH02220138A JP H02220138 A JPH02220138 A JP H02220138A JP 4235089 A JP4235089 A JP 4235089A JP 4235089 A JP4235089 A JP 4235089A JP H02220138 A JPH02220138 A JP H02220138A
- Authority
- JP
- Japan
- Prior art keywords
- interruption
- system call
- processing
- inhibition
- interrupt
- 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
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、ハードウェア割り込みの発生するリアルタイ
ムオペレーティングシステムの割す込み保護方式に関す
る。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an interrupt protection scheme for real-time operating systems in which hardware interrupts occur.
従来の技術
従来、制限時間以内に、処理を終了しなければならない
割り込み処理の最中に、オペレーティングシステム(以
下O8と記す)のシステムコール処理が発生すると、割
り込み処理が中断され、システムコール処理時間だけ割
り込み処理が待たれている。その結果、割り込み処理の
制限時間を超過し、割り込み処理が異常になることがあ
る。Conventional technology Conventionally, when system call processing of the operating system (hereinafter referred to as O8) occurs during interrupt processing that must be completed within a time limit, the interrupt processing is interrupted and the system call processing time is reduced. Only interrupt processing is awaited. As a result, the time limit for interrupt processing may be exceeded and the interrupt processing may become abnormal.
発明が解決しようとする課題
このように、従来技術の構成では、ユーザプログラムか
らO8に対するシステムコールか発行されると、システ
ムが割り込み処理中であった場合、処理時間の長いシス
テムコールに対しては、割り込み処理が正常に行えなく
なるという問題があった。Problems to be Solved by the Invention As described above, in the configuration of the prior art, when a system call to O8 is issued from a user program, if the system is processing an interrupt, the system call that takes a long processing time is , there was a problem that interrupt processing could not be performed normally.
本発明は、このような従来技術の課題を解決することを
目的とする。The present invention aims to solve the problems of the prior art.
課題を解決するための手段
本発明は、O8の中にシステムコールを待ち行列(=キ
ュー)で管理する機能を設けることによシ、上記目的を
達成するものである。Means for Solving the Problems The present invention achieves the above object by providing in O8 a function for managing system calls in a queue.
作用
本発明は、上記構成により、コンピュータのハードウェ
ア割り込み処理とO8間の排他処理を容易に行うことが
出来る。Effect of the Invention With the above configuration, the present invention can easily perform computer hardware interrupt processing and exclusive processing between O8.
実施例
以下に、本発明の実施例について図面を参照しながら説
明する。Examples Examples of the present invention will be described below with reference to the drawings.
図は本発明の一実施例におけるO8の構成を示したもの
である。第1図において、1は割り込゛み処理中のシス
テムコールを管理するための割り込み処理保護機能部、
2は割り込み処理中のシステムコール処理を禁止または
解除するシステムコールlotたは11によシセットま
たはリセットされる禁止7ラグ部、12はシステムコー
ルを排他制御すルタメのシステムコール、3はシステム
コール処理禁止中にアプリケーションタスク6から発行
されたシステムコールを溜めておくためのシステムコー
ルキー一部、7は外部(−)・−ドウエア)割り込みに
よシ駆動する割り込み処理ノ・ンドラ、8はシステムコ
ール処理の禁止区域である。The figure shows the configuration of O8 in one embodiment of the present invention. In FIG. 1, 1 is an interrupt processing protection function unit for managing system calls during interrupt processing;
2 is a prohibition 7 lag section that is set or reset by system call lot or 11 that inhibits or cancels system call processing during interrupt processing; 12 is a system call that exclusively controls system calls; 3 is system call processing A part of the system call key for storing system calls issued by application task 6 while disabled, 7 is an interrupt handler driven by external (-)/-ware) interrupts, 8 is a system call This is a prohibited area for processing.
以上のような構成において、以下その動作を説明する。The operation of the above configuration will be explained below.
まず、外部側シ込みが発生すると割り込み処理ハンドラ
7が駆動され、タスクからのシステムコール(=ソフト
ウェア割り込み)によシ中断されたくない禁止区域8の
直前でシステムコール禁止システムコールを発行する。First, when an external interrupt occurs, the interrupt handler 7 is activated, and issues a system call prohibition system call immediately before the prohibited area 8, where interruption by a system call (=software interrupt) from a task is not desired.
これによシO8は、禁止フラグ2をONにする。他方、
システムコール禁止区域8の実行中に発行される可能性
のあるシステムコールに対しては、その発行直前に排他
制御システムコール12を発行しておくようにする。Accordingly, O8 turns on prohibition flag 2. On the other hand,
For system calls that may be issued during execution of the system call prohibited area 8, an exclusive control system call 12 is issued immediately before the system call is issued.
排他制御システムコール12により、O8は禁止フラグ
2がONになっていたらその直後に発行されるシステム
コールをシステムコールキュ一部3に一時的につなぎ、
スケジューラ4によシステムコール処理を待たせ別のタ
スクに制御を移す。以降、割り込み処理ハンドラ7の禁
止区域8の処理が終わるまでの間に上記形式で発行され
たシステムコールは順にシステムコールキュ一部3につ
ながシその処理を待たされる。By exclusive control system call 12, O8 temporarily connects the system call issued immediately after prohibition flag 2 is ON to system call queue part 3,
The scheduler 4 causes the system call processing to wait and transfers control to another task. Thereafter, system calls issued in the above format until the interrupt processing handler 7 finishes processing the prohibited area 8 are sequentially connected to the system call queue part 3 and are made to wait for their processing.
禁止区域8の処理が終わり、解除システムコール11が
発行されるとO8の割り込み処理保護機能部1はフラグ
2をoffに出力しシステムコールキュ一部3につなが
れているタスクをすべてアクチブキュ一部9につなぎか
え、順次溜っていたシステムコールをスケジューラ4に
よシ実行する。When the processing of the prohibited area 8 is finished and the release system call 11 is issued, the interrupt processing protection function unit 1 of the O8 outputs the flag 2 to OFF and activates all the tasks connected to the system call queue part 3. The scheduler 4 sequentially executes the accumulated system calls.
このようにすることにより、割り込み処理中のタスクか
らのシステムコールを任意の区間だけ、O8の管理下で
禁止しておくことができる。By doing this, system calls from a task that is currently processing an interrupt can be prohibited for an arbitrary period under the control of O8.
発明の効果
以上の説明から明らかなように、本発明によれば、O8
の中に割り込み処理保護機能を組み込むことによシ、割
り込み処理中の任意の範囲でシステムコール(=ソフト
ウェア)割り込みを禁止することができるので、割り込
み処理を頻繁に使うコンピュータシステムでも、容易に
O8の導入を図ることが出来る。Effects of the Invention As is clear from the above explanation, according to the present invention, O8
By incorporating an interrupt processing protection function into O8, system call (=software) interrupts can be prohibited within any range during interrupt processing, so even computer systems that frequently use interrupt processing can easily It is possible to introduce the following.
図は本発明の一実施例におけるリアルタイムO8の割り
込み保護方式のブロック図である。
1・・・割り込み処理保護機能、2・・・フラグ部、3
・・・システムコールキュ一部、4・・・スケジューラ
、6・・・アプリケーションタスク群、7・・・割り込
み処理ハンドラ、8・・・禁止区域、9・・・アクチブ
キュー部、10・・・禁止システムコール、11°・°
解除システムコー/l/、12・・・排他制御システム
コール。The figure is a block diagram of a real-time O8 interrupt protection system in one embodiment of the present invention. 1... Interrupt processing protection function, 2... Flag section, 3
...Part of system call queue, 4...Scheduler, 6...Application task group, 7...Interrupt processing handler, 8...Prohibited area, 9...Active queue part, 10... Forbidden system call, 11°・°
Release system call /l/, 12...Exclusive control system call.
Claims (1)
り込み処理が終了するまでオペレーティングシステムへ
のシステムコールをためておく手段を設けたことを特徴
とするリアルタイムオペレーティングシステムの割り込
み保護方式。An interrupt protection method for a real-time operating system, characterized by providing means for detecting if an interrupt processing program is being executed and storing system calls to the operating system until the interrupt processing is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4235089A JPH02220138A (en) | 1989-02-22 | 1989-02-22 | Interruption protecting system for real time operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4235089A JPH02220138A (en) | 1989-02-22 | 1989-02-22 | Interruption protecting system for real time operating system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02220138A true JPH02220138A (en) | 1990-09-03 |
Family
ID=12633584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4235089A Pending JPH02220138A (en) | 1989-02-22 | 1989-02-22 | Interruption protecting system for real time operating system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02220138A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04148429A (en) * | 1990-10-12 | 1992-05-21 | Nec Corp | Control system for interruption processing routine |
JPH05224961A (en) * | 1992-02-13 | 1993-09-03 | Nec Corp | Time waiting processing system for task |
US5768599A (en) * | 1995-02-28 | 1998-06-16 | Nec Corporation | Interrupt managing system for real-time operating system |
WO2010131579A1 (en) * | 2009-05-11 | 2010-11-18 | 日本電気株式会社 | Terminal device, communication method used in the terminal device, and communication control program |
US20110125948A1 (en) * | 2008-08-07 | 2011-05-26 | Nec Corporation | Multi-processor system and controlling method thereof |
-
1989
- 1989-02-22 JP JP4235089A patent/JPH02220138A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04148429A (en) * | 1990-10-12 | 1992-05-21 | Nec Corp | Control system for interruption processing routine |
JPH05224961A (en) * | 1992-02-13 | 1993-09-03 | Nec Corp | Time waiting processing system for task |
US5768599A (en) * | 1995-02-28 | 1998-06-16 | Nec Corporation | Interrupt managing system for real-time operating system |
US20110125948A1 (en) * | 2008-08-07 | 2011-05-26 | Nec Corporation | Multi-processor system and controlling method thereof |
US8583845B2 (en) * | 2008-08-07 | 2013-11-12 | Nec Corporation | Multi-processor system and controlling method thereof |
WO2010131579A1 (en) * | 2009-05-11 | 2010-11-18 | 日本電気株式会社 | Terminal device, communication method used in the terminal device, and communication control program |
JP5370482B2 (en) * | 2009-05-11 | 2013-12-18 | 日本電気株式会社 | TERMINAL DEVICE, COMMUNICATION METHOD AND COMMUNICATION CONTROL PROGRAM USED FOR THE TERMINAL DEVICE |
US8782663B2 (en) | 2009-05-11 | 2014-07-15 | Nec Corporation | Terminal device, communication method used in the terminal device and recording medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0943996B1 (en) | Processor having real-time execution control for debug functions without a debug monitor | |
JPH02220138A (en) | Interruption protecting system for real time operating system | |
JPH0468461A (en) | Resource management system | |
JP2636722B2 (en) | Multitask execution management method | |
JP2680842B2 (en) | Data processing device | |
JPS62251926A (en) | Control system for whether program is executable or not | |
JPH0451329A (en) | Context switching device | |
JPH0981526A (en) | Multiprocessor system | |
JPH03248231A (en) | Multitask exclusive control method | |
JP2737796B2 (en) | How to handle multitasking | |
KR100241343B1 (en) | Same-level interrupt execution sequence control method | |
JP2594589B2 (en) | Break interrupt control method | |
JPS6324441A (en) | Resource protection system for real time os | |
JP3288750B2 (en) | Robot controller | |
JPH03172937A (en) | Asynchronous event processing handling device | |
JP3107433B2 (en) | Task state management method for computer systems | |
JPH0341520A (en) | Interruption control system | |
JPH04134534A (en) | Method and mechanism for calling exit of timer run-out | |
JPS61289433A (en) | Information processor | |
JPH04177535A (en) | Processing control system at the time of generation of interruption factor | |
JPH06138981A (en) | Computer system | |
JPH04219828A (en) | Processing method for asynchronous and exceptional event | |
JPH04157534A (en) | Suspending/restarting system for task group unit | |
JPH01213727A (en) | Stall monitor system | |
JPH03164966A (en) | Information processing system |