JPH0395609A - Personal computer system - Google Patents

Personal computer system

Info

Publication number
JPH0395609A
JPH0395609A JP1233422A JP23342289A JPH0395609A JP H0395609 A JPH0395609 A JP H0395609A JP 1233422 A JP1233422 A JP 1233422A JP 23342289 A JP23342289 A JP 23342289A JP H0395609 A JPH0395609 A JP H0395609A
Authority
JP
Japan
Prior art keywords
power
nmi
fdd
processing
turned
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
JP1233422A
Other languages
Japanese (ja)
Inventor
Toshimitsu Saito
敏満 斉藤
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1233422A priority Critical patent/JPH0395609A/en
Publication of JPH0395609A publication Critical patent/JPH0395609A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To prevent the destruction of data even if a power supply is interrupted in an access mode by waiting for the end of a disk access mode if it is in the disk accessing at the time of requiring a power OFF and then turning off a power unit after the system information is reserved. CONSTITUTION:When a power switch is turned off, a power unit 4 issues a power OFF NMI and waits for a power OFF state until a power OFF command is received. An NMI process block 1 checks based on the power OFF NMI whether an FDD access is kept or not. If so, the FDD NMI request information is set and the NMI process is terminated. An FDD process block 2 issues an FDD NMI if the FDD NMI request information is set at the end. Thus the block 1 stores the system information with a resuming process and then sends a power OFF command to the power unit 4. Thus, the unit 4 receives the command and turns off the power supply. In a resuming process carried out in the block 1, the system information is stored in a memory and a system reserving flag is set.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、ディスクアクセス中に電源スイッチを切断
してもファイルが破壊されることのないパーソナルコン
ビュータシステムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a personal computer system in which files are not destroyed even if the power switch is turned off during disk access.

(従来の技術) パーソナルコンピュータの分野では、フロッピーディス
ク(FDD)が外部記憶として標準的に使用され、最近
では比較的大容量のハードディスク(HDD)等も搭載
必須となった。ところでこの種FDDやHDD等のディ
スクアクセス中、特にデータの書き込み中に電源スイッ
チが切られた場合、メカが停止しデータが破壊されるこ
とがある。また、運よくデータが破壊されなかったりし
ても、関連するデータまたはファイルにつじつまが合わ
なくなることが考えられる。
(Prior Art) In the field of personal computers, floppy disks (FDD) are standardly used as external storage, and recently it has become essential to also install relatively large-capacity hard disks (HDD). By the way, if the power switch is turned off while accessing a disk such as an FDD or HDD, especially while data is being written, the mechanism may stop and the data may be destroyed. Furthermore, even if the data is not destroyed, related data or files may become inconsistent.

(発明が解決しようとする課題) 上述したように、従来FDD/HDDアクセス中に電源
スイッチが切られるとディスク内のデータ、ファイルの
中身が保障されない可能性があった。
(Problems to be Solved by the Invention) As described above, conventionally, if the power switch is turned off during FDD/HDD access, there is a possibility that the contents of the data and files in the disk are not guaranteed.

この発明は上記事情に鑑みてなされたものであり、パー
ソナルコンピュータにおいて、ディスクアクセス中に電
源スイッチを切られてもディスク内データの破壊を防止
し、かつ、次に電源スイッチを入れた時に電源オフの直
前の状態に戻すことのできるパーソナルコンピュータシ
ステムを提供することを目的とする。
This invention has been made in view of the above circumstances, and is intended to prevent data on the disk from being destroyed even if the power switch is turned off during disk access in a personal computer, and to prevent the power from being turned off the next time the power switch is turned on. An object of the present invention is to provide a personal computer system that can be returned to its previous state.

