JP2000353359A - Storage device initializing method - Google Patents
Storage device initializing methodInfo
- Publication number
- JP2000353359A JP2000353359A JP11163185A JP16318599A JP2000353359A JP 2000353359 A JP2000353359 A JP 2000353359A JP 11163185 A JP11163185 A JP 11163185A JP 16318599 A JP16318599 A JP 16318599A JP 2000353359 A JP2000353359 A JP 2000353359A
- Authority
- JP
- Japan
- Prior art keywords
- command
- bios
- hard disk
- storage device
- program
- 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
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は記憶装置の初期化方
法に係り、特にコンピュータ本体の内蔵ハードディスク
の初期化方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for initializing a storage device, and more particularly to a method for initializing a hard disk built in a computer.
【0002】[0002]
【従来の技術】コンピュータ本体の内蔵ハードディスク
装置にオペレーションシステム(OS)やアプリケーシ
ョンプログラムを予めインストールして出荷する製品で
は、出荷時状態にするための製造コピーシステムを使用
して開発を行う。この製造コピーシステムでは、フロッ
ピィディスク媒体やCD−ROM媒体にOSやアプリケ
ーションプログラムのファイルを格納しておき、プログ
ラムの制御により内蔵ハードディスクの初期化を行って
からファイルのコピーを行う。2. Description of the Related Art For products that are shipped with an operation system (OS) or an application program installed in advance in a hard disk device built into a computer main body, development is performed using a manufacturing copy system for bringing the product to a shipping state. In this manufacturing copy system, a file of an OS or an application program is stored in a floppy disk medium or a CD-ROM medium, and a built-in hard disk is initialized by program control, and then the file is copied.
【0003】[0003]
【発明が解決しようとする課題】しかるに、上記の従来
の製造コピーシステムでの内蔵ハードディスクの初期化
は、初期化プログラムによって行っているが、初期化プ
ログラムから発行されたベリファイコマンドが初期化時
間のほとんどを費やしており、製造コピーシステムから
ハードディスクにインストールする度に初期化の処理が
走るため、製造コピーシステムの開発及び評価に多大な
工数を要するという問題がある。However, the initialization of the internal hard disk in the above-mentioned conventional production copy system is performed by an initialization program. However, a verify command issued from the initialization program is used for the initialization time. Most of the time is spent, and the initialization process runs each time the hard disk is installed from the production copy system. Therefore, there is a problem that it takes a lot of man-hours to develop and evaluate the production copy system.
【0004】本発明は以上の点に鑑みなされたもので、
ハードディスクの初期化プログラムの実行時間を短縮し
得る記憶装置の初期化方法を提供することを目的とす
る。[0004] The present invention has been made in view of the above points,
An object of the present invention is to provide a method of initializing a storage device that can reduce the execution time of an initialization program for a hard disk.
【0005】[0005]
【課題を解決するための手段】上記の目的を達成するた
め、本発明は初期化の対象となる記憶装置に直接命令を
与えることができるBIOSに、初期化プログラムがコ
マンドを発行して記憶装置を初期化する初期化方法にお
いて、初期化プログラムの実行前に、BIOSの割り込
みベクタを書き換え、BIOSの本来の処理ではなく自
前の割り込みルーチンが起動するようにしておき、初期
化プログラムの実行により初期化プログラムからBIO
Sへコマンドを発行すると、自前の割り込みルーチンを
起動して発行されたコマンドの種別が省略可能な所定の
種別であるかどうか判定し、所定の種別のコマンドが発
行されたときはそのコマンドを無効化し、所定の種別以
外の種別のコマンドが発行されたときはBIOS本来の
処理を実行させるようにしたものである。In order to achieve the above object, the present invention provides an initialization program which issues a command to a BIOS which can directly give an instruction to a storage device to be initialized. In the initialization method for initializing the BIOS, before executing the initialization program, the interrupt vector of the BIOS is rewritten so that the own interrupt routine is started instead of the original processing of the BIOS, and the initialization is executed by executing the initialization program. From the conversion program to BIO
When a command is issued to S, its own interrupt routine is started to determine whether the type of the issued command is a predetermined type that can be omitted. If a command of the predetermined type is issued, the command is invalidated. That is, when a command of a type other than the predetermined type is issued, the original processing of the BIOS is executed.
【0006】この発明では、初期化プログラムの実行に
より初期化プログラムからBIOSへ所定の種別のコマ
ンドが発行されたときは、自前の割り込みルーチンによ
りそのコマンドを無効化するようにしたため、初期化の
際に上記所定の種別のコマンドを実行しないようにでき
る。According to the present invention, when a command of a predetermined type is issued from the initialization program to the BIOS by execution of the initialization program, the command is invalidated by its own interrupt routine. The command of the predetermined type can be prevented from being executed.
【0007】ここで、上記の記憶装置は、ハードディス
クであり、また、所定の種別のコマンドは、ベリファイ
コマンドであってもよく、その場合は、ハードディスク
の初期化の際にベリファイコマンドを実行しないように
できる。Here, the storage device is a hard disk, and the command of a predetermined type may be a verify command. In this case, the verify command is not executed when the hard disk is initialized. Can be.
【0008】[0008]
【発明の実施の形態】次に、本発明の一実施の形態につ
いて図面と共に説明する。図1は本発明になるハードデ
ィスクの初期化方法を適用する装置の一実施の形態のブ
ロック図を示す。同図において、ハードディスク1は初
期化の対象となるハードディスクである。BIOS2は
ハードデスク1に直接命令を伝える基本入出力システム
である。OS3は、BIOS2上で動作する基本ソフト
ウェアである。初期化プログラム4は、ハードディスク
1を初期化する。ベリファイコマンドスキップ用プログ
ラム5は、本発明の要部をなすハードディスクBIOS
のベクタ変更処理6及びベリファイコマンド処理用割り
込みルーチン7よりなる。Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an apparatus to which a hard disk initialization method according to the present invention is applied. In FIG. 1, a hard disk 1 is a hard disk to be initialized. The BIOS 2 is a basic input / output system that transmits commands directly to the hard disk 1. The OS 3 is basic software that operates on the BIOS 2. The initialization program 4 initializes the hard disk 1. The verify command skipping program 5 is a hard disk BIOS that forms a main part of the present invention.
And a command change interrupt routine 7 for verify command processing.
【0009】ハードディスクBIOSのベクタ変更処理
6は、ベリファイコマンド処理用割り込みルーチン7を
有効にする。また、ベリファイコマンド処理用割り込み
ルーチン7は、初期化プログラム4がハードディスクB
IOS(これはBIOS2の中の一つの種類である)へ
のコマンドを発行したときに動作し、ベリファイコマン
ドの場合何も処理をせず、ベリファイコマンド以外の場
合、BIOS2に処理を渡す。The vector change processing 6 of the hard disk BIOS enables a verify command processing interrupt routine 7. Also, the verify command processing interrupt routine 7 is executed when the initialization program 4
It operates when issuing a command to the IOS (this is one type of BIOS2), does nothing for a verify command, and passes the process to the BIOS2 for other than a verify command.
【0010】次に、この実施の形態の動作について説明
する。初期化プログラム4を実行する前に、まず、ベリ
ファイコマンドスキップ用プログラム5を実行する。ベ
リファイコマンドスキップ用プログラム5の動作が開始
すると、ハードディスクBIOSのベクタ変更処理6が
動作する。Next, the operation of this embodiment will be described. Before executing the initialization program 4, first, the verify command skipping program 5 is executed. When the operation of the verify command skipping program 5 starts, the vector change processing 6 of the hard disk BIOS operates.
【0011】図2はこのハードディスクBIOSのベク
タ変更処理6の処理動作を示すフローチャートである。
図2に示すように、ハードディスクBIOSのベクタ変
更処理6が動作を開始すると、例えばメモリの割り込み
ベクタテーブルのハードディスクBIOSのエントリに
格納されている飛び先メモリアドレスを、ハードディス
クBIOSのベクタ割り込みベクタ取得により取得し
(ステップ11)、その取得したメモリアドレスを、既
知の内部メモリ(図1には図示せず)などに保存した
後、ベリファイコマンド処理用割り込みルーチンにベク
タ張り替えを実行して(ステップ12)、ハードディス
クBIOSのベクタ変更処理を終了する。このステップ
12のベリファイコマンド処理用割り込みルーチンへの
ベクタ張り替え処理では、図示しないハードディスクB
IOSへの飛び先メモリアドレスが格納されていた割り
込みベクタテーブルのエントリに、ベリファイコマンド
処理割り込みルーチンへの飛び先アドレスを格納する。FIG. 2 is a flowchart showing the processing operation of the vector change processing 6 of the hard disk BIOS.
As shown in FIG. 2, when the hard disk BIOS vector change processing 6 starts operation, for example, the jump destination memory address stored in the hard disk BIOS entry of the interrupt vector table of the memory is changed by acquiring the vector interrupt vector of the hard disk BIOS. After acquiring (step 11) and storing the acquired memory address in a known internal memory (not shown in FIG. 1) or the like, the vector replacement is executed in a verify command processing interrupt routine (step 12). Then, the vector change processing of the hard disk BIOS ends. In the vector replacement process to the verify command processing interrupt routine in step 12, the hard disk B (not shown)
The jump address to the verify command processing interrupt routine is stored in the entry of the interrupt vector table in which the jump memory address to the IOS has been stored.
【0012】次に、初期化プログラム4が実行される。
初期化プログラム4はBIOS2中のハードディスクB
IOSに対してリード/ライトコマンド、ベリファイコ
マンド等の各種のコマンドを発行すると、まず、ベリフ
ァイコマンド処理用割り込みルーチン7が呼ばれる。Next, an initialization program 4 is executed.
Initialization program 4 is the hard disk B in BIOS2
When various commands such as a read / write command and a verify command are issued to the IOS, first, a verify command processing interrupt routine 7 is called.
【0013】図3はベリファイコマンド処理用割り込み
ルーチン7の一例のフローチャートを示す。このベリフ
ァイコマンド処理用割り込みルーチン7は、初期化プロ
グラム4が発行したハードディスクBIOSに対するコ
マンドが、ベリファイコマンドであるかどうか判断し
(ステップ21)、ベリファイコマンドであるときは何
もしないで処理を終了する。FIG. 3 is a flowchart showing an example of the verify command processing interrupt routine 7. This verify command processing interrupt routine 7 determines whether or not the command to the hard disk BIOS issued by the initialization program 4 is a verify command (step 21), and ends the process without doing anything if it is a verify command. .
【0014】一方、初期化プログラム4が発行したハー
ドディスクBIOSに対するコマンドが、ベリファイコ
マンド以外のコマンドであるときは、ステップ21から
ステップ22に進み、前述したステップ11のハードデ
ィスクBIOSの割り込みベクタ取得で取得し、内部メ
モリに格納されているハードディスクBIOSへの飛び
先メモリアドレスに基づき、元のハードディスクBIO
Sのルーチンを呼び出し、BIOS2へ処理を渡す。以
上の動作が、初期化プログラム4がハードディスクBI
OSに対して発行するすべてのコマンドの処理が終了す
るまで続けられる。On the other hand, if the command issued to the hard disk BIOS by the initialization program 4 is a command other than the verify command, the process proceeds from step 21 to step 22 to obtain the interrupt vector of the hard disk BIOS in step 11 described above. Based on the jump destination memory address to the hard disk BIOS stored in the internal memory,
The routine of S is called, and the process is passed to BIOS2. The above operation is performed when the initialization program 4
The processing is continued until the processing of all commands issued to the OS ends.
【0015】このように、この実施の形態では、予めハ
ードディスクBIOSの割り込みベクタを書き換えて、
本来のハードディスクBIOSのルーチンでなく、自前
のベリファイコマンド処理用割り込みルーチンが起動す
るようにし、続いて初期化プログラム4を実行してその
初期化プログラム4が発行するベリファイコマンドは自
前のベリファイコマンド処理用割り込みルーチンによっ
て無効化するようにしたため、ベリファイコマンドは実
行しないので、初期化プログラム4の実行時間を従来に
比べて大幅に短縮することができる。As described above, in this embodiment, the interrupt vector of the hard disk BIOS is rewritten in advance,
Instead of the original hard disk BIOS routine, an independent interrupt routine for verify command processing is activated, and subsequently, the initialization program 4 is executed. Since the invalidation is performed by the interrupt routine, the verify command is not executed, so that the execution time of the initialization program 4 can be significantly reduced as compared with the related art.
【0016】なお、本発明は上記の実施の形態に限定さ
れるものではなく、例えば、上記の実施の形態では無効
化するコマンドをベリファイコマンドに限定している
が、高速化のために省略できるコマンドがあれば、他の
コマンドも無効化するようにしてもよい。また、初期化
対象の装置はハードディスク以外の補助記憶装置(光磁
気ディスク記憶装置、フロッピディスクドライブなど)
にも適用可能である。The present invention is not limited to the above embodiment. For example, in the above embodiment, the command to be invalidated is limited to the verify command, but it can be omitted for speeding up. If there is a command, other commands may be invalidated. The device to be initialized is an auxiliary storage device other than a hard disk (such as a magneto-optical disk storage device or a floppy disk drive).
Is also applicable.
【0017】[0017]
【発明の効果】以上説明したように、本発明によれば、
初期化プログラムの実行により初期化プログラムからB
IOSへ所定の種別のコマンドが発行されたときは、自
前の割り込みルーチンによりそのコマンドを無効化し
て、初期化の際に上記所定の種別のコマンドを実行しな
いようにしたため、初期化プログラムの実行時間を短縮
することができる。特に上記の記憶装置としてハードデ
ィスクに適用し、また、所定の種別のコマンドとして、
ベリファイコマンドに適用した場合は、本発明によれ
ば、初期化時間の大部分を費やすベリファイコマンドを
無効化して実行しないようにできるため、記憶装置の初
期化プログラムの実行時間を従来に比べて大幅に短縮す
ることができる。As described above, according to the present invention,
B from the initialization program by executing the initialization program
When a command of a predetermined type is issued to the IOS, the command is invalidated by its own interrupt routine so that the command of the predetermined type is not executed at the time of initialization. Can be shortened. In particular, the present invention is applied to a hard disk as a storage device, and as a command of a predetermined type,
When the present invention is applied to a verify command, according to the present invention, a verify command that spends most of the initialization time can be invalidated so as not to be executed. Can be shortened.
【図1】本発明の一実施の形態のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.
【図2】バードディスクBIOSのベクタ変更処理ルー
チンの一例を示すフローチャートである。FIG. 2 is a flowchart illustrating an example of a vector change processing routine of a bird disk BIOS.
【図3】ベリファイコマンド処理用割り込みルーチンの
一例を示すフローチャートである。FIG. 3 is a flowchart illustrating an example of a verify command processing interrupt routine;
1 ハードディスク 2 BIOS 3 OS 4 初期化プログラム 5 ベリファイコマンドスキップ用プログラム 6 ハードディスクBIOSのベクタ変更処理 7 ベリファイコマンド処理用割り込みルーチン DESCRIPTION OF SYMBOLS 1 Hard disk 2 BIOS 3 OS 4 Initialization program 5 Program for verify command skip 6 Vector change processing of hard disk BIOS 7 Interrupt routine for verify command processing
Claims (6)
を与えることができるBIOSに、初期化プログラムが
コマンドを発行して該記憶装置を初期化する初期化方法
において、 前記初期化プログラムの実行前に、前記BIOSの割り
込みベクタを書き換え、該BIOSの本来の処理ではな
く自前の割り込みルーチンが起動するようにしておき、
前記初期化プログラムの実行により該初期化プログラム
から前記BIOSへコマンドを発行すると、前記自前の
割り込みルーチンを起動して該発行されたコマンドの種
別が省略可能な所定の種別であるかどうか判定し、該所
定の種別のコマンドが発行されたときはそのコマンドを
無効化し、該所定の種別以外の種別のコマンドが発行さ
れたときは前記BIOS本来の処理を実行させることを
特徴とする記憶装置の初期化方法。1. An initialization method in which an initialization program issues a command to a BIOS capable of directly giving a command to a storage device to be initialized, thereby initializing the storage device. Before execution, the BIOS interrupt vector is rewritten so that its own interrupt routine is activated instead of the original processing of the BIOS,
When a command is issued from the initialization program to the BIOS by executing the initialization program, the own interrupt routine is started to determine whether the type of the issued command is a predetermined type that can be omitted, When the command of the predetermined type is issued, the command is invalidated, and when a command of a type other than the predetermined type is issued, the original process of the BIOS is executed. Method.
えは、メモリの割り込みベクタテーブルの前記BIOS
のエントリに格納されている飛び先メモリアドレスを取
得して内部メモリに保存した後、取得した前記飛び先メ
モリアドレスが格納されていた前記割り込みベクタテー
ブルのエントリに、前記自前の割り込みルーチンの飛び
先アドレスを格納することにより行うことを特徴とする
請求項1記載の記憶装置の初期化方法。2. Rewriting of the BIOS interrupt vector is performed by reading the BIOS interrupt vector table of a memory.
After the jump destination memory address stored in the entry is obtained and stored in the internal memory, the jump destination of the interrupt routine of the own interrupt routine is stored in the entry of the interrupt vector table storing the obtained jump destination memory address. 2. The method according to claim 1, wherein the method is performed by storing an address.
ことを特徴とする請求項1記載の記憶装置の初期化方
法。3. The method according to claim 1, wherein the storage device is a hard disk.
コンピュータの補助記憶装置であることを特徴とする請
求項1記載の記憶装置の初期化方法。4. The method according to claim 1, wherein the storage device is an auxiliary storage device of a computer other than a hard disk.
イコマンドであることを特徴とする請求項1乃至4のう
ちいずれか一項記載の記憶装置の初期化方法。5. The method according to claim 1, wherein the command of the predetermined type is a verify command.
えは、前記自前の割り込みルーチンを含むスキップ用プ
ログラムの実行により行うことを特徴とする請求項1記
載の記憶装置の初期化方法。6. The method according to claim 1, wherein the rewriting of the interrupt vector of the BIOS is performed by executing a skip program including the own interrupt routine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11163185A JP2000353359A (en) | 1999-06-10 | 1999-06-10 | Storage device initializing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11163185A JP2000353359A (en) | 1999-06-10 | 1999-06-10 | Storage device initializing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2000353359A true JP2000353359A (en) | 2000-12-19 |
Family
ID=15768881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11163185A Pending JP2000353359A (en) | 1999-06-10 | 1999-06-10 | Storage device initializing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2000353359A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1426950A2 (en) * | 2002-12-06 | 2004-06-09 | Orion Electric Company, Ltd. | Recording and reproduction apparatus |
US7356684B2 (en) | 2004-04-07 | 2008-04-08 | Samsung Electronics Co., Ltd. | Booting system and/or method for initializing peripherals |
-
1999
- 1999-06-10 JP JP11163185A patent/JP2000353359A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1426950A2 (en) * | 2002-12-06 | 2004-06-09 | Orion Electric Company, Ltd. | Recording and reproduction apparatus |
EP1426950A3 (en) * | 2002-12-06 | 2006-08-16 | Orion Electric Company, Ltd. | Recording and reproduction apparatus |
US7356684B2 (en) | 2004-04-07 | 2008-04-08 | Samsung Electronics Co., Ltd. | Booting system and/or method for initializing peripherals |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3884464B2 (en) | BIOS data storage device for computer system and driving method thereof | |
JP2000353359A (en) | Storage device initializing method | |
JPH0410081B2 (en) | ||
JPS6329861A (en) | Ipl control system | |
JPH0954694A (en) | Pipeline processor and its processing method | |
JP3110391B2 (en) | Program re-execution method | |
JP3130798B2 (en) | Bus transfer device | |
JPH06324861A (en) | System and method for controlling cpu | |
JPH04130949A (en) | Simple method for starting system | |
JP2000172574A (en) | Information processor | |
JPS58139254A (en) | Programmable controller | |
JPH0573465A (en) | System for supporting peripheral equipment | |
JPS5835648A (en) | Program execution controlling system | |
JPS5842891B2 (en) | Meirei Seigiyohoushiki | |
JPH1021067A (en) | Dynamic correction method for program | |
JP4479738B2 (en) | Programmable controller | |
JPH11338690A (en) | Flash memory, firmware use system device and firmware rewriting method | |
JPH04217029A (en) | Method for making system to rise | |
JPH04181321A (en) | Microprogram loading system | |
JPH10187494A (en) | Simulator | |
JPH07334313A (en) | Copying method for magnetic disk device | |
JPH0594281A (en) | Computer system | |
JPH07160431A (en) | Command extended cd-rom device | |
JPH04175823A (en) | Edit table initialization control system | |
JP2001056765A (en) | Device and method for processing information and program storage medium |