JPH0728545A - Computer with resume function - Google Patents
Computer with resume functionInfo
- Publication number
- JPH0728545A JPH0728545A JP5174257A JP17425793A JPH0728545A JP H0728545 A JPH0728545 A JP H0728545A JP 5174257 A JP5174257 A JP 5174257A JP 17425793 A JP17425793 A JP 17425793A JP H0728545 A JPH0728545 A JP H0728545A
- Authority
- JP
- Japan
- Prior art keywords
- restoration
- processing
- signal
- restore
- state
- 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
Landscapes
- Power Sources (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
(57)【要約】
【目的】 レジューム処理のために特別な処理を必要と
するプロセスを識別して、その特別な処理を行わせるこ
とが可能なコンピュータを提供する。
【構成】 このコンピュータは、システム終了要求を検
出するシステム終了検出手段107と、システム起動要
求を検出するシステム起動検出手段110と、システム
終了時に、レジューム処理に必要なデータを不揮発性メ
モリ104に退避するシステム状態退避処理手段108
と、システム再起動時に、退避したデータを読み出して
復元するシステム状態再現処理手段111と、所定の復
元信号を受けとる必要のあるプロセスを記憶する復元プ
ロセス記憶部109と、復元信号を送信する復元信号送
出手段114と、復元信号を受け取る必要のあるプロセ
スの情報の登録、削除を行う復元プロセス更新手段11
5とを備える。
(57) [Summary] [Object] To provide a computer capable of identifying a process requiring special processing for resume processing and causing the special processing to be performed. [Configuration] This computer stores a system termination detection unit 107 for detecting a system termination request, a system activation detection unit 110 for detecting a system activation request, and saves data necessary for resume processing in a nonvolatile memory 104 at the time of system termination. System state saving processing means 108
And a system state reproduction processing unit 111 that reads and restores the saved data when the system is restarted, a restore process storage unit 109 that stores a process that needs to receive a predetermined restore signal, and a restore signal that sends the restore signal. Sending means 114 and restoration process updating means 11 for registering and deleting information of processes that need to receive restoration signals
5 and 5.
Description
【0001】[0001]
【産業上の利用分野】本発明は、電源再投入時に、中断
していた処理の復元が可能なレジューム機能を有するコ
ンピュータに関し、特に、復元処理時に終了通知等の復
元信号の受信を要するプロセスに対するレジューム処理
が可能なコンピュータの構成に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer having a resume function capable of restoring a process which has been interrupted when the power is turned on again, and more particularly to a process which requires reception of a restore signal such as an end notification during the restore process. The present invention relates to a computer configuration capable of resume processing.
【0002】[0002]
【従来の技術】近年、パーソナルコンピュータやワーク
ステーションなどのコンピュータでは、電源をOFFと
した時に、現在実行中のプログラムを継続して実行にす
るために必要な全ての状態を保持し、電源を再度ONと
した時にプログラム処理を継続実行することが可能なレ
ジューム機能回路を備えたものが増加している。そし
て、このレジューム機能により、従来繁雑であったコン
ピュータの立ち上げ/立ち下げ操作の手順が不必要もし
くは大幅に簡単になり、ユーザに対する操作性が向上し
ている。2. Description of the Related Art In recent years, in computers such as personal computers and workstations, when the power is turned off, all the states necessary for continuing execution of the program currently being executed are retained and the power is turned off again. An increasing number are provided with a resume function circuit capable of continuously executing a program process when turned on. With this resume function, the conventionally complicated procedure of booting / shutting down the computer is unnecessary or greatly simplified, and the operability for the user is improved.
【0003】図10は、特開平4ー362717号公報
に開示されたレジューム機能を備えた従来のコンピュー
タシステムの構成を示すブロック図である。この従来の
コンピュータは、CPU101と、メモリ102、制御
装置103、不揮発性メモリ104、表示装置105、
入力装置106、電源スイッチ112、電源装置113
及びプリンタ装置114を備えている。そして、レジュ
ーム処理を行うために、システム終了検出手段107、
システム状態退避処理手段108、プロセス終了手段1
09、システム起動検出手段110及びシステム状態再
現処理手段111を有している。FIG. 10 is a block diagram showing the configuration of a conventional computer system having a resume function disclosed in Japanese Patent Laid-Open No. 4-362717. This conventional computer includes a CPU 101, a memory 102, a control device 103, a non-volatile memory 104, a display device 105,
Input device 106, power switch 112, power device 113
And a printer device 114. Then, in order to perform the resume process, the system end detecting means 107,
System state saving processing means 108, process termination means 1
09, a system activation detection means 110 and a system state reproduction processing means 111.
【0004】従来のコンピュータのレジューム処理は、
以下の様に行われる。まず、ユーザが電源スイッチをO
FF操作すると、システム終了検出手段107がこれを
検出してデータの退避処理が開始される。プロセス終了
手段109は、現在実行状態にあるプロセスの内、予め
復元プロセステーブルに登録している終了通知を受ける
必要のあるプロセスに対して、終了通知を発信し、プロ
セスを終了させる。このようなプロセスの例として、例
えばプリンタ出力を伴うプロセスがある。プリンタ出力
を伴うプロセスが実行状態にある時にレジューム処理を
行うためには、プリンタに出力したデータを電源再投入
時に、再度正しく出力するための保存処理を行う必要が
ある。このために、このようなプロセスは、終了処理を
正しく行うために終了通知の受信を必要とする。The conventional computer resume process is as follows:
The procedure is as follows. First, the user turns on the power switch.
When the FF operation is performed, the system end detection means 107 detects this and the data saving process is started. The process ending unit 109 sends an end notification to a process that needs to receive the end notification registered in advance in the restoration process table among the processes currently in the execution state, and ends the process. An example of such a process is, for example, a process involving printer output. In order to perform the resume process when the process accompanied by the printer output is in the execution state, it is necessary to perform the saving process for outputting the data output to the printer again correctly when the power is turned on again. For this reason, such a process needs to receive a termination notification in order to perform the termination process correctly.
【0005】プロセス終了処理が行われた後、システム
状態退避処理手段108は、レジュームに必要なデータ
を不揮発性メモリ104に退避させる。そして、電源装
置113が電源の供給を遮断する。次に、ユーザが電源
スイッチを再投入すると、システム起動検出装置110
がこれを検出し、データの復元処理が開始される。シス
テム状態再現処理手段111は、不揮発性メモリ104
に退避されていたデータをCPU101、メモリ102
等の上に電源OFF前の状態に復元する。After the process termination processing is performed, the system state saving processing means 108 saves the data required for resume to the non-volatile memory 104. Then, the power supply device 113 cuts off the power supply. Next, when the user turns on the power switch again, the system activation detection device 110
Detects this, and the data restoration process is started. The system state reproduction processing unit 111 is a nonvolatile memory 104.
The data saved in the CPU 101, the memory 102
Restore the state before the power was turned off.
【0006】このような動作によって、ユーザは、電源
をOFFする前の状態を継続して実行することができ
る。By such an operation, the user can continue to execute the state before the power is turned off.
【0007】[0007]
【発明が解決しようとする課題】しかしながら、従来の
コンピュータにおいて、プロセス終了手段109は、復
元プロセステーブルに予め登録されたプロセスに対し
て、終了信号を送信するように構成されている。このた
めに、ユーザが新たなプロセスを作成してコンピュータ
に搭載し、かつこのプロセスがレジューム処理時に終了
通知を必要とするものであるような場合には、レジュー
ム処理時には終了通知を受け取ることができない。そし
て、終了通知を受け取れなければ、この新たなプロセス
は、復元された場合に、電源OFF前の状態に正しく復
元されない。このため、終了通知を必要とする全てのプ
ロセスをプロセス終了手段109からの終了通知発信の
対象とするためには、ユーザが新たなプロセスの搭載と
は別個に、復元プロセステーブルに終了通知の送信対象
とすべきプロセスを登録する作業を必要とする。このよ
うな作業は面倒であり、ユーザに対して余分な作業や注
意を要求することとなり、操作上の負担を強いるという
問題点があった。However, in the conventional computer, the process termination means 109 is configured to transmit the termination signal to the process registered in advance in the restoration process table. For this reason, if the user creates a new process and installs it in the computer, and this process requires an end notification during the resume processing, the end notification cannot be received during the resume processing. . If the end notification is not received, this new process, when restored, will not be properly restored to the state before the power was turned off. Therefore, in order to make all the processes that require the end notification the target of the end notification transmission from the process end unit 109, the user sends the end notification to the restoration process table separately from the mounting of the new process. It requires work to register the process to be targeted. Such work is troublesome and requires extra work and attention to the user, and there is a problem in that an operational burden is imposed.
【0008】したがって、本発明は上記のような問題点
を解消するためになされたもので、レジューム処理のた
めに特別な処理を必要とするプロセスを識別して、その
特別な処理を行わせることが可能なコンピュータを提供
することを目的とする。Therefore, the present invention has been made in order to solve the above problems, and identifies a process requiring a special process for the resume process and causes the special process to be performed. The purpose is to provide a computer capable of.
【0009】[0009]
【課題を解決するための手段】請求項1の発明に係るコ
ンピュータは、システム終了要求を検出するシステム終
了検出手段と、システム起動要求を検出するシステム起
動検出手段と、システ終了検出手段がシステムの終了要
求を検出した時、実行状態のプロセスがその実行状態を
保持するために必要なデータを不揮発性記憶手段に退避
して保存するシステム状態退避処理手段と、システム起
動検出手段がシステムの起動要求を検出した時、不揮発
性記憶手段に保存されたデータを読み出して、システム
終了前のプロセスの実行状態を復元するシステム状態再
現処理手段と、プロセスを中断して終了させた後、再び
プロセスを復元して中断した状態からプロセスの処理を
継続して実行するためには所定の復元信号を受けとる必
要のあるプロセスを記憶する復元プロセス記憶手段と、
システム状態再現手段がシステムを復元した時、復元プ
ロセス記憶部に記憶されたプロセスに対し復元信号を送
信する復元信号送出手段と、復元信号を受け取る必要の
あるプロセスがレジューム処理によらずに起動する場合
に、復元プロセス記憶手段に対してプロセスの情報を記
憶させ、プロセスの実行状態が終了した場合に、復元プ
ロセス記憶手段からプロセスの情報を削除する復元プロ
セス更新手段とを備えている。According to a first aspect of the present invention, there is provided a computer comprising: a system termination detecting means for detecting a system termination request; a system activation detecting means for detecting a system activation request; and a system termination detecting means. When an end request is detected, the system state save processing means for saving the data necessary for the process in the execution state to hold the execution state in the non-volatile storage means, and the system activation detection means for the system activation request. When it detects the error, it reads the data stored in the non-volatile memory and restores the execution status of the process before the system is terminated. The system state reproduction processing means and the process is interrupted and terminated, and then the process is restored again. Process that needs to receive a predetermined restoration signal in order to continue execution of the process from the interrupted state And restore process storing means for storing,
When the system state reproducing means restores the system, the restore signal sending means for transmitting the restore signal to the process stored in the restore process storage section and the process that needs to receive the restore signal are activated without depending on the resume processing. In this case, there is provided restoration process updating means for storing the process information in the restoration process storage means and deleting the process information from the restoration process storage means when the execution state of the process ends.
【0010】請求項2の発明に係るコンピュータは、請
求項1に対し、復元プロセス記憶手段が、レジューム処
理のために復元信号の受信を必要とするプロセスの識別
データと復元信号の種別とを記憶している。According to a second aspect of the invention, in the computer according to the first aspect, the restoration process storage means stores identification data of a process that needs to receive the restoration signal for resume processing and the type of the restoration signal. is doing.
【0011】[0011]
【作用】請求項1及び2の発明に係るコンピュータにお
いて、復元プロセス更新手段は、復元信号を受け取る必
要のあるプロセスがレジューム処理によらずに起動する
場合に、復元プロセス記憶手段に対してプロセスの情報
を記憶させる。これによって、レジューム処理時に復元
信号の送出先となるプロセスの登録がユーザの操作によ
らず自動的に行われる。また、レジューム処理が終了す
ると、復元プロセス記憶手段からプロセスの情報が削除
される。In the computer according to the first and second aspects of the present invention, the restoration process update means stores the process in the restoration process storage means when the process that needs to receive the restoration signal is activated without resume processing. Store information. As a result, the process that is the destination of the restoration signal during the resume process is automatically registered without the user's operation. Further, when the resume process is completed, the process information is deleted from the restoration process storage means.
【0012】復元プロセス記憶手段にプロセスの情報の
登録が行われると、レジューム処理の準備が完了する。
ユーザの電源OFF操作に応じて、システム終了検出手
段がシステム終了要求を検出すると、システム状態退避
処理手段はデータの退避処理を行う。また、システム起
動検出手段がシステム起動要求を検出すると、システム
状態再現処理手段が退避したデータの復元処理を行う。
そして、システム状態再現手段がシステムを復元した
時、復元信号送出手段は、復元プロセス記憶部に記憶さ
れたプロセスに対し復元信号を送信する。When the process information is registered in the restoration process storage means, the preparation for the resume process is completed.
When the system termination detecting means detects the system termination request in response to the user's power-off operation, the system state saving processing means performs the data saving processing. Further, when the system activation detecting means detects the system activation request, the system state reproduction processing means performs the restoration processing of the saved data.
Then, when the system state reproducing means restores the system, the restore signal sending means sends the restore signal to the process stored in the restore process storage section.
【0013】[0013]
【実施例】以下、本発明の実施例について図を用いて説
明する。図1は、本発明の実施例によるコンピュータの
構成を示すブロック図である。図1において、コンピュ
ータは、CPU101、メモリ102、制御装置10
3、不揮発性メモリ104、表示装置105、入力装置
106、電源スイッチ112、電源装置113のハード
構成と、システム終了検出手段107、システム状態退
避処理手段108、復元プロセス記憶部109、システ
ム起動検出手段110、システム状態再現処理手段11
1、復元信号送出手段114及び記憶部更新手段115
のソフトウェア構成とを備える。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a computer according to an embodiment of the present invention. In FIG. 1, the computer includes a CPU 101, a memory 102, and a control device 10.
3, the non-volatile memory 104, the display device 105, the input device 106, the power switch 112, the hardware configuration of the power supply device 113, the system end detection unit 107, the system state save processing unit 108, the restoration process storage unit 109, the system activation detection unit. 110, system state reproduction processing means 11
1. Restore signal sending means 114 and storage section updating means 115
And the software configuration of.
【0014】CPU(中央処理装置)101は、種々の
命令の解読、実行処理を行う。ここで、図2には、CP
U101内部のレジスタ構成が示されている。図2にお
いて、201はプログラムカウンタ(PC)、202は
CPU101の状態を示すプロセッサステータスワード
(PSW)、203〜209はそれぞれ16本のレジス
タを含む汎用レジスタ群である。さらに、PSW202
は、現在203〜209のどの汎用レジスタ群を使用し
ているかを示すカレントウィンドウポインタ(CWP)
301と、現在のCPU101のモード状態を示すカレ
ントステータス(CS)302と、割り込みが発生した
時のCPU101のモード状態を示すプレビャスステー
タス(PS)303とから構成されている。A CPU (Central Processing Unit) 101 decodes and executes various instructions. Here, in FIG.
The register configuration inside U101 is shown. In FIG. 2, 201 is a program counter (PC), 202 is a processor status word (PSW) indicating the state of the CPU 101, and 203 to 209 are general-purpose register groups each including 16 registers. Furthermore, PSW202
Is a current window pointer (CWP) indicating which general register group 203 to 209 is currently used.
301, a current status (CS) 302 indicating the current mode state of the CPU 101, and a pre-veth status (PS) 303 indicating the mode state of the CPU 101 when an interrupt occurs.
【0015】メモリ102は、プログラムの命令やデー
タを記憶する。図3は、メモリ102の記憶状態を概念
的に示す図であり、図中、OS領域1101、ウィンド
ウシステム領域1102、ウィンドウデータ領域110
5、1106及びアプリケーション領域1103、11
04が例示されている。不揮発性メモリ104は、例え
ばハードディスク等で構成され、レジューム処理時に、
レジューム処理に必要なデータを格納する。The memory 102 stores program instructions and data. FIG. 3 is a diagram conceptually showing a storage state of the memory 102, in which an OS area 1101, a window system area 1102, and a window data area 110 are shown.
5, 1106 and application areas 1103, 11
04 is illustrated. The non-volatile memory 104 is composed of, for example, a hard disk, and during the resume process,
Stores data required for resume processing.
【0016】電源スイッチ112は、ユーザが操作する
ことによって電源OFF要求信号をシステム終了検出手
段107に送信し、また電源ON要求信号をシステム起
動検出手段110に送信する。システム終了検出手段1
07は、電源スイッチ112から電源OFF要求信号を
受け取り、システムの終了を通知する割り込み信号を発
生する。The power switch 112, when operated by the user, sends a power-off request signal to the system end detection means 107, and also sends a power-on request signal to the system activation detection means 110. System end detection means 1
07 receives the power OFF request signal from the power switch 112 and generates an interrupt signal for notifying the end of the system.
【0017】システム起動検出手段110は、電源スイ
ッチ112から電源ON要求を受け取ると、CPU10
1に対してパワーオンリセット信号を出力する。さら
に、復元プロセス記憶部109、復元信号送出手段11
4及び復元プロセス更新手段115は、レジューム処理
時にプロセスが正常な状態に復元されるために必要とさ
れる信号(以下、復元信号と称する)の受信を必要とす
るプロセスに対する終了処理を制御する。Upon receiving the power-on request from the power switch 112, the system activation detecting means 110 receives the CPU 10
A power-on reset signal is output for 1. Furthermore, the restoration process storage unit 109 and the restoration signal sending unit 11
4 and the restoration process updating means 115 controls termination processing for a process that needs to receive a signal (hereinafter, referred to as a restoration signal) required for the process to be restored to a normal state during resume processing.
【0018】先ず、復元プロセス記憶部109は、復元
信号の受信を必要とするプロセスの情報を復元プロセス
テーブルとして格納する。図4は、復元プロセステーブ
ルの一例を概念的に示している。図4に示すように、プ
ロセス1及びプロセス2が復元信号の受信を必要とする
ものである場合、復元プロセステーブル400には、プ
ロセス1の識別子”106”に対しては復元信号の識別
子”9”が登録され、プロセス2の識別子”249”に
対しては、復元信号の識別子”15”が登録されてい
る。First, the restoration process storage unit 109 stores information on processes that need to receive a restoration signal as a restoration process table. FIG. 4 conceptually shows an example of the restoration process table. As shown in FIG. 4, when the process 1 and the process 2 require the reception of the restoration signal, the restoration process table 400 shows that the restoration signal identifier “9” corresponds to the process 1 identifier “106”. “,” And the identifier “15” of the restoration signal is registered for the identifier “249” of the process 2.
【0019】ここで、復元信号の受信を必要とするプロ
セス及びその復元信号の種別として、次のようなものが
ある。 (1)プリンタ管理アプリケーション このプロセスは、システムにつながるプリンタに出力要
求されたデータを出力する処理を行うもので、復元信号
として「終了通知」信号の受信を必要とする。このプロ
セスは、プリンタ出力処理中にシステムが終了する場合
には、システムの終了通知を受けてプリンタへ出力中で
あるというフラグをリセットし、現在出力中のデータを
まだ出力していないという状態に再設定し、次回再起動
された場合にデータを最初からプリンタに出力するとい
う処理を行なう必要がある。Here, there are the following types of processes that need to receive the restored signal and the types of the restored signal. (1) Printer Management Application This process is for performing processing for outputting the data requested to be output to the printer connected to the system, and requires reception of the "end notification" signal as the restoration signal. If the system terminates during the printer output process, this process receives the system termination notification, resets the flag indicating that the printer is outputting to the printer, and changes the status that the data currently being output has not been output yet. It is necessary to reset the data and output the data from the beginning to the printer when the system is restarted next time.
【0020】したがって、レジューム処理時には「終了
通知」を受信し、上記の処理を行なうことによって、デ
ータの出力を最初から再開することができる。 (2)タイマーを使用するアプリケーション 例えばカレンダー表示等を行うプロセスは、プロセスの
起動時にカレンダーの表示を更新するまでの時間のタイ
マーを設定して更新作業を行なうが、レジューム処理時
にシステムが中断されると、タイマーを再設定する処理
が必要となる。従って、復元信号として「リセット信
号」の受信を必要とする。そして、この信号を受信する
と、タイマーを再設定し、カレンダーの表示を正しく更
新することができる。Therefore, the data output can be restarted from the beginning by receiving the "end notice" during the resume process and performing the above process. (2) Applications that use timers For example, a process that displays a calendar sets a timer for updating the display of the calendar when the process is started, and performs the update work, but the system is interrupted during the resume process. Then, the process of resetting the timer is required. Therefore, it is necessary to receive the "reset signal" as the restoration signal. When this signal is received, the timer can be reset and the calendar display can be updated correctly.
【0021】復元信号送出手段114は、システム起動
検出手段110が電源再投入要求を検出した場合に、復
元プロセス記憶部109に記憶された各プロセスに対し
て、復元プロセステーブル400に登録された復元信号
を各プロセスに対して発信する。復元プロセス更新手段
115は、復元信号の受信を必要とするプロセスが新た
に起動された場合、あるいはその実行が終了した場合、
このプロセス側から出力されるプロセス識別子や復元信
号の識別子のデータを受け取り、復元プロセス記憶部1
09の復元プロセステーブル400に対して、新たにプ
ロセスの追加あるいは、指定したプロセスの削除を行
う。この復元プロセス更新手段115によって、復元信
号を受信することが必要なプロセスが新たに通常の操作
によって起動された後、レジューム処理がおこなわれ、
システムが再起動された時に、このプロセスは復元信号
を受信することが可能となり、正しく処理を継続するこ
とができる。また、復元プロセス記憶部109に記憶さ
れているプロセスが終了した場合には、復元プロセス更
新手段115が復元プロセス記憶部109からそのプロ
セスを削除する。これにより、異なる他のプロセスが、
同じ識別子を割り当てられた場合にも、存在しなくなっ
たプロセスに誤って復元信号を送信するような状況の発
生を防止し、システムが正しく再起動され、処理が継続
される。The restore signal sending means 114 restores the processes registered in the restore process table 400 for each process stored in the restore process storage unit 109 when the system activation detecting means 110 detects the power-on request. Send a signal to each process. The restoration process updating unit 115 is configured to, when a process that needs to receive a restoration signal is newly started or when its execution is finished.
Data of the process identifier and the identifier of the restoration signal output from this process side is received, and the restoration process storage unit 1
A new process is added to the restoration process table 400 of 09 or a designated process is deleted. By this restoration process updating means 115, a resume process is performed after a process that needs to receive a restoration signal is newly activated by a normal operation.
When the system is restarted, this process will be able to receive the restore signal and continue processing properly. Further, when the process stored in the restoration process storage unit 109 is completed, the restoration process updating unit 115 deletes the process from the restoration process storage unit 109. This allows other different processes to
Even if the same identifier is assigned, it prevents the situation where a restoration signal is erroneously sent to a process that no longer exists, the system is properly restarted, and the process is continued.
【0022】次に、本発明の実施例によるコンピュータ
の動作について説明する。以下では、最初に、復元信号
の受信を必要とするプロセスの登録処理について説明
し、その後、レジューム処理について説明する。 (プロセス登録処理)図5は、新たに作成したアプリケ
ーション(プロセス)がコンピュータに搭載され、実行
された後、レジューム処理を経て、あるいはレジューム
処理を経ずに実行を終了するまでの動作を示すフローチ
ャートである。なお、ユーザが作成したアプリケーショ
ンは、終了処理時に復元信号の受信を必要とするもので
あるとする。Next, the operation of the computer according to the embodiment of the present invention will be described. In the following, first, the registration process of the process that needs to receive the restoration signal will be described, and then the resume process will be described. (Process Registration Process) FIG. 5 is a flowchart showing an operation after a newly created application (process) is installed in a computer and executed, and then, after the resume process, or until the execution is completed without the resume process. Is. It is assumed that the application created by the user needs to receive the restoration signal at the time of termination processing.
【0023】ユーザが新たに作成したアプリケーション
は、コンピュータに搭載され、処理可能状態に翻訳され
る(ステップ510)。ユーザがこのアプリケーション
を起動すると、アプリケーションは、復元プロセス更新
手段115に対して、プロセスの識別子データと必要と
する復元信号の識別子データとを出力する。復元プロセ
ス更新手段115は、このプロセスのデータを受け取
り、復元プロセス記憶部109の復元プロセステーブル
400に登録する(ステップ520)。The application newly created by the user is installed in the computer and translated into a processable state (step 510). When the user activates this application, the application outputs the process identifier data and the necessary restore signal identifier data to the restoration process updating means 115. The restoration process update means 115 receives the data of this process and registers it in the restoration process table 400 of the restoration process storage unit 109 (step 520).
【0024】さらに、アプリケーションは処理を実行す
る(ステップ530)。この状態で、ユーザが処理を中
断するために電源スイッチ112をOFFにすると(ス
テップ540)、レジューム処理(ステップ550)が
開始され、電源スイッチ112の操作がなければ、その
まま処理を続行した後、処理を終了する(ステップ56
0)。 (レジューム処理)次に、レジューム処理の動作につい
て説明する。In addition, the application performs processing (step 530). In this state, when the user turns off the power switch 112 to interrupt the process (step 540), the resume process (step 550) is started, and if there is no operation of the power switch 112, the process is continued as it is. The process ends (step 56).
0). (Resume Processing) Next, the operation of the resume processing will be described.
【0025】図6は、システム状態退避処理手段108
の処理を示すフローチャート、図8は、システム状態再
現処理手段111の処理を示すフローチャート、図7は
不揮発性メモリ104の内部構造を示すデータ構造図で
ある。また、図9は復元信号送出手段114の処理の流
れを示すフローチャートである。まず、システム終了検
出手段107は、電源スイッチ112がOFFされたこ
とを検出すると、CPU101にシステムの終了を通知
する割り込み信号を出力する。FIG. 6 shows the system state saving processing means 108.
8 is a flowchart showing the processing of the system state reproduction processing means 111, and FIG. 7 is a data structure diagram showing the internal structure of the nonvolatile memory 104. Further, FIG. 9 is a flow chart showing a processing flow of the restoration signal transmitting means 114. First, when the system termination detecting means 107 detects that the power switch 112 is turned off, it outputs an interrupt signal for notifying the CPU 101 of the termination of the system.
【0026】割り込み信号を受け取ると、CPU101
は、CWP301の値を1増加させて汎用レジスタ群を
切替える。そして、割り込みが発生した時点のPC20
1の値をCWP301が示す汎用レジスタ群の16番目
のレジスタにコピーし、CS302の値をPS303に
コピーする。そして、あらかじめ指定された割り込み処
理プログラムに分岐する(PC201の値を書き変え
る)。When the interrupt signal is received, the CPU 101
Causes the value of CWP 301 to increase by 1 and switches the general-purpose register group. Then, the PC 20 at the time when the interrupt occurs
The value of 1 is copied to the 16th register of the general-purpose register group indicated by CWP301, and the value of CS302 is copied to PS303. Then, the process branches to the interrupt processing program designated in advance (the value of the PC 201 is rewritten).
【0027】その後、システム状態退避処理手段108
を呼び出す。図6及び図7を参照して、システム状態退
避処理手段108は、まず、CPU101のPSW20
2の内容を不揮発性メモリ104のPSWフィールド7
02に格納する(ステップ601)。次に、CPU10
1の汎用レジスタ群203〜209の内容を不揮発性メ
モリ104のCPUレジスタフィールド703に格納す
る(ステップ602)。Thereafter, the system state saving processing means 108
Call. With reference to FIGS. 6 and 7, the system state save processing unit 108 first sets the PSW 20 of the CPU 101.
2 is stored in the PSW field 7 of the nonvolatile memory 104.
No. 02 (step 601). Next, the CPU 10
The contents of the general register groups 203 to 209 of No. 1 are stored in the CPU register field 703 of the non-volatile memory 104 (step 602).
【0028】さらに、メモリ102の内容を不揮発性メ
モリ104のメモリフィールド704に格納する(ステ
ップ603)。さらに、制御装置103の内部レジスタ
の内、状態再現に必要なレジスタ(例えば入力装置10
6との通信速度を設定するボーレートレジスタ、ハード
ディスクとの転送を同期モードで行なうかどうかを設定
するHD転送モードレジスタなど)を不揮発性メモリ1
04の制御装置レジスタフィールド705に格納する
(ステップ604)。Further, the contents of the memory 102 are stored in the memory field 704 of the non-volatile memory 104 (step 603). Further, among the internal registers of the control device 103, the registers necessary for reproducing the state (for example, the input device 10
6 baud rate register to set the communication speed with the hard disk, HD transfer mode register to set whether to transfer to the hard disk in synchronous mode, etc.
No. 04 is stored in the controller register field 705 (step 604).
【0029】さらに、不揮発性メモリ104の再起動可
能フラグフィールド701に1をセットする(ステップ
605)。最後に、電源装置113に電源OFF信号を
送る(ステップ606)。この状態でシステムは電源O
FF状態となる。次に、ユーザが再び電源スイッチ11
2をONすると、電源装置113から電源が供給され、
システム起動検出手段110がパワーオンリセット信号
をCPU101に入力し、システム状態再現処理手段1
11が呼び出される。引き続いて復元信号送出手段11
4が呼び出される。Further, 1 is set in the restartable flag field 701 of the nonvolatile memory 104 (step 605). Finally, a power OFF signal is sent to the power supply device 113 (step 606). In this state, the system is powered on
The state becomes FF. Next, the user again turns on the power switch 11
When 2 is turned on, power is supplied from the power supply device 113,
The system activation detection means 110 inputs a power-on reset signal to the CPU 101, and the system state reproduction processing means 1
11 is called. Subsequently, the restoration signal sending means 11
4 is called.
【0030】図7及び図8を参照して、システム状態再
現処理手段111は、まず、不揮発性メモリ104の再
起動フラグフィールド701に1がセットされているか
どうかを判別する(ステップ801)。1がセットされ
ていなかった場合は、通常のコンピュータシステムと同
様のシステム起動処理(レジューム機能によらない起動
処理)を行なう(ステップ809)。Referring to FIGS. 7 and 8, the system state reproduction processing means 111 first determines whether 1 is set in the restart flag field 701 of the non-volatile memory 104 (step 801). If 1 has not been set, the same system boot processing as the normal computer system (boot processing not based on the resume function) is performed (step 809).
【0031】1がセットされていた場合は、まず制御装
置103を初期化する(ステップ802)。次に、不揮
発性メモリ104の制御装置レジスタフィールド705
に格納されていた内容を読み出し、制御装置103の対
応するレジスタにセットする(ステップ803)。When 1 is set, the control device 103 is first initialized (step 802). Next, the controller register field 705 of the non-volatile memory 104.
The contents stored in (1) are read and set in the corresponding registers of the control device 103 (step 803).
【0032】さらに、不揮発性メモリ104のメモリフ
ィールド704に格納されていたデータを読み出し、メ
モリ102に格納する(ステップ804)。さらに、例
えば、メモリ102に画面表示データが格納されていれ
ば、格納されている表示装置105の画面表示データを
表示装置105に転送して画面状態を復元する(ステッ
プ805)。Further, the data stored in the memory field 704 of the non-volatile memory 104 is read out and stored in the memory 102 (step 804). Further, for example, if screen display data is stored in the memory 102, the stored screen display data of the display device 105 is transferred to the display device 105 to restore the screen state (step 805).
【0033】次に、不揮発性メモリ104のCPUレジ
スタフィールド703に格納されているCPU101の
汎用レジスタ群203〜209のデータを読み出して対
応するレジスタにセットする(ステップ806)。さら
に、不揮発性メモリ104のPSWフィールド702に
格納されているCPU101のPSW202の内容を読
み出してセットする(ステップ807)。Next, the data of the general-purpose register groups 203 to 209 of the CPU 101 stored in the CPU register field 703 of the non-volatile memory 104 is read and set in the corresponding register (step 806). Further, the contents of the PSW 202 of the CPU 101 stored in the PSW field 702 of the non-volatile memory 104 are read and set (step 807).
【0034】この時点で、前述の割り込み処理から戻る
直前の状態と同じになる。そして、割り込み処理プログ
ラムは、最後に割り込み復帰命令を実行する。この命令
が実行されるとCPU101は、まずPS303の値を
CS302にコピーし、CWPが示す汎用レジスタ群の
第16番目のレジスタに格納されたアドレスに分岐する
(PC201の値を書き変える)。そして最後にCWP
の値を1減少させる。この時点でCPU101の状態は
割り込みが発生した時点の状態に戻る(ステップ80
8)。At this point, the state is the same as it was just before returning from the interrupt processing. Then, the interrupt processing program finally executes the interrupt return instruction. When this instruction is executed, the CPU 101 first copies the value of PS303 to CS302 and branches to the address stored in the 16th register of the general-purpose register group indicated by CWP (rewrites the value of PC201). And finally CWP
Decrement the value of. At this point, the state of the CPU 101 returns to the state at the time when the interrupt occurred (step 80).
8).
【0035】引続き、図9を参照して、復元信号送出手
段114は、復元プロセス記憶部109に復元信号の受
信を必要とするプロセスが登録されているか否かを検索
する。プロセスが登録されていなければ、復元されたプ
ロセスの処理を継続して実行し、登録されていれば、ス
テップ902の処理に移行する(ステップ901)。復
元信号送出手段114は、復元プロセステーブルに記憶
された全てのプロセスに対し、復元信号の識別子402
(図4参照)によって規定される種類の復元信号を送信
する(ステップ902)。例えば、図4のように、復元
プロセス記憶部109にプロセス1とプロセス2が記憶
されていた場合、プロセスの識別子”106”に対して
は信号”9”を送信し、プロセスの識別子”249”に
対しては、信号”15”を送信する。Next, referring to FIG. 9, the restoration signal sending means 114 searches the restoration process storage unit 109 for a process that needs to receive the restoration signal. If the process is not registered, the process of the restored process is continuously executed. If the process is registered, the process proceeds to step 902 (step 901). The restoration signal sending means 114 determines the restoration signal identifier 402 for all the processes stored in the restoration process table.
A restoration signal of the type defined by (see FIG. 4) is transmitted (step 902). For example, as shown in FIG. 4, when the process 1 and the process 2 are stored in the restoration process storage unit 109, the signal “9” is transmitted to the process identifier “106” and the process identifier “249”. , The signal “15” is transmitted.
【0036】上記の処理によって、各プロセスは、電源
OFF前の状態に正しく復元される。従って、この後、
継続してプロセスを実行することができる。さらに、こ
のプロセスの実行が終了すると、復元プロセス更新手段
115は、復元プロセス記憶部109の復元プロセステ
ーブルから、この終了したプロセスに関するデータを削
除する。By the above processing, each process is correctly restored to the state before the power was turned off. So after this,
The process can continue to run. Further, when the execution of this process ends, the restoration process update means 115 deletes the data related to this finished process from the restoration process table of the restoration process storage unit 109.
【0037】なお、上記実施例においては、復元信号と
して、「終了通知」と「リセット信号」について説明し
たが、特にこれに限定されるものではない。In the above embodiment, the "completion notice" and "reset signal" have been described as the restoration signals, but the restoration signals are not limited to these.
【0038】[0038]
【発明の効果】このように、請求項1及び2の発明に係
るコンピュータは、レジューム処理のためのシステム終
了検出手段、システム退避処理手段、システム起動検出
手段、システム状態再現処理手段を有し、また、復元プ
ロセス更新手段が、復元信号を受け取る必要のあるプロ
セスを復元プロセス記憶手段に記憶させ、システム状態
再現手段がシステムを復元した時、復元信号送出手段
が、復元プロセス記憶部に記憶されたプロセスに対し復
元信号を送信するように構成されているので、レジュー
ム処理時に復元信号を受信して所定の処理を行う必要の
あるプロセスに対しても、ユーザが意識することなく、
また余分な操作を行うことなくレジューム処理を行うこ
とが可能なコンピュータを実現することができる。As described above, the computer according to the first and second aspects of the present invention has the system end detection means for the resume processing, the system save processing means, the system activation detection means, and the system state reproduction processing means. Further, when the restoration process updating unit stores the process that needs to receive the restoration signal in the restoration process storage unit and the system state reproduction unit restores the system, the restoration signal sending unit is stored in the restoration process storage unit. Since it is configured to send the restoration signal to the process, the user need not be aware of the process that needs to receive the restoration signal and perform a predetermined process during the resume processing.
Further, it is possible to realize a computer capable of performing resume processing without performing extra operations.
【図1】本発明の実施例におけるコンピュータの構成を
示すブロック図である。FIG. 1 is a block diagram showing a configuration of a computer according to an embodiment of the present invention.
【図2】本実施例のCPUの内部構成を示す模式図であ
る。FIG. 2 is a schematic diagram showing an internal configuration of a CPU of this embodiment.
【図3】本実施例のメモリの状態を模式的に示す模式図
である。FIG. 3 is a schematic diagram schematically showing a state of a memory of this embodiment.
【図4】本実施例の復元プロセス記憶部109に記憶さ
れた復元プロセステーブルの内容を概念的に示す概念図
である。FIG. 4 is a conceptual diagram conceptually showing the contents of a restoration process table stored in a restoration process storage unit 109 of this embodiment.
【図5】本実施例のコンピュータの復元プロセスの登録
処理動作を示すフローチャートである。FIG. 5 is a flowchart showing the registration processing operation of the restoration process of the computer of the present embodiment.
【図6】本実施例のコンピュータのデータ退避処理動作
を示すフローチャートである。FIG. 6 is a flowchart showing a data saving processing operation of the computer of this embodiment.
【図7】本実施例の不揮発性メモリの内容を概念的に示
す概念図である。FIG. 7 is a conceptual diagram conceptually showing the contents of the nonvolatile memory of the present embodiment.
【図8】本実施例のコンピュータの復元処理動作を示す
フローチャートである。FIG. 8 is a flowchart showing a restoration processing operation of the computer of the present embodiment.
【図9】本実施例のコンピュータの復元信号発信処理動
作を示すフローチャートである。FIG. 9 is a flowchart showing a restoration signal transmission processing operation of the computer of the present embodiment.
【図10】従来のコンピュータの構成を示すブロック図
である。FIG. 10 is a block diagram showing a configuration of a conventional computer.
101 CPU 102 メモリ 103 制御装置 104 不揮発性メモリ 106 入力装置 107 システム終了検出手段 108 システム状態退避処理手段 109 復元プロセス記憶部 110 システム起動検出手段 111 システム状態再現処理手段 114 復元信号送出手段 115 復元プロセス更新手段 101 CPU 102 Memory 103 Control Device 104 Nonvolatile Memory 106 Input Device 107 System End Detection Means 108 System State Saving Processing Means 109 Restoration Process Storage Unit 110 System Startup Detection Means 111 System State Reproduction Processing Means 114 Restoration Signal Sending Means 115 Restoration Process Update means
Claims (2)
の継続実行に必要とされるデータを不揮発性記憶手段に
退避させ、電源再投入時に、退避した前記データを復元
するレジューム機能を有するコンピュータであって、 システム終了要求を検出するシステム終了検出手段と、 システム起動要求を検出するシステム起動検出手段と、 前記システム終了検出手段がシステムの終了要求を検出
した時、実行状態のプロセスがその実行状態を保持する
ために必要なデータを不揮発性記憶手段に退避して保存
するシステム状態退避処理手段と、 前記システム起動検出手段がシステムの起動要求を検出
した時、前記不揮発性記憶手段に保存されたデータを読
み出して、システム終了前の前記プロセスの実行状態を
復元するシステム状態再現処理手段と、 プロセスを中断して終了させた後、再びプロセスを復元
して中断した状態からプロセスの処理を継続して実行す
るためには所定の復元信号を受けとる必要のあるプロセ
スを記憶する復元プロセス記憶手段と、 前記システム状態再現手段がシステムを復元した時、前
記復元プロセス記憶部に記憶されたプロセスに対し前記
復元信号を送信する復元信号送出手段と、 前記復元信号を受け取る必要のあるプロセスがレジュー
ム処理によらずに起動する場合に、前記復元プロセス記
憶手段に対して前記プロセスの情報を記憶させ、前記プ
ロセスの実行状態が終了した場合に、前記復元プロセス
記憶手段から前記プロセスの情報を削除する復元プロセ
ス更新手段とを備えたことを特徴とする、コンピュー
タ。1. A computer having a resume function of saving data required for continuous execution of a process in a processing state in a non-volatile storage means when power is turned off and restoring the saved data when power is turned on again. There is a system termination detecting means for detecting a system termination request, a system activation detecting means for detecting a system activation request, and when the system termination detecting means detects a system termination request, the process in the execution state is in the execution state. System state save processing means that saves and saves data necessary for holding in the non-volatile storage means, and when the system boot detection means detects a system boot request, the data is saved in the non-volatile storage means. System state reproduction processing means for reading out data and restoring the execution state of the process before the system termination; Restoration process storage means for storing a process that needs to receive a predetermined restoration signal in order to resume the process and continue execution of the process from the suspended state after the process is suspended and terminated. When the system state reproducing means restores the system, a restore signal sending means for transmitting the restore signal to the process stored in the restore process storage section, and a process that needs to receive the restore signal are used for resume processing. A restore process that stores the information of the process in the restore process storage unit when the process is started without depending on the process, and deletes the information of the process from the restore process storage unit when the execution state of the process ends A computer comprising update means.
ム処理のために前記復元信号の受信を必要とするプロセ
スの識別データと復元信号の種別とを記憶していること
を特徴とする、請求項1記載のコンピュータ。2. The restoration process storage means stores identification data of a process that needs to receive the restoration signal for resume processing and a type of the restoration signal. The listed computer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5174257A JPH0728545A (en) | 1993-07-14 | 1993-07-14 | Computer with resume function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5174257A JPH0728545A (en) | 1993-07-14 | 1993-07-14 | Computer with resume function |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0728545A true JPH0728545A (en) | 1995-01-31 |
Family
ID=15975474
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5174257A Pending JPH0728545A (en) | 1993-07-14 | 1993-07-14 | Computer with resume function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0728545A (en) |
-
1993
- 1993-07-14 JP JP5174257A patent/JPH0728545A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6393560B1 (en) | Initializing and restarting operating systems | |
| CN100391176C (en) | Method and system for remotely updating functions of household devices | |
| JP4887150B2 (en) | Method and apparatus for monitoring and resetting a coprocessor | |
| US7913072B2 (en) | Information-processing apparatus and activation method thereof | |
| CN103412769B (en) | External card parameter configuration, equipment and system | |
| US5675800A (en) | Method and apparatus for remotely booting a computer system | |
| JPH077317B2 (en) | System restart device | |
| EP0658843A1 (en) | Method for hibernation file creation | |
| JPH11134117A (en) | Computer system | |
| JPS62298839A (en) | Restarting of computer system in case of disturbance | |
| EP2641168A2 (en) | Method of provisioning firmware in an operating system (os) absent services environment | |
| JPH07101376B2 (en) | System restart device | |
| CN110764799A (en) | Method, equipment and medium for optimizing and remotely updating FPGA (field programmable Gate array) accelerator card | |
| CN112131043A (en) | Method and device for detecting and recovering abnormity of basic input and output system | |
| JP2001022598A (en) | Computer system | |
| JPH11353048A (en) | Power saving mode transition control method for electronic device, electronic device and recording medium recording power saving mode transition control procedure | |
| EP0477385B1 (en) | Method of resetting adapter module at failing time and computer system executing said method | |
| KR0182632B1 (en) | Client server system performing automatic reconnection and control method thereof | |
| CN115756616A (en) | Basic Input Output System (BIOS) configuration item configuration method and server | |
| CN114356383A (en) | Firmware upgrading method and system of Bootloader architecture | |
| WO2025158204A1 (en) | Data processing | |
| JPH0728545A (en) | Computer with resume function | |
| CN113126883B (en) | A data processing method, system and storage medium | |
| JP2003108513A (en) | Hardware chain pull | |
| CN110740382A (en) | Method, device, television and medium for avoiding undesired automatic restart of television |