[発明の構成] (課題を解決するための手段) 本発明は、基本入出力システムにより入出力が制御され
るパーソナルコンピュータにおいて、電源スイッチ断で
パワーオフ要求をホストに割込みとして通知し、ホスト
からのパワーオフ許可により電源を切断する電源装置と
、パワーオフ要求時、ディスクアクセス中ならアクセス
終了まで持ち、その後システム情報を保存し上記電源装
置へパワーオフ許可を通知する上記基本入出力システム
中の割込み処理手段と、ディスクアクセス終了時、上記
割込み処理手段がパワーオフ要求を通知されていたなら
ディスクアクセス終了を上記割込み処理手段へ通知する
上記基本入出力システム中のディスク処理手段と、電源
スイッチを投入することにより、システム情報が保持さ
れていたなら復元し、制御を電源スイッチ断の直前の状
態に戻すシステムブート処理のための上記基本入出力処
理システム中の手段とから成ることを特徴とする。
[Structure of the Invention] (Means for Solving the Problems) The present invention provides a personal computer whose input/output is controlled by a basic input/output system, in which a power-off request is notified to the host as an interrupt when the power switch is turned off, and the host A power supply device that turns off the power with power-off permission from the power supply device, and a basic input/output system that stores system information until the access is completed if the disk is being accessed at the time of a power-off request, and then notifies the power-off permission to the power supply device. an interrupt processing means, a disk processing means in the basic input/output system that notifies the interrupt processing means of the end of the disk access if the interrupt processing means has been notified of a power-off request when the disk access ends, and a power switch; and means in the basic input/output processing system for system boot processing to restore system information if it has been retained and return control to the state immediately before the power switch was turned off. .

このことにより、ディスクアクセス中に電源スイッチが
切られてもディスク内のファイルが破壊されたり、関連
データのつじつまが合わなくなることを防止し、かつ、
電源スイッチが再投入されたら切られた直前に戻ること
を特徴とする。
This prevents files on the disk from being destroyed or related data from becoming inconsistent even if the power switch is turned off during disk access, and
It is characterized in that when the power switch is turned on again, it returns to the state immediately before it was turned off.

(作 用) 上述した構成にて、電源装置は、電源スイッチOFFに
よりバワーOFF  NMIを発行し、パワーOFFコ
マンドの到来を待って電源を切る。
(Function) In the above-described configuration, the power supply device issues a power OFF NMI when the power switch is turned OFF, waits for the arrival of a power OFF command, and then turns off the power.

ホストは、」二記パワーOFF  NMIによりディス
クアクセス中なら、そのNMI要求情報をセットし、シ
ステム情報を外部記憶装置またはバックアップメモリへ
保存後、パワーOFFコマンドを出力する。ディスクア
クセス手段は、ディスアクセス終了時NMI処理のため
の手段がパワーOFF要求を通知されていたならディス
クアクセス終了をNMI処理手段へ通知する。システム
ブート処理手段は電源スイッチの再投入でシステム情報
が保持されていたなら復元させ、制御を電源スイイッチ
OFFの直前の状態に戻す。
If the host is accessing the disk using the "Power OFF NMI", the host sets the NMI request information, saves the system information to an external storage device or backup memory, and then outputs a power OFF command. The disk access means notifies the NMI processing means of the end of the disk access, if the means for NMI processing has been notified of the power-off request at the end of the disk access. The system boot processing means restores the system information if it is retained by turning on the power switch again, and returns control to the state immediately before turning off the power switch.

このことにより、ディスクアクセス中に電源スイッチを
切ってもディスク内データを破壊せず、かつ、電源再投
入時直前の状態に戻ることを実現する。
This makes it possible to prevent data on the disk from being destroyed even if the power switch is turned off during disk access, and to return to the state immediately before the power is turned on again.

(実施例) 以下、図面を使用して本発明実施例について詳細に説明
する。
(Example) Hereinafter, an example of the present invention will be described in detail using the drawings.

第1図は本発明の実施例を示すブロック図である。図に
おいて、符号1はNMI処理を実行する制御ブロックで
あり、後述するNMI(Non Maskable I
nterrupt)処理を行ったり、システムデータを
保Hするリジューム処理を行う。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numeral 1 is a control block that executes NMI processing, which will be described later.
(interrupt) processing and resume processing to preserve system data.

また、その結果、後述する電源装置4ヘパワーOFFコ
マンドを送る。符号2はFDD処理を行うブロックであ
り、システムに接続されるFDDのアクセスをしたり、
NMI処理ブロック1へFDD  NMIを発行する。
Further, as a result, a power OFF command is sent to the power supply device 4, which will be described later. Reference numeral 2 is a block that performs FDD processing, and accesses the FDD connected to the system.
Issue FDD NMI to NMI processing block 1.

符号3はシステムブート処理を行うブロックでシステム
データが保存されていたらシステム復元を行う。符号4
は電源装置であり、電源スイッチのOFFでバワーOF
F  NMIを発行したり、ホストからのパワーOFF
コマンドの到来により電源を切ったりする。
Reference numeral 3 is a block that performs system boot processing, and if system data is saved, system restoration is performed. code 4
is a power supply device, and the power is turned off when the power switch is turned off.
F Issuing an NMI or turning off power from the host
When a command arrives, the power is turned off.

尚、上述したNMI処理、F’DD処理、システムブー
ト処理のための各ブロックはいずれもパーソナルコンピ
ュータ本体(ホスト)内蔵の基本入出力システム(BI
OS)中にプログラムされている。
The blocks for the NMI processing, F'DD processing, and system boot processing described above are all implemented in the basic input/output system (BI) built into the personal computer main body (host).
is programmed into the operating system (OS).

符号5はFDD装置である。符号6はFDDアクセス中
の情報であり、FDDアクセス中か否かを示す。符号7
はFDD  Nyrxg求情報であり、FDDアクセス
終了後、FDD  NMIを発行するか否かを示す。符
号8はシステムデータであり、CPUレジスタ、各LS
I情報、V−RAM,メモリ等のデータである。符号9
はシステム保存データであり、システムデータとシステ
ム保存フラグが外部記憶装置またはバックアップメモリ
へ保存される。
Reference numeral 5 is an FDD device. Reference numeral 6 is information indicating that the FDD is being accessed, and indicates whether or not the FDD is being accessed. code 7
is FDD Nyrxg request information, which indicates whether or not to issue an FDD NMI after FDD access is completed. Symbol 8 is system data, CPU register, each LS
This is data such as I information, V-RAM, memory, etc. code 9
is system save data, and the system data and system save flag are saved to an external storage device or backup memory.

第2図乃至第5図は本発明実施例の動作を説明するため
に引用した図であり、それぞれ、NMI処理、NMI処
理内のリジューム処理、FDD処理、システムブートト
処理のそれぞれの処理の流れを示す。
Figures 2 to 5 are diagrams cited to explain the operation of the embodiment of the present invention, and are the flowcharts of NMI processing, resume processing within NMI processing, FDD processing, and system boot processing, respectively. shows.

図中、符号21はパフ一〇FF  NMIか否かチェッ
クするステップである。符号22はFDDアクセス中か
否かチェックするステップであり、FDD処理がセット
するFDDアクセス中か否かの情報をチェックする。符
号23はFDDNMI要求をセットするステップである
。符号24はFDD  NMIか否かチェックするステ
ップである。符号25はリジューム処理を行うステップ
であり、詳細は第3図に示される。符号26はパワーO
FFコマンドを出力するステップであり、電源装置4内
蔵のマイクロプロセッサへパワーOFFコマンドを出力
する。符号27は他のNMI処理を行うステップであり
、パワーOFFNMIとFDD  NMI以外のNMI
処理を行う。
In the figure, reference numeral 21 is a step of checking whether the puff is 10FF NMI. Reference numeral 22 is a step for checking whether or not FDD access is in progress, and the information set by the FDD process as to whether or not FDD access is in progress is checked. Reference numeral 23 is a step for setting an FDDNMI request. Reference numeral 24 is a step of checking whether or not it is FDD NMI. Reference numeral 25 is a step for performing resume processing, the details of which are shown in FIG. Code 26 is power O
This is a step of outputting an FF command, and a power OFF command is output to the microprocessor built in the power supply device 4. Reference numeral 27 is a step for performing other NMI processing, and NMI other than power OFF NMI and FDD NMI
Perform processing.

符号31はシステム情報を保存するステップであり、シ
ステムの各種データを外部記憶装置またはバックアップ
メモリへ保存する。符号32はシステム保存中であるこ
とを表現するステップであり、システム保存フラッグを
セットする。
Reference numeral 31 is a step for saving system information, in which various data of the system are saved in an external storage device or a backup memory. Reference numeral 32 is a step to express that the system is being saved, and a system save flag is set.

符号41はFDDアクセス中とするステップであり、N
MI処理でFDDアクセス中か否かの判断をする為の情
報をFDDアクセス中に行う。符号42はFDDアクセ
ス処理を行うステップである。符号43はFDDアクセ
ス終了とするステップであり、NMI処理でFDDアク
セス中か否かの判断をする為の情報である。符号44は
FDDNMI要求か否かチェックするステップであり、
NMI処理がセットするFDD  NMI要求の情報か
らFDD  NMIを発行するか否かを判断する。符号
45はFDD  NMI要求をクリアするステップであ
る。符号46はFDD  NMIを発行するステップで
ある。
Reference numeral 41 is a step for determining that the FDD is being accessed, and N
Information for determining whether or not the FDD is being accessed in MI processing is provided during the FDD access. Reference numeral 42 is a step for performing FDD access processing. Reference numeral 43 is a step for terminating FDD access, and is information for determining whether or not FDD access is in progress in NMI processing. Reference numeral 44 is a step of checking whether or not it is an FDDNMI request;
It is determined whether or not to issue an FDD NMI based on the FDD NMI request information set by the NMI process. Reference numeral 45 is a step for clearing the FDD NMI request. Reference numeral 46 is a step of issuing an FDD NMI.

符号51はシステム保H中かチェックするステップであ
り、システム保存フラッグをチェックする。符号52は
システム情報を復元するステップであり、外部記憶装置
またはバックアップメモリから、システムの各種データ
をシステムへ復元する。符号53はシステム保存なしと
するステップであり、システム保存フラッグをクリアす
る。符号54はシステムへ制御を移すステップであり、
保存したシステム情報のCPUレジスタへ戻し、プログ
ラムカウンタヘ制御を移す。符号55は通常のシステム
ブート処理を行うステップである。
Reference numeral 51 is a step for checking whether the system is being preserved, and the system preservation flag is checked. Reference numeral 52 is a step for restoring system information, in which various data of the system are restored to the system from an external storage device or backup memory. Reference numeral 53 is a step in which the system is not saved, and the system save flag is cleared. Reference numeral 54 is a step of transferring control to the system,
Returns the saved system information to the CPU register and transfers control to the program counter. Reference numeral 55 is a step for performing normal system boot processing.

これが起動され実行されることによりシステムは動作可
能状態となる。
When this is activated and executed, the system becomes operational.

以下、本発明実施例の動作について詳細に説明する。Hereinafter, the operation of the embodiment of the present invention will be explained in detail.

電源スイッチがOFFされると、電源装置4は、パワ一
〇FF  NMIを発行する。そして電源OFFをパワ
ーOFFコマンドを受け取るまで待つ。パワ一〇FF 
 NMIにより、NM■処理ブロック1は、FDDアク
セス中情報によりFDDアクセス中か否かチェックし、
アクセス中でなければ電源装置4ヘパワーOFFコマン
ドを送る。
When the power switch is turned off, the power supply device 4 issues a power 10FF NMI. Then, it waits until a power OFF command is received to turn off the power. Power 10FF
According to the NMI, the NM■ processing block 1 checks whether or not the FDD is being accessed based on the FDD accessing information,
If it is not being accessed, a power OFF command is sent to the power supply device 4.

アクセス中ならFDD  NMIi求情報をセットし、
NMI処理を終了する。
If accessing, set FDD NMIi request information,
End NMI processing.

FDD処理ブロック2は、開始と終了時にFDDアクセ
ス中情報をセットクリアするが、終了時FDD  NM
I要求情報がセットされていたら、FDD  NMIを
発行する。このFDDNMIにより、NMI処理ブロッ
ク1はリジューム処理により、システム情報を保存し、
その後電源装置4ヘパワーOFFコマンドを送る。
The FDD processing block 2 sets and clears the FDD access information at the start and end, but the FDD NM
If the I request information is set, issue an FDD NMI. With this FDDNMI, NMI processing block 1 saves system information by resume processing,
After that, a power OFF command is sent to the power supply device 4.

電源装置4は、パワーOFFコマンドを受け取って電源
を切る。NMI処理ブロック1内のりジューム処理はシ
ステム情報を外部記憶装置またはバックアップメモリへ
保存し、システム保存フラッグをセットする。
The power supply device 4 receives the power OFF command and turns off the power. Resume processing within NMI processing block 1 saves system information to external storage or backup memory and sets a system save flag.

電源スイッチのONで、システムプート処理ブロック3
は、システム保存フラッグがセットされていたなら外部
記憶装置またはバックアップメモリからシステムを復元
する。
Turn on the power switch, system boot processing block 3
restores the system from external storage or backup memory if the system save flag was set.

以上のようにFDDアクセス中に電lJi.SWを切ら
れても、FD内データを破壊せず、かつ、次に電源スイ
ッチを入れると前の状態に戻れる。
As described above, when accessing the FDD, the electric power lJi. Even if the switch is turned off, the data in the FD will not be destroyed, and the next time the power switch is turned on, the previous state can be restored.

尚、本発明はFDDのみ例示して示したがFDDのみな
らずHDDにおいても同じ仕様にて応用できる。
Although the present invention has been shown by way of example only for FDDs, it can be applied not only to FDDs but also to HDDs with the same specifications.

[発明の効果〕 以上説明のように本発明によれば、FDDアクセス中に
間違って電源スイッチを切ってもFD内データは破壊さ
れず、電源再投入時、切る直前の状態へすぐに戻る事が
でき処理を継続できるといった利点を持つ。
[Effects of the Invention] As explained above, according to the present invention, even if the power switch is accidentally turned off while accessing the FDD, the data in the FD is not destroyed, and when the power is turned on again, the state immediately before being turned off can be returned immediately. It has the advantage of being able to continue processing.

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

第1図は本発明の実施例を示すブロック図、第2図乃至
第5図は本発明実施例の動作を説明するために引用した
図であり、第2図はNMI処理を示すフローチャート、
第3図はNMI処理ブロック内のリジューム処理を示す
フローチャート、第4図はFDD処理を示すフローチャ
ート、第5図はシステムプート処理を示すフローチャー
トである。 1・・・NMI処理ブロック、2・・・FDD処理ブロ
ック、3・・・システムブート処理ブロック、4・・・
電源装置、9・・・システム保存フラッグ。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIGS. 2 to 5 are diagrams cited to explain the operation of the embodiment of the present invention, and FIG. 2 is a flowchart showing NMI processing;
FIG. 3 is a flowchart showing resume processing in the NMI processing block, FIG. 4 is a flowchart showing FDD processing, and FIG. 5 is a flowchart showing system boot processing. 1... NMI processing block, 2... FDD processing block, 3... System boot processing block, 4...
Power supply, 9...System save flag.

Claims (1)

【特許請求の範囲】[Claims] 基本入出力システムにより入出力が制御されるパーソナ
ルコンピュータにおいて、電源スイッチ断でパワーオフ
要求をホストに割込みとして通知し、ホストからのパワ
ーオフ許可により電源を切断する電源装置と、パワーオ
フ要求時、ディスクアクセス中ならアクセス終了まで持
ち、その後システム情報を保存し上記電源装置へパワー
オフ許可を通知する上記基本入出力システム中の割込み
処理手段と、ディスクアクセス終了時、上記割込み処理
手段がパワーオフ要求を通知されていたならディスクア
クセス終了を上記割込み処理手段へ通知する上記基本入
出力システム中のディスク処理手段と、電源スイッチを
投入することにより、システム情報が保持されていたな
ら復元し、制御を電源スイッチ断の直前の状態に戻すシ
ステムブート処理のための上記基本入出力処理システム
中の手段とから成ることを特徴とするパーソナルコンピ
ュータシステム。
In a personal computer whose input/output is controlled by a basic input/output system, a power supply device that notifies the host of a power-off request as an interrupt when the power switch is turned off, and turns off the power upon power-off permission from the host; If the disk access is in progress, the interrupt processing means in the basic input/output system is retained until the access is completed, and then the system information is saved and the power supply device is notified of power-off permission, and when the disk access is completed, the interrupt processing means issues a power-off request. If the system information has been retained, the disk processing means in the basic input/output system notifies the interrupt processing means of the end of the disk access, and the system information is restored and controlled by turning on the power switch. A personal computer system comprising means in the basic input/output processing system described above for performing system boot processing to return to the state immediately before the power switch was turned off.
JP1233422A 1989-09-08 1989-09-08 Personal computer system Pending JPH0395609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1233422A JPH0395609A (en) 1989-09-08 1989-09-08 Personal computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1233422A JPH0395609A (en) 1989-09-08 1989-09-08 Personal computer system

Publications (1)

Publication Number Publication Date
JPH0395609A true JPH0395609A (en) 1991-04-22

Family

ID=16954810

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1233422A Pending JPH0395609A (en) 1989-09-08 1989-09-08 Personal computer system

Country Status (1)

Country Link
JP (1) JPH0395609A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0619591A (en) * 1992-07-01 1994-01-28 Mitsubishi Electric Corp Computer system
US7234150B2 (en) 2002-03-22 2007-06-19 Funai Electric Co., Ltd. Method and apparatus for controlling a disk drive

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0619591A (en) * 1992-07-01 1994-01-28 Mitsubishi Electric Corp Computer system
US7234150B2 (en) 2002-03-22 2007-06-19 Funai Electric Co., Ltd. Method and apparatus for controlling a disk drive

Similar Documents

Publication Publication Date Title
TWI407300B (en) Method and controller for power management
US5896550A (en) Direct memory access controller with full read/write capability
JP3106401B2 (en) Information processing system
US6336161B1 (en) Computer configuration system and method with state and restoration from non-volatile semiconductor memory
US6243831B1 (en) Computer system with power loss protection mechanism
JPH04362717A (en) System restarting device
JPH07200112A (en) Information processing system
JPH0291749A (en) Nonvolatile type semiconductor memory device
JP4155545B2 (en) Computer system and data transfer control method
KR970011216B1 (en) Information processing system
JP3102455B2 (en) Information processing system
JPH0395609A (en) Personal computer system
TWI522924B (en) Electronic device and operating system switching method thereof
JP3961669B2 (en) Computer system and data transfer control method
JPH09212424A (en) Disk cache and disk caching method
JPH10254780A (en) Disk cache control system
JP3579129B2 (en) Portable computer
JP3227628B2 (en) Information processing system
JPH09330253A (en) Memory dump method and memory damp system applying the same
JPH01118932A (en) Information processor
JP4726425B2 (en) Information processing device
JPH0744438A (en) Apparatus and method for creation of hibernation file
JPH0833838B2 (en) Computer system
JPS62232023A (en) External storage system for computer
JP2004252856A (en) System and method for preventing breakage of file system