JP5378451B2 - Method and computer for reducing start-up reliability and POST time - Google Patents

Method and computer for reducing start-up reliability and POST time Download PDF

Info

Publication number
JP5378451B2
JP5378451B2 JP2011115540A JP2011115540A JP5378451B2 JP 5378451 B2 JP5378451 B2 JP 5378451B2 JP 2011115540 A JP2011115540 A JP 2011115540A JP 2011115540 A JP2011115540 A JP 2011115540A JP 5378451 B2 JP5378451 B2 JP 5378451B2
Authority
JP
Japan
Prior art keywords
post
code
state
power
possibility
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.)
Active
Application number
JP2011115540A
Other languages
Japanese (ja)
Other versions
JP2012243237A (en
Inventor
直幸 荒木
健 佐々木
泰通 塚本
栄太郎 笠松
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.)
Lenovo Singapore Pte Ltd
Original Assignee
Lenovo Singapore Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Singapore Pte Ltd filed Critical Lenovo Singapore Pte Ltd
Priority to JP2011115540A priority Critical patent/JP5378451B2/en
Publication of JP2012243237A publication Critical patent/JP2012243237A/en
Application granted granted Critical
Publication of JP5378451B2 publication Critical patent/JP5378451B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an activation method of a computer for compatibly stabilizing an operation and shortening POST time. <P>SOLUTION: A BIOS_ROM 33 stores a first POST code and a second POST code for ending processing in a shorter time period than the first POST code. After a processor 11 is reset and before loading of an OS is started, an opening sensor 39 detects presence/absence of opening of a cover lid and determines a possibility that physical access is performed to an internal device. The first POST code is executed when it is determined that the possibility of the physical access is high, and the second POST code is executed when it is determined that the possibility of the physical access is low. <P>COPYRIGHT: (C)2013,JPO&amp;INPIT

Description

本発明はコンピュータを起動する際のPOST時間の短縮と動作の安定性の両立を図る技術に関する。   The present invention relates to a technique for achieving both shortening of POST time and stability of operation when starting a computer.

コンピュータは、電源が投入されるとオペレーティング・システム(OS)がメイン・メモリにロードされる前に、BIOS_ROMに格納されたBIOSコードが実行される。BIOSコードは、コンピュータに搭載されているデバイスを検出して、検査および初期化を行うPOST(Power On Self Test)コードを含む。プロセッサ(CPU)は、リセットされるとOSのロードを開始する前にPOSTコードを実行する。   When the computer is turned on, the BIOS code stored in the BIOS_ROM is executed before the operating system (OS) is loaded into the main memory. The BIOS code includes a POST (Power On Self Test) code that detects a device mounted on the computer and performs inspection and initialization. When reset, the processor (CPU) executes the POST code before starting to load the OS.

特許文献1は、POSTを短時間で終了するためのファースト・スタートアップの方法について開示する。ユーザはファースト・スタートアップをディスエーブルにしてからシステムのハウジングを開放してコンフィグレーションを変更する。その後パワー・オンされるとファースト・スタートアップがイネーブルに設定される。今回のスタートアップがイネーブルに設定されたあとの最初のスタートアップのときはノーマル・スタートアップを実行しそのときに設定したコンテンツをBIOSチップに格納する。最初のスタートアップでない場合は、BIOSチップに格納されたパラメータをコントローラのレジスタに設定することでPOST時間を短縮する。   Patent Document 1 discloses a fast startup method for ending POST in a short time. The user disables fast startup and then opens the system housing to change the configuration. When it is subsequently powered on, fast startup is enabled. At the first startup after the current startup is enabled, normal startup is executed and the contents set at that time are stored in the BIOS chip. If it is not the first startup, the POST time is shortened by setting the parameter stored in the BIOS chip in the register of the controller.

特許文献2は、新しいソフトウェアをロードしたときにOSがレジストリ・キーを更新したりOS環境をリスタートしたりするために行うプラットフォームのリスタートを短時間で終了する方法を開示する。同文献には、プラットフォームに対してハードウェアの変更がないことを検出したときは、プラットフォームの全体をリスタートしたりすべてのハードウェアを再初期化したりしないことが記載されている。また、Windows(登録商標)は、前回の起動状況やハードウェアの変更情報を参照して、BIOSによる初期化を可能な限り簡略化してコンピュータの起動を高速化するFast Bootという機能を備えている。   Japanese Patent Application Laid-Open No. 2004-228561 discloses a method of quickly stopping a platform restart that is performed in order for the OS to update a registry key or restart the OS environment when new software is loaded. This document describes that when it is detected that there is no hardware change for the platform, the entire platform is not restarted or all hardware is not reinitialized. Also, Windows (registered trademark) has a function called Fast Boot, which refers to previous boot status and hardware change information, and simplifies initialization by BIOS as much as possible to speed up computer booting. .

米国特許第7213139号公報U.S. Pat. No. 7,213,139 特開2010−123125号JP 2010-123125 A

OS環境下においてデバイスの動作の安定性を図る上では、POSTでその時点で装着されているすべてのデバイスを対象にして検出、検査および初期化をすることが望ましい。このようにすべてのデバイスの検出、検査および初期化を行うPOSTを基本POSTということにする。一方で、POST時間は、コンピュータの電源が投入されてから使用可能になるまでの待ち時間になるのでできるだけ短いことが望ましい。したがってコンピュータのデバイスが変更、追加、または撤去されて構成が変更されることは一般的に少ないような一般的な状況下で、起動のたびに基本POSTを実行することは好ましくない。   In order to stabilize the operation of the device under the OS environment, it is desirable to detect, inspect and initialize all devices mounted at that time by POST. The POST that detects, inspects, and initializes all devices in this way is referred to as a basic POST. On the other hand, the POST time is preferably as short as possible since it is a waiting time until the computer becomes usable after the computer is turned on. Therefore, it is not preferable to execute basic POST at every start-up in a general situation where the configuration of the computer device is not changed, added, or removed in general.

特許文献1または特許文献2に記載されているような、基本POSTを簡略化して短時間でブートを完了するPOST(以下、高速POSTという。)を実行すると、構成が変更されたデバイスの動作が不安定になったりPOSTがハングアップしたりする可能性がでてくる。デバイスの構成が変更された場合には基本POSTを実行し、構成が変更されていない場合は高速POSTを実行するようにすれば動作の安定性とブート時間の短縮の両立を図ることができる。しかし、従来のBIOSコードではデバイスの構成が変更されたことを検出することはできない。   When POST that completes booting in a short time (hereinafter referred to as high-speed POST) as described in Patent Document 1 or Patent Document 2 is performed, the operation of a device whose configuration has been changed is performed. There is a possibility that it becomes unstable and POST hangs up. If the basic POST is executed when the configuration of the device is changed, and the high-speed POST is executed when the configuration is not changed, both the stability of the operation and the shortening of the boot time can be achieved. However, the conventional BIOS code cannot detect that the device configuration has been changed.

特許文献1には、ファースト・スタートアップをディスエーブルに設定してからコンピュータのハウジングを開放してデバイスの構成を変更し、その後起動してデバイスの初期化がされた後にファースト・スタートアップをイネーブルにすれば構成が変更されても問題がないことが記載されている。ただし、もし、ファースト・スタートアップをイネーブルに設定してからハウジングを開放してデバイスの変更をし、その後起動した場合には、BIOSチップに格納されたコンテンツが変更されたデバイスに設定されて問題が生ずる可能性があることに言及している。   In Patent Document 1, after disabling the fast startup, the computer housing is opened, the device configuration is changed, and then the device is booted and the device is initialized before the fast startup is enabled. It is described that there is no problem even if the configuration is changed. However, if the device is changed by opening the housing after first startup is enabled, the content stored in the BIOS chip is set to the changed device. It mentions what can happen.

特許文献1の発明ではこの場合、もし、3回以上再起動できない場合は、ファースト・スタートアップをディスエーブルにしてから起動して再度デバイスの検査および初期化を行い、それ以降にファースト・スタートアップをイネーブルにするようにしている。また、再起動はできるが、デバイスの動作が不安定なときはユーザがファースト・スタートアップをディスエーブルに設定してから再起動したあとにイネーブルに設定するようになっている。   In the case of the invention of Patent Document 1, in this case, if it is not possible to restart more than three times, first startup is disabled and then the device is inspected and initialized again, and then the first startup is enabled. I try to make it. It can be restarted, but when the device is unstable, it is set to enable after the user has restarted after setting fast startup to disabled.

デバイスの中には、無線モジュールのように不適切な場所ではブートの完了時に自動的に動作を開始しないことが望まれるものがある。そのようなデバイスは、POSTの段階で確実に検出して動作を停止させたりパラメータを適切に設定したりすることが望ましい。またPOSTでエラーが発生したあとに、複数回の再起動を繰り返すとブート遅延につながる場合がある。したがって、高速POSTと基本POSTを併用する場合には、デバイスの構成の変更の有無をBIOSコードが判断していずれかのPOSTコードを選択するようにすれば、少ないユーザの負担で動作の安定化とブート時間の短縮の両立を図ることができる。   Some devices, such as wireless modules, are desired not to automatically begin operation upon completion of booting in an inappropriate location. It is desirable that such a device is reliably detected at the POST stage to stop its operation or set parameters appropriately. In addition, if a plurality of restarts are repeated after an error has occurred in POST, a boot delay may occur. Therefore, when both high-speed POST and basic POST are used, if the BIOS code determines whether or not the device configuration has been changed and selects one of the POST codes, the operation can be stabilized with a small burden on the user. And shortening the boot time.

そこで本発明の目的は、コンピュータに共存する基本POSTと高速POSTの中から適切なPOSTを選択してパワー・オフ状態からパワー・オン状態に移行する方法を提供することにある。さらに本発明の目的は、動作の安定化とブート時間の短縮の両立を図る方法を提供することにある。さらに本発明の目的は、そのようなPOSTを実行するコンピュータおよびコンピュータ・プログラムを提供することにある。   Accordingly, an object of the present invention is to provide a method for selecting an appropriate POST from a basic POST and a high-speed POST coexisting in a computer and shifting from a power-off state to a power-on state. A further object of the present invention is to provide a method for achieving both stable operation and shortened boot time. A further object of the present invention is to provide a computer and a computer program for executing such POST.

本発明は、プロセッサがリセットされてからオペレーティング・システムのロードを開始するまでのBIOSコードの動作に関する。本発明では、コンピュータの筐体の内部に第1のPOSTコードと第1のPOSTコードよりも短い時間で処理を終了することができる第2のPOSTコードを実装する。第2のPOSTコードはそれ以前に初期化した際に設定したパラメータを少なくとも一部の内部デバイスにリストアするように構成することができる。あるいは、第2のPOSTコードは、少なくとも一部の内部デバイスに対する検査と初期化を省略するように構成することができる。   The present invention relates to the operation of the BIOS code from when the processor is reset to when it starts loading the operating system. In the present invention, the first POST code and the second POST code capable of finishing the processing in a shorter time than the first POST code are mounted inside the computer casing. The second POST code can be configured to restore parameters set at the time of initialization earlier to at least some internal devices. Alternatively, the second POST code can be configured to omit inspection and initialization for at least some internal devices.

コンピュータは、プロセッサの前回のリセットから今回のリセットまでの間に筐体に収納された内部デバイスに対する物理的なアクセスが行われた可能性を判断する。筐体に収納された内部デバイスに物理的にアクセスするには筐体のカバー蓋を開放する場合があるため、カバー蓋の開放を検出して物理的なアクセスの可能性を判断することができる。その際には、カバー蓋を取り付けるネジが外されたことを判断することができる。   The computer determines the possibility of physical access to the internal device housed in the housing between the last reset of the processor and the current reset. Since the cover lid of the casing may be opened to physically access the internal device housed in the casing, the possibility of physical access can be determined by detecting the opening of the cover lid. . At that time, it can be determined that the screw for attaching the cover lid has been removed.

物理的なアクセスの可能性が高いと判断したときには第1のPOSTコードを実行し、低いと判断したときには第2のPOSTコードを実行する。このように構成することで、内部デバイスの構成が変更された可能性の高低に応じて適切なPOSTコードを選択し、デバイスの安定動作とPOST時間の短縮の両立を図ることができる。   When it is determined that the possibility of physical access is high, the first POST code is executed, and when it is determined that the physical access possibility is low, the second POST code is executed. With this configuration, it is possible to select an appropriate POST code according to the possibility that the configuration of the internal device has been changed, and to achieve both stable operation of the device and shortening of the POST time.

本発明では、物理的なアクセスの可能性の判断に対する誤りをコンピュータの電力源の電力供給状態を調べて補完することができる。たとえば誤って物理的なアクセスの可能性が低いと判断した場合に、さらにプロセッサの前回のリセットから今回のリセットまでの間の電力源の電力供給状態を確認する。カバー蓋を開放する際には、ユーザはコンピュータを駆動するすべての電力源を停止して安全を確保してからアクセスするようになっている。電力源が2次電池と交流電源で構成される場合は、すべての電力源を停止するために2次電池を筐体から取り外しかつ交流電源を切断することになる。   In the present invention, it is possible to compensate for an error in determining the possibility of physical access by examining the power supply state of the power source of the computer. For example, when it is erroneously determined that the possibility of physical access is low, the power supply state of the power source between the previous reset of the processor and the current reset is further confirmed. When opening the cover lid, the user stops all power sources that drive the computer to ensure safety before accessing. In the case where the power source is composed of a secondary battery and an AC power source, the secondary battery is removed from the housing and the AC power source is disconnected to stop all the power sources.

したがって、いずれかの電力源が電力供給をしていたと判断したときは内部デバイスの構成が変更された可能性は低いと判断して第2のPOSTコードを実行することができる。2次電池および交流電源による電力供給は、内部デバイスへのアクセスを目的としない場合にも停止することがある。したがって、2次電池および交流電源がいずれも電力供給を停止したと判断したときに、ただちに第1のPOSTコードを実行しないで、さらに別の方法で内部デバイスへのアクセスの可能性を判断することが望ましい。   Therefore, when it is determined that one of the power sources is supplying power, it is determined that the possibility that the configuration of the internal device has been changed is low, and the second POST code can be executed. The power supply by the secondary battery and the AC power supply may be stopped even when the purpose is not to access the internal device. Therefore, when it is determined that both the secondary battery and the AC power supply have stopped supplying power, immediately determine the possibility of access to the internal device without executing the first POST code. Is desirable.

内部デバイスに物理的にアクセスするユーザは、電池パックが完全に放電するのを待たずに電圧が残っている間に急に筐体から外して安全を確保することが一般的である。一方で、電池パックの電圧は交流電源が電力供給をしていない場合には、パワー・オン状態でデバイスに電力を供給したり、パワー・オフ状態で待機電力を供給したりして残容量が低下しクリティカル電圧まで徐々に低下する。そしてクリティカル電圧に到達すると、いずれの場合にもコンピュータのすべての電力源が電力供給を停止することになるが、本発明ではそこに至る経過を調べることで内部デバイスに対するアクセスの可能性を判断することができる。   Generally, a user who physically accesses the internal device does not wait for the battery pack to be completely discharged and suddenly removes the battery pack from the housing to ensure safety while the voltage remains. On the other hand, when the AC power is not supplied by the AC power supply, the battery pack voltage is supplied to the device in the power-on state or standby power is supplied in the power-off state. It decreases and gradually decreases to the critical voltage. When the critical voltage is reached, all the power sources of the computer will stop supplying power in any case, but in the present invention, the possibility of access to the internal device is determined by examining the progress to that point. be able to.

最初にパワー・オン状態で2次電池の電圧が所定値未満に低下したか否かを判断する。電池駆動でコンピュータの使用を継続した場合には内部デバイスへのアクセスをしない場合にも、パワー・オン状態で2次電池の電圧が所定値未満に低下する。本発明ではパワー・オン状態で2次電池の電圧が所定値未満に低下したと判断した場合は、すべての電力源が電力供給を停止した場合であっても、内部デバイスの構成が変更された可能性は低いといえるので第2のPOSTコードを実行することができる。   First, it is determined whether or not the voltage of the secondary battery has dropped below a predetermined value in the power-on state. If the computer continues to be driven by a battery, even if the internal device is not accessed, the voltage of the secondary battery drops below a predetermined value in the power-on state. In the present invention, when it is determined that the voltage of the secondary battery has dropped below a predetermined value in the power-on state, the configuration of the internal device has been changed even when all the power sources have stopped power supply. Since the possibility is low, the second POST code can be executed.

すべての電力源が電力供給を停止し、パワー・オン状態で2次電池の電圧が所定値以上に維持されていると判断したときであっても、ただちに第1のPOSTコードを実行しないで、さらに内部デバイスへのアクセスの可能性を判断することが望ましい。パワー・オン状態で2次電池の電圧が所定値以上に維持されている場合であっても、ユーザはパワー・オフ状態で急に2次電池を外して内部デバイスにアクセスする場合がある。   Even when it is determined that all power sources stop supplying power and the voltage of the secondary battery is maintained at a predetermined value or higher in the power-on state, do not immediately execute the first POST code, It is also desirable to determine the possibility of access to the internal device. Even when the voltage of the secondary battery is maintained at a predetermined value or higher in the power-on state, the user may suddenly remove the secondary battery in the power-off state to access the internal device.

2次電池を搭載したコンピュータからAC/DCアダプタを外して長期間放置すると、パワー・オフ状態で2次電池の電圧が所定値まで低下する。したがって、パワー・オフ状態で2次電池の電圧が所定値未満に低下したと判断した場合は、デバイスの構成が変更された可能性は低いといえるので第2のPOSTコードを実行することができる。さらに、すべての電力源が停止し、かつパワー・オン状態およびパワー・オフ状態のいずれの場合にも2次電池の電圧が所定値以上を維持していたと判断したときは、内部デバイスへのアクセスのために、電圧が所定値未満に低下する前にユーザが2次電池を急に外したと判断して第1のPOSTコードを実行することができる。   If the AC / DC adapter is removed from the computer equipped with the secondary battery and left for a long period of time, the voltage of the secondary battery drops to a predetermined value in the power-off state. Accordingly, when it is determined that the voltage of the secondary battery has dropped below a predetermined value in the power-off state, it is unlikely that the device configuration has been changed, so the second POST code can be executed. . Furthermore, when it is determined that all the power sources are stopped and the voltage of the secondary battery has maintained a predetermined value or more in both the power-on state and the power-off state, access to the internal device Therefore, the first POST code can be executed by determining that the user has suddenly removed the secondary battery before the voltage drops below a predetermined value.

なお、パワー・オフ状態はACPIに規定するG3ステートを除いたS1ステートからS5ステートまでのパワー・ステートとすることができる。また、パワー・オン状態で新たな外部デバイスが接続された場合に、POSTコードでの初期化を必要とする場合がある。この場合、新たな外部デバイスが接続されたと判断したときには、第1のPOSTコードを実行することができる。   The power-off state can be a power state from the S1 state to the S5 state excluding the G3 state defined in ACPI. Further, when a new external device is connected in the power-on state, initialization with a POST code may be required. In this case, when it is determined that a new external device is connected, the first POST code can be executed.

本発明では、第1のPOSTコードを実行する際には、第2のPOSTコードよりは確実性の高い手順であって、かつ第1のPOSTコードの完全な実行よりは簡素化した手順を実行することができる。一例として、すべてのデバイスの検査を実行し、デバイスの検査の結果エラーが発生したときにエラーを表示し、エラーが発生しないときにはオペレーティング・システムのロードを開始することができる。エラーが表示されるとユーザは通常何らかの処置をするため、その後再起動されたときに第1のPOSTコードのすべてを実行することで処置が完了した内部デバイスを初期化することができる。   In the present invention, when the first POST code is executed, the procedure is more reliable than the second POST code and is simplified than the complete execution of the first POST code. can do. As an example, all device checks can be performed, an error can be displayed when an error occurs as a result of the device check, and an operating system load can be initiated when no error occurs. When an error is displayed, the user usually takes some action, so that when it is restarted, it can initialize all internal devices that have completed the action by executing all of the first POST code.

本発明により、コンピュータに共存する基本POSTと高速POSTの中から適切なPOSTを選択してパワー・オフ状態からパワー・オン状態に移行する方法を提供することができた。さらに本発明により、動作の安定化とPOST時間の短縮の両立を図る方法を提供することができた。さらに本発明により、そのようなPOSTを実行するコンピュータおよびコンピュータ・プログラムを提供することができた。   According to the present invention, it is possible to provide a method for selecting an appropriate POST from a basic POST and a high-speed POST coexisting in a computer and shifting from a power-off state to a power-on state. Furthermore, according to the present invention, a method for achieving both stabilization of operation and shortening of the POST time can be provided. Further, according to the present invention, it is possible to provide a computer and a computer program for executing such POST.

本実施の形態にかかるコンピュータ10の主要な構成を示す機能ブロック図である。It is a functional block diagram which shows the main structures of the computer 10 concerning this Embodiment. BIOS_ROM33のデータ構造を示す図である。3 is a diagram illustrating a data structure of a BIOS_ROM 33. FIG. RTCメモリ22のセット・アップ・データの一部を示す図である。4 is a diagram showing a part of set-up data in an RTC memory 22. FIG. 開放センサ39の構成を説明する図である。It is a figure explaining the structure of the open sensor 39. FIG. EC29の本実施の形態に関連する構成を示す図である。It is a figure which shows the structure relevant to this Embodiment of EC29. RTCメモリ22の選択POSTビットがイネーブルに設定され、EEPROM30の各状態設定ビットが設定される際の手順を示すフローチャートである。6 is a flowchart showing a procedure when a selection POST bit of the RTC memory 22 is set to enable and each state setting bit of the EEPROM 30 is set. 選択POSTの実行手順を示すフローチャートである。It is a flowchart which shows the execution procedure of selection POST. 選択POSTの実行手順を示すフローチャートである。It is a flowchart which shows the execution procedure of selection POST. 選択POSTの実行手順を示すフローチャートである。It is a flowchart which shows the execution procedure of selection POST.

[コンピュータの構成]
図1は、本実施の形態にかかるコンピュータ10の主要な構成を示す機能ブロック図である。本明細書の全体に渡って、同一の要素には同一の参照番号を付与する。コンピュータ10は、電池パック41を搭載し、AC/DCアダプタ45の接続が可能なノートブック型携帯式コンピュータ(以下、ノートPCという。)とすることができる。CPU11は、インテル(登録商標)のX86シリーズのアーキテクチャを採用し、BIOSを実行するリアル・モード(Real Address Mode)とOSを実行する保護仮想アドレス・モード(Protected Virtual Address Mode)で動作することができる。保護仮想アドレス・モードは単にプロテクト・モードということもある。
[Computer configuration]
FIG. 1 is a functional block diagram showing a main configuration of a computer 10 according to the present embodiment. Throughout this specification, identical elements are provided with identical reference numbers. The computer 10 can be a notebook portable computer (hereinafter referred to as a notebook PC) on which a battery pack 41 is mounted and an AC / DC adapter 45 can be connected. The CPU 11 adopts an Intel (registered trademark) X86 series architecture, and can operate in a real mode (Real Address Mode) for executing the BIOS and a protected virtual address mode (Protected Virtual Address Mode) for executing the OS. it can. The protected virtual address mode is sometimes simply referred to as protected mode.

メモリ・コントローラ・ハブ(MCH)13は、メイン・メモリ15へのアクセス動作を制御するためのメモリ・コントローラ機能、およびCPU11と他のデバイスとの間のデータ転送速度の差を吸収するためのデータ・バッファ機能を含むチップ・セットである。MCH13にはCPU11、メイン・メモリ15、グラフィック・プロセッシング・ユニット(GPU)17、およびアイオー・コントローラ・ハブ(ICH)21が接続されている。   The memory controller hub (MCH) 13 is a memory controller function for controlling an access operation to the main memory 15 and data for absorbing a difference in data transfer speed between the CPU 11 and other devices. A chip set that includes a buffer function. A CPU 11, a main memory 15, a graphic processing unit (GPU) 17, and an I / O controller hub (ICH) 21 are connected to the MCH 13.

メイン・メモリ15は、CPU11が実行するプログラムやBIOSコードの読み込み領域、処理データを書き込む作業領域として利用する揮発性のRAMである。GPU17にはLCD19が接続されている。GPU17は、CPU11から受け取った描画命令に基づいてVRAMにイメージを書き込み、所定のタイミングでLCD19に画像イメージのデータを送るための専用プロセッサで、グラフィックス・アクセラレータともいう。   The main memory 15 is a volatile RAM that is used as a program area executed by the CPU 11 and a BIOS code reading area and a work area where processing data is written. An LCD 19 is connected to the GPU 17. The GPU 17 is a dedicated processor for writing an image to the VRAM based on a drawing command received from the CPU 11 and sending image image data to the LCD 19 at a predetermined timing, and is also called a graphics accelerator.

ICH21は周辺入出力デバイスに関するデータ転送を処理するチップ・セットである。ICH21は、USB(Universal Serial Bus)、シリアルATA(AT Attachment)、SPI (Serial Peripheral Interface)バス、 PCI(Peripheral Component Interconnect)バス、PCI−Expressバス、およびLPC(Low Pin Count)などのコントローラを備え、HDD23およびLPCバス28の他に周辺デバイス25として記載したUSBコネクタ、無線モジュール、マイクロフォン、スピーカ、およびカメラなどのさまざまなデバイスが接続されている。   The ICH 21 is a chip set that processes data transfer related to peripheral input / output devices. The ICH 21 includes controllers such as USB (Universal Serial Bus), serial ATA (AT Attachment), SPI (Serial Peripheral Interface) bus, PCI (Peripheral Component Interconnect) bus, PCI-Express bus, and LPC (Low Pin Count). In addition to the HDD 23 and the LPC bus 28, various devices such as a USB connector, a wireless module, a microphone, a speaker, and a camera described as the peripheral device 25 are connected.

ICH21は、内部にRTC(Real Time Clock)とRTCメモリ22を含んでいる。RTCおよびRTCメモリ22は、ICH21がDC/DCコンバータ35から電力が供給されないときにボタン電池27から電力の供給を受けることができる。RTCメモリ22は、BIOSのセット・アップ・データおよびRTCが生成した時間情報などを記憶する揮発性メモリである。HDD23はブート・ディスクで、コンピュータ10が起動するときのブート・イメージを格納している。LPCバス28には、エンベデッド・コントローラ(EC)29およびBIOS_ROM33などの高速なデータ転送を要求しないデバイスが接続される。   The ICH 21 includes an RTC (Real Time Clock) and an RTC memory 22 inside. The RTC and RTC memory 22 can be supplied with power from the button battery 27 when the ICH 21 is not supplied with power from the DC / DC converter 35. The RTC memory 22 is a volatile memory that stores BIOS setup data, time information generated by the RTC, and the like. The HDD 23 is a boot disk and stores a boot image when the computer 10 is started. Devices that do not require high-speed data transfer, such as an embedded controller (EC) 29 and BIOS_ROM 33, are connected to the LPC bus 28.

EC29は、CPU、ROM、EEPROM、DMAコントローラ、割り込みコントローラ、およびタイマなどで構成されたマイクロ・コンピュータであり、さらにA/D入力端子、D/A出力端子、SMバス・ポート、SPIバス・ポート、およびディジタル入出力端子を備えている。EC29はCPU11からは独立して動作し、ノートPC10に実装されるデバイスに供給する電力をパワー・ステートに応じて制御したり、システム筐体の内部の温度を管理したりする。   The EC 29 is a microcomputer composed of a CPU, a ROM, an EEPROM, a DMA controller, an interrupt controller, a timer, and the like, and further includes an A / D input terminal, a D / A output terminal, an SM bus port, and an SPI bus port. And digital input / output terminals. The EC 29 operates independently of the CPU 11 and controls the power supplied to the device mounted on the notebook PC 10 according to the power state, and manages the temperature inside the system housing.

EC29には、電池パック41、パワー・マネジメント・コントローラ(PMC)31および開放センサ39が接続されている。電池パック41は、スマート・バッテリィの規格に準拠しており、AC/DCアダプタ45が接続されてないときにDC/DCコンバータ35に電力を供給する。EC29はSMバスを通じて電池パック41から電池の状態に関する情報を取得する。AC/DCアダプタ45は、充電器43に電力を供給して電池パック41を充電するとともにDC/DCコンバータ35に電力を供給する。   A battery pack 41, a power management controller (PMC) 31, and an open sensor 39 are connected to the EC 29. The battery pack 41 conforms to the smart battery standard and supplies power to the DC / DC converter 35 when the AC / DC adapter 45 is not connected. The EC 29 acquires information on the state of the battery from the battery pack 41 through the SM bus. The AC / DC adapter 45 supplies power to the charger 43 to charge the battery pack 41 and supplies power to the DC / DC converter 35.

BIOS_ROM33は不揮発性で記憶内容の電気的な書き替えが可能なメモリでありBIOSコードを格納する。PMC31は、ノートPC10の電力を制御するワイヤード・ロジックのディジタル制御回路(ASIC)である。PMC31は、G3ビットを記憶するG3検出レジスタ32を含んでいる。ノートPC10はパワー・ステートに応じた必要な範囲のデバイスに電力を供給するが、PMC31には、G3ステートを除くすべてのパワー・ステートにおいて電池パック41またはAC/DCアダプタ45のいずれかから電力が供給される。   The BIOS_ROM 33 is a non-volatile memory in which stored contents can be electrically rewritten, and stores a BIOS code. The PMC 31 is a wired logic digital control circuit (ASIC) that controls the power of the notebook PC 10. The PMC 31 includes a G3 detection register 32 that stores G3 bits. The notebook PC 10 supplies power to devices in the necessary range according to the power state, but the PMC 31 receives power from either the battery pack 41 or the AC / DC adapter 45 in all power states except the G3 state. Supplied.

G3検出レジスタ32は、POST選択コード105(図2)により参照される。POST選択コード105はG3検出レジスタ32を参照した後にG3ビットが設定されていないときは設定する。G3検出レジスタ32はPMC31の電力が停止すると解除される。PMC31の電力が停止するのは、AC/DCアダプタ45および電池パック41がノートPC10に電力を供給しないときだけなので、POST選択コード105がG3ビットの解除を検出したときは、ノートPC10が前回の起動から今回の起動までの間にG3ステートに遷移したことになる。   The G3 detection register 32 is referred to by the POST selection code 105 (FIG. 2). The POST selection code 105 is set when the G3 bit is not set after referring to the G3 detection register 32. The G3 detection register 32 is released when the power of the PMC 31 is stopped. Since the power of the PMC 31 is stopped only when the AC / DC adapter 45 and the battery pack 41 do not supply power to the notebook PC 10, when the POST selection code 105 detects the release of the G3 bit, the notebook PC 10 This means that the state has transitioned to the G3 state from the start to the current start.

PMC31には、起動スイッチ37およびDC/DCコンバータ35の制御回路が接続されている。起動スイッチ37はノートPC10を起動する際に動作し、ユーザが押下するパワー・ボタンおよび筐体の蓋の開閉を検出するリッド・センサで構成される。DC/DCコンバータ35は複数の電圧を出力できるように構成され、パワー・ステートに応じてノートPC10を構成するデバイスに所定の電圧の電力を供給する。PMC31はEC29からの指示に基づいてDC/DCコンバータ33の動作を制御する。   A control circuit for the start switch 37 and the DC / DC converter 35 is connected to the PMC 31. The activation switch 37 operates when the notebook PC 10 is activated, and includes a power button that is pressed by the user and a lid sensor that detects opening and closing of the lid of the housing. The DC / DC converter 35 is configured to output a plurality of voltages, and supplies power of a predetermined voltage to devices constituting the notebook PC 10 according to the power state. The PMC 31 controls the operation of the DC / DC converter 33 based on an instruction from the EC 29.

図1に示したデバイスは、ノートPC10の筐体の中に収納されており、以後これらを内部デバイスということにする。これに対して、ノートPCのUSB端子、VGA端子、eSATA端子などを通じて接続されるデバイスを外部デバイスということにする。開放センサ39は、内部デバイスを交換、追加または撤去するときに開放する必要がある筐体またはデバイス・ベイの蓋(以下、カバー蓋という。)が開放されたことを検出し信号をEC29に出力する。   The devices shown in FIG. 1 are housed in the casing of the notebook PC 10 and are hereinafter referred to as internal devices. On the other hand, a device connected through a USB terminal, a VGA terminal, an eSATA terminal or the like of a notebook PC is called an external device. The open sensor 39 detects that a housing or a device bay lid (hereinafter referred to as a cover lid) that needs to be opened when replacing, adding, or removing an internal device is opened, and outputs a signal to the EC 29. To do.

〔パワー・ステート〕
ノートPC10は、ACPIの規格に適合しており、G0ステート、G1ステート、G2ステート、およびG3ステートの4つのグローバル・システム・ステートに遷移することができる。G0ステートはパワー・ステートとしてのS0ステートに相当し、CPU11はアプリケーション・プログラムを実行できる状態となり、周辺デバイスは電力が供給されるが独自の機能に基づいて省電力動作をする。S0ステートはパワー・オン状態ともいう。G1ステートはスリーピング・ステートともいわれ、パワー・ステートとしてのS1ステートからS4ステートに相当する。
[Power State]
The notebook PC 10 conforms to the ACPI standard, and can transition to four global system states of G0 state, G1 state, G2 state, and G3 state. The G0 state corresponds to the S0 state as a power state, and the CPU 11 is in a state in which an application program can be executed. The peripheral device is supplied with power, but performs a power saving operation based on a unique function. The S0 state is also called a power-on state. The G1 state is also called a sleeping state, and corresponds to the S1 state to the S4 state as power states.

S3ステートはサスペンド状態ともいわれ、メイン・メモリ15の記憶を保持するために必要なデバイスの電源を除いてほとんどのデバイスの電源が停止する。S4ステートは、ハイバネーション状態ともいわれ、システムのコンテキストがHDD22に記憶されてほとんどのデバイスの電源が停止する。G2ステートはソフト・オフともいわれるパワー・ステートとしてのS5ステートに相当し、システムのコンテキストをHDD23に記憶しないでほとんどのデバイスの電源が停止する。G3ステートは、メカニカル・オフ・ステートともいわれ、ボタン電池27を除いてノートPC10の一切の電源は停止する。   The S3 state is also referred to as a suspend state, and most of the devices are powered off except for the device that is required to hold the memory of the main memory 15. The S4 state is also called a hibernation state, and the system context is stored in the HDD 22 and the power of most devices is stopped. The G2 state corresponds to the S5 state as a power state, which is also called soft-off, and most devices are powered off without storing the system context in the HDD 23. The G3 state is also called a mechanical off state, and all the power sources of the notebook PC 10 are stopped except for the button battery 27.

G3ステートのときは、AC/DCアダプタ45および電池パック41がノートPC10から外されたかあるいはそれらが電力を供給しない状態となり、ノートPC10にはボタン電池27以外の電力源が存在しないことになる。本明細書では、ボタン電池27はノートPC10の電力源としては扱わず、AC/DCアダプタ45および電池パック41が電力供給を停止したG3ステートのときはノートPC10のすべての電力源が停止したということにする。   In the G3 state, the AC / DC adapter 45 and the battery pack 41 are removed from the notebook PC 10 or they are not supplied with power, and there is no power source other than the button battery 27 in the notebook PC 10. In this specification, the button battery 27 is not treated as a power source of the notebook PC 10, and all power sources of the notebook PC 10 are stopped when the AC / DC adapter 45 and the battery pack 41 are in the G3 state where the power supply is stopped. I will decide.

G3ステートはACPIの規格に、ノートPC10の内部デバイスにアクセスするための電気的な安全が確保された状態としても定義されている。本明細書ではS1ステートからS4ステートまでのスリーピング・ステートおよびS5ステートのソフト・オフをSxステートということにする。Sxステートはパワー・オフ状態ともいう。本明細書においては、ノートPC10がS1ステート〜S3ステートからS0ステートに遷移して動作状態に至ることをレジュームといい、S4ステートまたはS5ステートからS0ステートに遷移して動作状態に至ることをコールド・ブートまたは単にブートということにする。また、ノートPC10のパワー・ステートをSxステートからS0ステートに遷移させることを起動ということにする。   The G3 state is also defined in the ACPI standard as a state in which electrical safety for accessing an internal device of the notebook PC 10 is ensured. In this specification, the sleeping state from the S1 state to the S4 state and the soft-off of the S5 state are referred to as the Sx state. The Sx state is also called a power-off state. In this specification, the transition from the S1 state to the S3 state to the S0 state and the operation state of the notebook PC 10 is called resume, and the transition from the S4 state or the S5 state to the S0 state and the operation state is cold. -Let's say boot or just boot. In addition, the transition of the power state of the notebook PC 10 from the Sx state to the S0 state is referred to as activation.

なお、図1は本実施の形態を説明するために、本実施の形態に関連する主要なハードウェアの構成および接続関係を簡略化して記載したに過ぎないものである。ここまでの説明で言及した以外にも、ノートPC10を構成するには多くのデバイスが使われる。しかしそれらは当業者には周知であるので、ここでは詳しく言及しない。図で記載した複数のブロックを1個の集積回路もしくは装置としたり、逆に1個のブロックを複数の集積回路もしくは装置に分割して構成したりすることも、当業者が任意に選択することができる範囲においては本発明の範囲に含まれる。   Note that FIG. 1 is only a simplified description of the main hardware configuration and connection relations related to the present embodiment in order to describe the present embodiment. In addition to those mentioned in the above description, many devices are used to configure the notebook PC 10. However, they are well known to those skilled in the art and will not be described in detail here. A person skilled in the art also arbitrarily selects a plurality of blocks described in the figure as one integrated circuit or device, or conversely, a block is divided into a plurality of integrated circuits or devices. Is included in the scope of the present invention.

〔BIOS_ROMの構成〕
図2はBIOS_ROM33のデータ構造を示す図である。BIOS_ROM33は、BIOSコードが格納されているBIOS領域51とデータ領域53を含む。BIOS_ROM33はBIOSコードの書き換えに伴うリスクを軽減するためにブート・ブロック方式を採用している。BIOS領域51はブート・ブロック55とシステム・ブロック57に分かれている。ブート・ブロック55は書き込み保護がされている記憶領域でここに格納されたプログラムまたはコードはTPM(Trusted Platform Module )の仕様書に規定するCRTM(Core Root of Trust for Measurement)として扱われ特別な権限がないと書き換えができないようになっている。
[Configuration of BIOS_ROM]
FIG. 2 shows the data structure of the BIOS_ROM 33. As shown in FIG. The BIOS_ROM 33 includes a BIOS area 51 and a data area 53 in which a BIOS code is stored. The BIOS_ROM 33 employs a boot block method in order to reduce the risk associated with rewriting the BIOS code. The BIOS area 51 is divided into a boot block 55 and a system block 57. The boot block 55 is a write-protected storage area, and the program or code stored here is treated as a CRTM (Core Root of Trust for Measurement) defined in the TPM (Trusted Platform Module) specification, and has a special authority. It is impossible to rewrite without it.

ブート・ブロック55には基本デバイス初期化コード101、一貫性認証コード103、およびPOST選択コード105がCRTMとして格納されている。CRTMは、BIOSコードの中で一貫性のある部分として構成され、ノートPC10がブートするときに必ず最初に実行される。ノートPC10のプラットフォームに関するすべての一貫性の計測は一貫性認証コード103により行われる。   In the boot block 55, the basic device initialization code 101, the consistency authentication code 103, and the POST selection code 105 are stored as CRTM. The CRTM is configured as a consistent part of the BIOS code and is always executed first when the notebook PC 10 boots. All consistency measurements regarding the platform of the notebook PC 10 are performed by the consistency authentication code 103.

ユーザは、TPMオーナーシップに基づいて許可される操作の中でいくつかの特権的な操作に関しては、フィジカル・プリゼンス(Physical Presence)の認証を求められる。一貫性認証コード103はフィジカル・プリゼンスの認証も行う。基本デバイス初期化コード101は、ノートPC10が起動してSxステートからS0ステートに遷移する際に、メイン・メモリ15にBIOSコードをロードして実行を開始するまでに必要なCPU11、メイン・メモリ15およびその他の基本的なデバイスの検出、検査および初期化を必要な範囲で行う。POST選択コード105は、前回の起動から今回の起動までの間に内部デバイスの構成が変更された可能性を判断して、あらかじめ用意した複数のPOSTコードの中から適切なPOSTコードを選択し、POST終了後のデバイスの動作の安定化とPOST時間の短縮の両立を図る。   The user is required to authenticate Physical Presence for some privileged operations among those permitted based on TPM ownership. The consistency authentication code 103 also authenticates the physical presence. The basic device initialization code 101 is stored in the CPU 11 and the main memory 15 which are necessary for loading the BIOS code into the main memory 15 and starting the execution when the notebook PC 10 is activated and transits from the Sx state to the S0 state. And other basic device detection, inspection and initialization to the extent necessary. The POST selection code 105 determines the possibility that the configuration of the internal device has changed from the previous activation to the current activation, selects an appropriate POST code from a plurality of POST codes prepared in advance, To achieve both stabilization of device operation after POST and shortening of POST time.

POSTとは、SxステートからS0ステートに遷移する際に、CPU11にリセット信号が供給されてから、OSがロードされるまでの期間にBIOS_ROM33に格納されたPOSTコードがチップ・セットのコントローラにパラメータを設定して使用できる状態にする作業をいう。POSTは、CPU11がリセットされてからOSがロードを開始するまでにBIOSコードが行うすべての処理であったり、あるいはその中からCPU11およびメイン・メモリ13などの基本的なデバイスに対する初期化を除いた処理であったりしてよい。POSTコードが実行を開始してから終了するまでの時間をPOST時間という。   The POST is a parameter in which the POST code stored in the BIOS_ROM 33 is supplied to the chip set controller during the period from when the reset signal is supplied to the CPU 11 until the OS is loaded when the Sx state transitions to the S0 state. The work to set and use. POST is all processing performed by the BIOS code from when the CPU 11 is reset to when the OS starts loading, or initialization of basic devices such as the CPU 11 and the main memory 13 is excluded. It may be processing. The time from the start of execution of the POST code to the end thereof is referred to as the POST time.

基本POSTコード107は、すべての内部デバイスを対象にして検出、検査、および初期化といった完全なPOST処理を行う。基本POSコード107は、所定のデバイスが検出できないときおよび検査の結果デバイスが正常に動作しないと判断したときにビープ音や画面表示によるエラーを出力する。基本POSTコード107は、MCH13およびICH21に接続されているデバイスからパラメータを取得して現在のシステムにおいて最適なパラメータを選択しMCH13およびICH21が含むコントローラに設定する。   The basic POST code 107 performs complete POST processing such as detection, inspection, and initialization for all internal devices. The basic POS code 107 outputs an error due to a beep sound or a screen display when a predetermined device cannot be detected or when it is determined that the device does not operate normally as a result of the inspection. The basic POST code 107 acquires parameters from the devices connected to the MCH 13 and the ICH 21, selects the optimum parameters in the current system, and sets them in the controller included in the MCH 13 and the ICH 21.

本明細書においてはこのように内部デバイスを検査してそこから取得した情報に基づいて選択した最適なパラメータをコントローラに設定することを初期化といい、いずれかの場所に保存しておいた過去に設定したパラメータを対応するコントローラに設定することをリストアということにする。リストアは、内部デバイスの検出、検査および最適パラメータの選択のための処理を省略するので初期化に比べて短時間で完了することができるが、デバイスの構成が変更されている場合は動作が不安定になったり、POSTがハングアップしたりする可能性がある。   In this specification, it is called initialization, and setting the optimal parameter selected based on the information acquired from the inspection of the internal device in this way is the past, and the past saved in any place Setting the parameter set in (1) to the corresponding controller is called restoration. Restoration can be completed in a shorter time than initialization because the processing for internal device detection, inspection, and optimal parameter selection is omitted, but operation is not possible when the device configuration is changed. There is a possibility that it becomes stable and POST hangs up.

高速POST1コード109および高速POST2コード111はそれぞれ基本POSTよりも少ない手順で高速POST1および高速POST2を行う。基本POSTコード107は、高速POST1コード109および高速POST2コード111に比べて実行時間が長い。高速POST1は、一例として本発明の出願人が採用するFast Postとすることができる。   The high-speed POST1 code 109 and the high-speed POST2 code 111 perform the high-speed POST1 and the high-speed POST2, respectively, with fewer procedures than the basic POST. The basic POST code 107 has a longer execution time than the high-speed POST1 code 109 and the high-speed POST2 code 111. As an example, the high-speed POST 1 can be a Fast Post employed by the applicant of the present invention.

Fast POSTは、あらかじめ決めておいた一部のデバイスは必ず装着されているという前提に立ってそれらの検出、検査、および最適なパラメータの選択などの処理を省略する手法である。Fast POSTの対象としては、HDD23、USBデバイス、および無線モジュールなどのような応答時間が長いために初期化に多くの時間を費やす内部デバイスや、動作のタイミングからOSが初期化をしても問題がないような内部デバイスなどを選定することができる。Fast POSTを実行すると、処理を省略した内部デバイスの構成が変更されていた場合にその動作が不安定になったり、POSTがハングアップしたりすることがある。   Fast POST is a technique that omits detection, inspection, and selection of optimal parameters based on the premise that some predetermined devices are always mounted. Fast POST targets include internal devices that spend a lot of time for initialization, such as HDDs 23, USB devices, and wireless modules, and even if the OS is initialized from the timing of operation. It is possible to select an internal device that does not have any. When Fast POST is executed, if the configuration of an internal device that omits processing is changed, the operation may become unstable, or POST may hang up.

高速POST2は一例として、最初に基本POSTを実行して設定した最適なパラメータやそのときのデバイスの情報など(以下、パラメータという。)をBIOS_ROM33のデータ領域53および他の不揮発性の記憶領域に格納しておき、次回のPOSTの際には、基本的なデバイスを除いて格納しておいたパラメータをリストアすることでPOSTの時間を短縮する手法を採用することができる。   As an example, the high-speed POST 2 stores the optimum parameters set by first executing the basic POST and information on the device at that time (hereinafter referred to as parameters) in the data area 53 of the BIOS_ROM 33 and other nonvolatile storage areas. In the next POST, a method of shortening the POST time by restoring the parameters stored except for the basic device can be employed.

ここで、S3ステートからS0ステートにレジュームする場合のPOSTを説明する。起動の際に実行されたPOSTコードおよびコントローラに設定されたパラメータなどは、S0ステートにおいてメイン・メモリ15に記憶される。S0ステートからS3ステートにサスペンドするときには、メイン・メモリ15に記憶されたPOSTコードおよびパラメータの記憶が維持される。S3ステートからS0ステートにレジュームするときにはメイン・メモリ15に記憶されたPOSTコードを実行して、メイン・メモリ15に記憶されたパラメータを設定することで短時間にコントローラの設定を完了することができる。なお、レジュームするときも、ブート・ブロック55に記憶されたBIOSコードは必ず実行される。   Here, the POST when resuming from the S3 state to the S0 state will be described. The POST code executed at the time of activation and the parameters set in the controller are stored in the main memory 15 in the S0 state. When suspending from the S0 state to the S3 state, the storage of the POST code and parameters stored in the main memory 15 is maintained. When resuming from the S3 state to the S0 state, the setting of the controller can be completed in a short time by executing the POST code stored in the main memory 15 and setting the parameters stored in the main memory 15. . Note that the BIOS code stored in the boot block 55 is always executed when resuming.

高速POST2では、S3ステートにおいて電池パック49の電圧が低下したときまたは所定の時間が経過したときなどに、OSが認識しない状態でメイン・メモリ15に記憶されていたPOSTコードおよびパラメータを、S0ステートを経由してHDD23またはその他の不揮発性メモリに記憶した後にS5ステートに遷移させる。このとき、OSはシステムがS3ステートに遷移していると認識している。そして次にS5ステートからS0ステートに遷移するときには、HDD23に記憶されていたPOSTコードがHDD23に記憶されていたパラメータをコントローラに設定することで短時間に処理を完了することができる。   In the high-speed POST2, when the voltage of the battery pack 49 decreases in the S3 state or when a predetermined time has elapsed, the POST code and parameters stored in the main memory 15 without being recognized by the OS are converted into the S0 state. After being stored in the HDD 23 or other nonvolatile memory via, the transition to the S5 state is made. At this time, the OS recognizes that the system has transitioned to the S3 state. Then, when the state transitions from the S5 state to the S0 state next time, the POST code stored in the HDD 23 sets the parameter stored in the HDD 23 in the controller, whereby the processing can be completed in a short time.

I/Oコード113は、CPU11がリアル・モードで動作する際に周辺デバイスにアクセスするための入出力のインターフェースを提供する。BIOSセット・アップ・コード115は、ブート・ドライブの選択、各デバイスの機能のイネーブル/ディスエーブル、セキュリティのイネーブル/ディスエーブルなどのような内部デバイスに対する設定をユーザがカスタマイズするためのインターフェースを提供する。ノートPC10をブートする際に、OSがロードされる前に所定のキーを操作するとBIOSセット・アップ・コード115が実行されて、LCD19にBIOS設定画面が表示される。   The I / O code 113 provides an input / output interface for accessing peripheral devices when the CPU 11 operates in the real mode. The BIOS setup code 115 provides an interface for the user to customize settings for internal devices such as boot drive selection, enable / disable features of each device, enable / disable security, etc. . When the notebook PC 10 is booted, if a predetermined key is operated before the OS is loaded, the BIOS setup code 115 is executed and the BIOS setting screen is displayed on the LCD 19.

ユーザが設定したセット・アップ・データは、ICH21内のRTCメモリ22に記憶される。基本POSTコード107、高速POSTコード109、および高速POSTコード111を実行する際にはRTCメモリ22に記憶されたセット・アップ・データが参照される。環境ユーティリティ・コード117は、ノートPC10の温度および電力を制御する。認証コード119は、パワー・オン・パスワード、HDDパスワード、および管理者パスワードなどの認証を行う。   The setup data set by the user is stored in the RTC memory 22 in the ICH 21. When executing the basic POST code 107, the high-speed POST code 109, and the high-speed POST code 111, the setup data stored in the RTC memory 22 is referred to. The environmental utility code 117 controls the temperature and power of the notebook PC 10. The authentication code 119 performs authentication such as a power-on password, HDD password, and administrator password.

なお、本発明はブート・ブロック方式を採用しないBIOS_ROM33、あるいは、BIOS領域の全体をブート・ブロックにしたBIOS_ROMに適用することもできる。高速POST1および高速POST2は、いずれも基本POSTよりも手順を簡易化したりまたは基本POSTの一部を省略したりしてより短時間でOSのロードを開始できるものであれば他の方式を採用することもできる。ただし、本発明における高速POST1および高速POST2は、内部デバイスの構成が変更されたときに実行されると、内部デバイスの動作が不安定になったりPOSTが停止したりする場合があるという特質を備える。   Note that the present invention can also be applied to the BIOS_ROM 33 that does not employ the boot block method, or the BIOS_ROM in which the entire BIOS area is the boot block. Both high-speed POST1 and high-speed POST2 adopt another method as long as the OS can be loaded in a shorter time by simplifying the procedure than the basic POST or omitting a part of the basic POST. You can also However, the high-speed POST1 and the high-speed POST2 according to the present invention have characteristics that the operation of the internal device may become unstable or the POST may stop when executed when the configuration of the internal device is changed. .

〔RTCメモリ〕
図3は、RTCメモリ22のセット・アップ・データの一部を示す図である。RTCメモリ22には、BIOSセット・アップ・コード115により設定されたセット・アップ・データおよびRTCを利用したスケジュール・ウェイク・アップに関する設定情報や時間情報が記憶される。選択POSTビット141は、図6〜図9の手順で実行される選択POSTをイネーブルまたはディスエーブルに設定する項目である。選択POSTビット141がイネーブルに設定されたときは、コンピュータが起動すると図7〜図9の手順でPOSTが実行されるが、ディスエーブルに設定されたときは従来どおり基本POSTだけが実行される。選択POSTビット141は、POST選択コード105が図5のFET46を制御する際に参照される。
[RTC memory]
FIG. 3 is a diagram showing a part of the setup data of the RTC memory 22. The RTC memory 22 stores set-up data set by the BIOS set-up code 115 and setting information and time information regarding schedule wake-up using the RTC. The selection POST bit 141 is an item for setting the selection POST executed in the procedure of FIGS. 6 to 9 to enable or disable. When the selected POST bit 141 is set to enable, POST is executed according to the procedure shown in FIGS. 7 to 9 when the computer is started. However, when the computer is disabled, only basic POST is executed as usual. The selection POST bit 141 is referred to when the POST selection code 105 controls the FET 46 shown in FIG.

S0高速POSTビット143は、図7のブロック367の手順で実行する高速POSTの種類を設定する項目である。本実施の形態では、高速POST1または高速POST2のいずれかを設定する。いずれの高速POSTも設定しないときは、ブロック367の手順で基本POSTが実行される。Sx高速POSTビット145は、図7のブロック371の手順で実行する高速POSTの種類を設定する項目である。本実施の形態では、高速POST1または高速POST2のいずれかを設定する。いずれの高速POSTの種類も設定しないときは、ブロック371の手順で基本POSTが実行される。完全POSTビット147は、図8のブロック401の手順で、ブロック403とブロック405のいずれに移行するかを設定する項目である。
The S0 high-speed POST bit 143 is an item for setting the type of high-speed POST executed in the procedure of block 367 in FIG. In the present embodiment, either high-speed POST1 or high-speed POST2 is set. When no high-speed POST is set, the basic POST is executed according to the procedure of block 367. The Sx high-speed POST bit 145 is an item for setting the type of high-speed POST executed in the procedure of block 371 in FIG. In the present embodiment, either high-speed POST1 or high-speed POST2 is set. When no type of high-speed POST is set, basic POST is executed according to the procedure of block 371. The complete POST bit 147 is an item for setting which of the block 403 and the block 405 to move to in the procedure of the block 401 in FIG.

〔開放センサ〕
図4は、開放センサ39の構成の一例を説明する図である。図4(A)は、ノートPC10の筐体201の底面にカバー蓋203が形成されている様子を示す平面図で、図4(B)は側面図である。ノートPC10の内部デバイスを交換する際には、カバー蓋203を外す必要がある。カバー蓋203は、内部デバイスの構成を変更するための物理的なアクセス経路の一例である。物理的なアクセス経路の他の例としては、筐体201の側面に形成されたデバイス・ベイの蓋がある。キーボード207の内面には、内部にネジが切られたタッピング・ボス209が形成されている。カバー蓋203はネジ205、207で筐体201に取り付けられる。
[Open sensor]
FIG. 4 is a diagram illustrating an example of the configuration of the open sensor 39. 4A is a plan view showing a state where a cover lid 203 is formed on the bottom surface of the casing 201 of the notebook PC 10, and FIG. 4B is a side view. When replacing the internal device of the notebook PC 10, it is necessary to remove the cover lid 203. The cover lid 203 is an example of a physical access path for changing the configuration of the internal device. Another example of the physical access path is a device bay lid formed on the side surface of the housing 201. On the inner surface of the keyboard 207, a tapping boss 209 with a screw cut therein is formed. The cover lid 203 is attached to the housing 201 with screws 205 and 207.

ネジ205はカバー蓋203を筐体201に固定する際にタッピング・ボス209に結合される。ネジ205は、マザー・ボード213を貫通している。マザー・ボード213には、ネジ205が貫通する位置に分割雌ねじ211a、211bが取り付けられている。ネジ205はタッピング・ボス209に結合する際に分割雌ねじ211a、211bに結合するようになっている。図4(C)は、分割雌ねじ211a、211bとネジ205が結合している状態を示し、図4(D)は分割雌ねじ211a、211bとネジ205が結合してない状態を示す。   The screw 205 is coupled to the tapping boss 209 when the cover lid 203 is fixed to the housing 201. The screw 205 passes through the mother board 213. Divided female screws 211a and 211b are attached to the mother board 213 at positions where the screws 205 penetrate. When the screw 205 is coupled to the tapping boss 209, the screw 205 is coupled to the divided female screws 211a and 211b. 4C shows a state where the divided female screws 211a and 211b and the screw 205 are coupled, and FIG. 4D shows a state where the divided female screws 211a and 211b and the screw 205 are not coupled.

ネジ207も同じ構造で他のタッピング・ボスと分割雌ねじに結合する。図4(C)はカバー蓋203がシステム筐体201に取り付けられた状態を示し、図4(D)はカバー蓋203がシステム筐体201から取り外された状態を示しているといえる。分割雌ねじ211bは電源ラインに接続され、分割雌ネジ211aはグラウンドに接続される。ネジ205が結合されている場合は、分割雌ねじ211bと分割雌ねじ211aが導通して、分割雌ねじ211bの電位がグラウンド・レベルになり、ネジ205が結合されていない場合は分割雌ねじ211bの電位が電源の電位になる。   The screw 207 has the same structure and is coupled to another tapping boss and a split female screw. 4C shows a state where the cover lid 203 is attached to the system casing 201, and FIG. 4D shows a state where the cover lid 203 has been removed from the system casing 201. FIG. The divided female screw 211b is connected to the power supply line, and the divided female screw 211a is connected to the ground. When the screw 205 is coupled, the divided female screw 211b and the divided female screw 211a are conducted, and the potential of the divided female screw 211b becomes the ground level. When the screw 205 is not coupled, the potential of the divided female screw 211b is the power source. Potential.

開放センサ39は、この電位の変化を利用してカバー蓋203が開放された状態を検出する。開放センサ39は、図4に示した実施例に限定されない。たとえば、プラスチックで形成されたカバー蓋203の内面に導電性の板を張り付け、筐体201側に2本の電極を形成して、カバー蓋203の装着による電極の導通を検出するようにしてもよい。また、カバー蓋203の装着を検出するマイクロ・スイッチやマグネット式のセンサを設けるようにしてもよい。   The opening sensor 39 detects a state in which the cover lid 203 is opened using the change in potential. The open sensor 39 is not limited to the embodiment shown in FIG. For example, a conductive plate may be attached to the inner surface of the cover lid 203 made of plastic, and two electrodes may be formed on the housing 201 side to detect continuity of the electrodes due to the cover lid 203 being attached. Good. Further, a micro switch for detecting the attachment of the cover lid 203 or a magnet type sensor may be provided.

〔ECの構成〕
図5は、EC29の本実施の形態に関連する構成を示す図である。EC29は、EEPROM30およびハードウェア論理回路で構成された開放検出回路151を含んでいる。EEPROM30には、複数の状態設定ビット153〜161が設定される。POST選択コード105は、状態設定ビット153〜161を参照することができる。開放ビット153は、カバー蓋203が開放された状態を示す。開放検出回路151には、DC/DCコンバータ35およびボタン電池27からそれぞれのダイオードを経由したいわゆるワイヤードOR回路で電圧が印加される。
[Structure of EC]
FIG. 5 is a diagram showing a configuration related to the present embodiment of the EC 29. The EC 29 includes an open detection circuit 151 configured by an EEPROM 30 and a hardware logic circuit. A plurality of state setting bits 153 to 161 are set in the EEPROM 30. The POST selection code 105 can refer to the status setting bits 153 to 161. The opening bit 153 indicates a state where the cover lid 203 is opened. A voltage is applied to the open detection circuit 151 from the DC / DC converter 35 and the button battery 27 by a so-called wired OR circuit via respective diodes.

電池パック41またはAC/DCアダプタ45が電力を供給する間は、開放検出回路151にDC/DCコンバータ45が電力を供給するが、ノートPC10がG3ステートに遷移したときにはボタン電池27が電力を供給する。開放センサ39の一端は開放検出回路151に接続され、他端はグラウンドに接続されている。カバー蓋203が閉じているときはDC/DCコンバータ35または、RTCメモリ27からグラウンドに電流が流れる。   While the battery pack 41 or the AC / DC adapter 45 supplies power, the DC / DC converter 45 supplies power to the open detection circuit 151, but the button battery 27 supplies power when the notebook PC 10 transitions to the G3 state. To do. One end of the open sensor 39 is connected to the open detection circuit 151, and the other end is connected to the ground. When the cover lid 203 is closed, current flows from the DC / DC converter 35 or the RTC memory 27 to the ground.

開放センサ39の一端の電圧は、カバー蓋203が閉じているときはグラウンド・レベルであるが、カバー蓋203が開放するとDC/DCコンバータ35またはボタン電池27の電圧まで上昇する。開放検出回路151はPOST選択コード105により指示された以降において開放センサ39の一端の電圧が所定値まで上昇したときに開放ビット153を設定する。POST選択コード105は開放ビット153を参照したあと、もし設定されていた場合は次回の起動時に選択POSTを実行するために解除する。   The voltage at one end of the open sensor 39 is at the ground level when the cover lid 203 is closed, but increases to the voltage of the DC / DC converter 35 or the button battery 27 when the cover lid 203 is opened. The opening detection circuit 151 sets the opening bit 153 when the voltage at one end of the opening sensor 39 rises to a predetermined value after being instructed by the POST selection code 105. After the POST selection code 105 refers to the release bit 153, if it is set, the POST selection code 105 is canceled to execute the selection POST at the next activation.

開放検出回路151の電力をボタン電池27がバック・アップすることで、開放検出回路151はG3ステートに遷移してからカバー蓋203が開放されたときの状態を検出して、開放ビット153を設定することができる。ただし、本発明では、開放検出回路151の電力がボタン電池27でバック・アップされないような場合でも、図7のブロック363以降の手順により、選択POSTを実行することができる。   When the button battery 27 backs up the power of the opening detection circuit 151, the opening detection circuit 151 detects the state when the cover lid 203 is opened after the transition to the G3 state, and sets the opening bit 153. can do. However, in the present invention, even when the power of the open detection circuit 151 is not backed up by the button battery 27, the selection POST can be executed by the procedure after the block 363 in FIG.

ノートPC10は、パワー・オン状態またはパワー・オフ状態では電池パック41またはAC/DCアダプタ45から電力の供給を受けるため、ボタン電池27は開放検出回路151のために消耗しないが、工場から出荷する前のようにG3ステートの状態が長く続くと、ボタン電池27の消耗が激しくなる。不必要なボタン電池27の消耗を避けるために、ボタン電池27に接続されたダイオードのカソードには、FET46が接続されている。FET46は、ボタン電池27から電力の供給を受ける制御回路47で制御される。POST選択コード105は、RTCメモリ22の選択POSTビット141がイネーブルに設定されたときは制御回路47に指示してFET46をオンにし、ディスエーブルに設定されたときはオフにする。   Since the notebook PC 10 is supplied with power from the battery pack 41 or the AC / DC adapter 45 in the power-on state or the power-off state, the button battery 27 is not consumed due to the open detection circuit 151, but is shipped from the factory. When the state of the G3 state continues for a long time as before, the consumption of the button battery 27 becomes intense. In order to avoid unnecessary consumption of the button battery 27, the FET 46 is connected to the cathode of the diode connected to the button battery 27. The FET 46 is controlled by a control circuit 47 that receives power from the button battery 27. The POST selection code 105 instructs the control circuit 47 to turn on the FET 46 when the selection POST bit 141 of the RTC memory 22 is set to enable, and turns it off when set to disable.

S0_BATT_LowビットとSx_BATT_Lowビットは、それぞれ電池パック41の電圧が所定値(クリティカル電圧)未満に低下して放電を停止する状態になったことを示す。EC29は、電池パック41の電圧が、S0ステートの間にクリティカル電圧まで低下して放電を停止するときの状態を示すS0_BATT_LowビットおよびSxステートの間にクリティカル電圧まで低下して放電を停止するときの状態を示すSx_BATT_Lowビットを設定する。POST選択コード105は、S0_BATT_LowビットおよびSx_BATT_Lowビットを参照した後に、もし設定されていた場合は次回の起動時に選択POSTを実行するために解除する。   Each of the S0_BATT_Low bit and the Sx_BATT_Low bit indicates that the voltage of the battery pack 41 has decreased to a value lower than a predetermined value (critical voltage) to stop discharging. When the voltage of the battery pack 41 is lowered to the critical voltage during the S0 state and the discharge is stopped during the S0 state, the EC 29 is lowered to the critical voltage during the Sx state and when the discharge is stopped. The Sx_BATT_Low bit indicating the state is set. If the POST selection code 105 is set after referring to the S0_BATT_Low bit and the Sx_BATT_Low bit, the POST selection code 105 is canceled to execute the selection POST at the next activation.

PnPビット159は、OSの動作環境下でプラグ・アンド・プレイにより外部デバイスが接続された状態を示す。EC29はS0ステートの間にプラグ・アンド・プレイにより外部デバイスが接続されたことの通知をOSから受け取ったときにはPnPビット159を設定する。POST選択コード105は、PnPビット159を参照した後に、もし設定されていた場合は次回の起動時に選択POSTを実行するために解除する。   The PnP bit 159 indicates a state in which an external device is connected by plug and play under the operating environment of the OS. The EC 29 sets the PnP bit 159 when it receives notification from the OS that an external device has been connected by plug and play during the S0 state. If the POST selection code 105 is set after referring to the PnP bit 159, the POST selection code 105 is canceled to execute the selection POST at the next activation.

ノートPC10では、SxステートからS0ステートに遷移するときに、遷移元のパワー・ステートにより異なった処理が行われる。パワー・ステート・ビット161は、SxステートからS0ステートに遷移する際の遷移元のパワー・ステートを示す。パワー・ステート・ビット161は、ICH21から通知を受けたEC29がS0ステートからSxステートに遷移する際に遷移先のパワー・ステートとして設定し、SxステートからS0ステートに遷移する際に解除する。   In the notebook PC 10, when the transition from the Sx state to the S0 state is performed, different processing is performed depending on the power state of the transition source. The power state bit 161 indicates the power state of the transition source when transitioning from the Sx state to the S0 state. The power state bit 161 is set as a transition destination power state when the EC 29 notified from the ICH 21 transitions from the S0 state to the Sx state, and is released when the EC 29 transitions from the Sx state to the S0 state.

〔選択POSTの手順〕
つぎに、ノートPC10における選択POSTの実行手順を、図6〜図9のフローチャートを参照して説明する。図6は、RTCメモリ22の選択POSTビットがイネーブルに設定され、EEPROM30の各状態設定ビットが設定される際の手順を示すフローチャートである。図6のブロック301では、S4ステートまたはS5ステートのときに、起動スイッチ37を操作してノートPC10を起動する。EC29はS0ステートに遷移させるためにPMC31を通じてDC/DCコンバータ35を動作させる。
[Selected POST procedure]
Next, the execution procedure of the selection POST in the notebook PC 10 will be described with reference to the flowcharts of FIGS. FIG. 6 is a flowchart showing a procedure when the selection POST bit of the RTC memory 22 is set to enable and each state setting bit of the EEPROM 30 is set. In block 301 of FIG. 6, the notebook PC 10 is activated by operating the activation switch 37 in the S4 state or S5 state. The EC 29 operates the DC / DC converter 35 through the PMC 31 in order to transit to the S0 state.

EC29からS0ステートに遷移する信号を受け取ったICH21は、CPU11にリセット信号を送る。リセット信号を受け取ったCPU11は、電圧が安定すると内部のキャッシュおよびレジスタを初期化する。CPU11はその後あらかじめ定められたメイン・メモリ15のアドレス(リセット・ベクタ)にアクセスしてインストラクションをフェッチする。   ICH21 which received the signal which changes to S0 state from EC29 sends a reset signal to CPU11. The CPU 11 that has received the reset signal initializes the internal cache and the register when the voltage is stabilized. The CPU 11 then accesses a predetermined address (reset vector) of the main memory 15 to fetch an instruction.

ノートPC10がブートするときは、ブート・ブロック55に格納されたBIOSコードが所定のアドレスから実行される。MCH13は遷移元のパワー・ステートが、S4ステートまたはS5ステートであると判断して、リセット・ベクタへのアクセスをBIOS_ROM33のブート・ブロック55に格納された基本デバイス初期化コード101のアドレスに切り換える。CPU11は基本デバイス初期化コード101をキャッシュに読み出して、メイン・メモリ15およびMCH13などのBIOSコードを実行するのに必要な基本的なデバイスの検出、検査および初期化をする。   When the notebook PC 10 boots, the BIOS code stored in the boot block 55 is executed from a predetermined address. The MCH 13 determines that the power state of the transition source is the S4 state or the S5 state, and switches the access to the reset vector to the address of the basic device initialization code 101 stored in the boot block 55 of the BIOS_ROM 33. The CPU 11 reads the basic device initialization code 101 into the cache, and performs basic device detection, inspection, and initialization necessary for executing the BIOS code such as the main memory 15 and the MCH 13.

基本デバイス初期化コード101は、初期化するためにコントローラに設定したパラメータをデータ領域53および必要に応じて他の不揮発性メモリに書き込む。つづいて、基本デバイス初期化コード101は、BIOS_ROM33に格納されている所定のコードをメイン・メモリ15にロードして、メイン・メモリ15をシャドウRAMとして利用できるようにする。それ以降は、CPU11は、メイン・メモリ15にアクセスしてBIOSコードを実行する。   The basic device initialization code 101 writes the parameters set in the controller for initialization in the data area 53 and other nonvolatile memory as necessary. Subsequently, the basic device initialization code 101 loads a predetermined code stored in the BIOS_ROM 33 to the main memory 15 so that the main memory 15 can be used as a shadow RAM. Thereafter, the CPU 11 accesses the main memory 15 and executes the BIOS code.

つぎに、一貫性認証コード103は、システム・ブロック57に格納されたBIOSコードの改変に関する認証を行う。認証が終了するとPOST選択コード105が実行される。この時点では、RTCメモリ22の選択POSTビット141がディスエーブルであるため、図7〜図9に示す手順による選択POSTは実行されない。POST選択コード105は、G3検出レジスタ32にG3ビットを設定してPMC31に電力が供給されたことを表明する。ブロック303では、OSのロードが開始される前にユーザが所定のキーを押下してBIOSセット・アップ・コード115を呼び出してRTCメモリ22にセット・アップ・データを記憶する。ブロック305でユーザが選択POSTビット141をイネーブルに設定する。   Next, the consistency authentication code 103 performs authentication related to modification of the BIOS code stored in the system block 57. When the authentication is completed, the POST selection code 105 is executed. At this time, since the selection POST bit 141 of the RTC memory 22 is disabled, the selection POST according to the procedure shown in FIGS. 7 to 9 is not executed. The POST selection code 105 asserts that power is supplied to the PMC 31 by setting the G3 bit in the G3 detection register 32. In block 303, before the OS loading starts, the user presses a predetermined key to call the BIOS setup code 115 to store the setup data in the RTC memory 22. In block 305, the user sets the selected POST bit 141 to enabled.

ブロック307では、ユーザが高速POSTの種類を設定する。S0高速POSTビット143およびSx高速POSTビット145は、それぞれ図7のブロック367、371でPOST選択コード105が判断する対象となる。内部デバイスにアクセスする可能性はS0ステートで行われるよりもSxステートで行われる可能性の方が高い。したがって、電池パック41の電圧がS0ステートでクリティカル電圧まで低下したブロック365の状態よりも、Sxステートでクリティカル電圧まで低下したブロック369の状態の方がより確実なPOSTをすることが望ましい。よって、ブロック307ではユーザがS0高速POSTビット143にパラメータをリストアする高速POST2を設定し、Sx高速POSTビット145に一部の内部デバイスを除いてパラメータを初期化する高速POST1を設定する。   In block 307, the user sets the type of fast POST. The S0 high-speed POST bit 143 and the Sx high-speed POST bit 145 are objects to be determined by the POST selection code 105 in blocks 367 and 371 in FIG. 7, respectively. The possibility of accessing the internal device is higher in the Sx state than in the S0 state. Therefore, it is desirable to perform more reliable POST in the state of the block 369 in which the voltage of the battery pack 41 is reduced to the critical voltage in the S0 state than in the state of the block 365 in the Sx state. Therefore, in block 307, the user sets the high-speed POST2 for restoring parameters in the S0 high-speed POST bit 143, and sets the high-speed POST1 for initializing parameters except for some internal devices in the Sx high-speed POST bit 145.

ブロック309では、ユーザが完全基本POSTビット147を設定または解除する。ブロック311では、ユーザがセット・アップ・データをRTCメモリ22に保存してBIOSセット・アップ・コード115を終了すると基本POSTコード107が実行される。基本POSTコード107は基本デバイス初期化コード101で処理されていない残りのすべてのデバイスの検出、検査および初期化を行う。基本POSTコード107は、初期化するためにコントローラに設定したパラメータをデータ領域53および必要に応じて他の不揮発性メモリに書き込む。ブロック313では、基本POSTコード107に続いてOSおよびアプリケーション・プログラムがロードされ実行される。   At block 309, the user sets or clears the complete basic POST bit 147. In block 311, the basic POST code 107 is executed when the user saves the setup data in the RTC memory 22 and exits the BIOS setup code 115. The basic POST code 107 detects, inspects, and initializes all remaining devices that are not processed by the basic device initialization code 101. The basic POST code 107 writes the parameters set in the controller for initialization into the data area 53 and other nonvolatile memory as required. In block 313, the OS and application program are loaded and executed following the basic POST code 107.

この時点では、メイン・メモリ15にはBIOSコードと、コントローラに設定したパラメータが記憶されている。メイン・メモリ15の記憶が維持されるS1ステート〜S3ステートからS0ステートにレジュームする際に必要なBIOSコードとパラメータ以外のデータを記憶するメイン・メモリ15の記憶領域は、一般のプログラムの使用のために開放される。   At this point, the main memory 15 stores the BIOS code and parameters set in the controller. The storage area of the main memory 15 for storing data other than the BIOS code and parameters necessary for resuming from the S1 state to the S3 state where the storage of the main memory 15 is maintained is used for the use of a general program. For free.

ブロック315では、プラグ・アンド・プレイで新たに外部デバイスが接続されるとOSから通知を受けたEC29がEEPROM30にPnPビット159を設定する。さらにEC29は電池パック41の電圧がクリティカル電圧まで低下したことを検出するとパワー・ステート・ビット161を参照してS0_BATT_Lowビット155を設定する。ブロック317では、起動スイッチ37の操作、OSのインターフェースを通じた操作またはパワー・マネジメントの実行などによりノートPC10がSxステートに遷移する。   In block 315, when a new external device is connected by plug-and-play, the EC 29 notified from the OS sets the PnP bit 159 in the EEPROM 30. Further, when the EC 29 detects that the voltage of the battery pack 41 has dropped to the critical voltage, the EC 29 refers to the power state bit 161 and sets the S0_BATT_Low bit 155. In block 317, the notebook PC 10 transitions to the Sx state by operating the start switch 37, operating through the OS interface, or executing power management.

OSからSxステートへの遷移の準備が完了したことの通知を受け取ったICH21は、遷移先のパワー・ステートをEEPROM30のパワー・ステート・ビット161に設定する。S1ステート〜S3ステートに遷移する場合は、メイン・メモリ15の記憶が維持されるため、直近の起動においてメイン・メモリ15に記憶されたBIOSコードおよびパラメータのメイン・メモリ15への記憶が維持される。S4ステートまたはS5ステートに遷移する場合は、メイン・メモリ15の電源が喪失するのでメイン・メモリ15に記憶されていたすべてのデータは消失する。   The ICH 21 that has received notification that the preparation for the transition from the OS to the Sx state has been completed sets the power state of the transition destination in the power state bit 161 of the EEPROM 30. When the transition is made from the S1 state to the S3 state, the storage of the main memory 15 is maintained, so that the storage of the BIOS code and parameters stored in the main memory 15 at the most recent start-up is maintained. The When the state transits to the S4 state or the S5 state, the power source of the main memory 15 is lost, and therefore all data stored in the main memory 15 is lost.

Sxステートに遷移すると、CPU11の動作が停止しさらにパワー・ステートに応じてあらかじめ決められた内部デバイスの電力も停止する。Sxステートの間はノートPC10の動作は停止しているが、AC/DCアダプタ45が接続されているときは、EC29は電池パック41の電圧が待機電力のために所定値まで低下したときに電池パック41から充電要求を受け取って充電器43を動作させて充電する。また、AC/DCアダプタ45が接続されていないときは、Sxステートにおける待機電力を電池パック41が供給するために、クリティカル電圧まで低下することがある。ブロック321では、Sxステート中に電池パック41の電圧がクリティカル電圧まで低下したことをEC29が検出すると、パワー・ステート・ビット161を参照してSx_BATT_LOWビット157を設定する。   When the state transitions to the Sx state, the operation of the CPU 11 stops, and the power of the internal device determined in advance according to the power state also stops. While the operation of the notebook PC 10 is stopped during the Sx state, when the AC / DC adapter 45 is connected, the EC 29 is connected to the battery when the voltage of the battery pack 41 drops to a predetermined value due to standby power. A charge request is received from the pack 41 and the charger 43 is operated to charge. In addition, when the AC / DC adapter 45 is not connected, the battery pack 41 supplies standby power in the Sx state, so that the critical voltage may be lowered. In block 321, when the EC 29 detects that the voltage of the battery pack 41 has dropped to the critical voltage during the Sx state, the Sx_BATT_LOW bit 157 is set with reference to the power state bit 161.

図7〜図9は、選択POSTの実行手順を示すフローチャートである。ブロック351では、ノートPC10がSxステートに遷移しているときに、起動スイッチ37の操作、WOLのマジック・パケットの受信、またはスケジュール・ウェイク・アップによるウェイク・アップ時刻の到来などを契機として、EC29に起動信号が送られる。EC29から起動信号を受け取ったICH21は、EC29にS0ステートに遷移させるためにすべてのデバイスに電力を供給するように指示し、さらにCPU11にリセット信号を送る。   7 to 9 are flowcharts showing the execution procedure of the selected POST. In block 351, when the notebook PC 10 is transitioning to the Sx state, the EC 29 is triggered by the operation of the start switch 37, the reception of the WOL magic packet, or the arrival of the wake-up time due to the schedule wake-up. An activation signal is sent to. The ICH 21 that has received the activation signal from the EC 29 instructs the EC 29 to supply power to all devices in order to shift to the S0 state, and further sends a reset signal to the CPU 11.

リセット信号を受け取ったCPU11は、メイン・メモリ15のリセット・ベクタにアクセスする。MCH13はCPU11のリセット・ベクタへのアクセスをBIOS_ROMのブート・ブロック55に記憶されている基本デバイス初期化コード101のアドレスに切り換える。基本デバイスの初期化を終了した基本デバイス初期化コード101は、ブロック355でEEPROM30のパワー・ステート・ビット161を参照して遷移元のパワー・ステートを判断する。遷移元のパワー・ステートがS1ステート〜S3ステートの場合は、メイン・メモリ15に前回の起動のときに実行されたPOSTコードおよびパラメータが記憶されているので、ブロック357に移行してCPU11のアクセス先をメイン・メモリ15のPOSTコードが記憶されているアドレスに切り換える。   The CPU 11 that has received the reset signal accesses the reset vector in the main memory 15. The MCH 13 switches the CPU 11 access to the reset vector to the address of the basic device initialization code 101 stored in the boot block 55 of the BIOS_ROM. The basic device initialization code 101 that has completed the initialization of the basic device refers to the power state bit 161 of the EEPROM 30 in block 355 to determine the power state of the transition source. When the transition source power state is the S1 state to the S3 state, since the POST code and parameters executed at the previous activation are stored in the main memory 15, the process proceeds to block 357 and the CPU 11 accesses The destination is switched to the address where the POST code of the main memory 15 is stored.

ブロック357では、メイン・メモリ15に記憶されていたPOSTコードが同じくメイン・メモリ15に記憶されていたデバイス情報とパラメータに基づいてコントローラの設定をする。この作業は、デバイスの検出、検査、および最適なパラメータの選択などを省略するため短いPOST時間でOSをロードする状態に移行することができる。なお、前回の起動のときに選択POSTビット141がイネーブルに設定されていれば、POST選択コード105が実行されブロック359からの手順で内部デバイスへの物理的なアクセスの可能性がある場合に基本POSTコード107が実行される。   In block 357, the POST code stored in the main memory 15 sets the controller based on the device information and parameters stored in the main memory 15 as well. This operation can shift to a state in which the OS is loaded in a short POST time in order to omit device detection, inspection, and selection of optimum parameters. If the selected POST bit 141 is set to enable at the time of the previous activation, the POST selection code 105 is executed, and there is a possibility of physical access to the internal device in the procedure from the block 359. The POST code 107 is executed.

ブロック355で基本デバイス初期化コード101が、遷移元のパワー・ステートがS4ステートまたはS5ステートであると判断したときは、その後ブロック301と同様の手順でブート・ブロック55のBIOSコードを順番に実行してブロック359に移行する。今回は、RTCメモリ22の選択POSTビット141がイネーブルに設定されているため、CPU11はPOST選択コード105を完全に実行する。ブロック359では、POST選択コード105が、EEPROM30のPnPビット159を確認する。   When the basic device initialization code 101 determines in block 355 that the power state of the transition source is the S4 state or the S5 state, the BIOS code of the boot block 55 is sequentially executed in the same procedure as in the block 301 thereafter. Then, the process proceeds to block 359. This time, since the selection POST bit 141 of the RTC memory 22 is set to enable, the CPU 11 completely executes the POST selection code 105. At block 359, the POST selection code 105 confirms the PnP bit 159 of the EEPROM 30.

OSの動作環境下で新たに接続された外部デバイスは、OSが初期化またはリストアすればよいので基本的にPOSTの対象から外すことができるが、外部デバイスが最優先のブート・デバイスに設定されたUSBデバイスのような場合には、BIOSコードがこれを初期化することが望ましい。PnPビット159が設定されているときは、基本POSTの実行を原則とするノードAの手順に移行し、PnPビット159が設定されていないときはブロック361に移行することができる。なお、プラグ・アンド・プレイにより装着された外部デバイスの設定はOSがすべて行うものとして、ブロック359の判断を省略してもよい。   An external device newly connected under the operating environment of the OS can be basically excluded from the target of POST because the OS only needs to be initialized or restored, but the external device is set as the highest priority boot device. In some cases, such as a USB device, it is desirable for the BIOS code to initialize it. When the PnP bit 159 is set, the procedure can be shifted to the procedure of the node A in principle to execute the basic POST, and when the PnP bit 159 is not set, the procedure can be shifted to the block 361. Note that the determination of block 359 may be omitted, assuming that the OS performs all settings for external devices attached by plug and play.

ブロック361ではPOST選択コード105がEEPROM30の開放ビット153を参照して、前回の起動から今回の起動までの間にカバー蓋203が開放されたことがあるか否かを判断する。POST選択コード105は、開放ビット153の参照が終了すると開放ビット153を解除した後に、それ以降に開放センサ39がカバー蓋203の開放を示したときに開放ビット153を設定するように開放検出回路151を制御する。   In block 361, the POST selection code 105 refers to the opening bit 153 of the EEPROM 30 to determine whether or not the cover lid 203 has been opened between the previous activation and the current activation. The POST selection code 105 cancels the opening bit 153 when the opening bit 153 is referred to, and then sets the opening bit 153 when the opening sensor 39 indicates the opening of the cover lid 203. 151 is controlled.

開放ビット153が設定されているときは交換、追加、または撤去などによる内部デバイスの構成の変更が行われた可能性が高いので、ノードAの手順に移行する。開放ビット153が設定されていないときは、カバー蓋203が物理的に開放されていないため内部デバイスの構成が変更された可能性は極めて低いと考えられ、高速POST1または高速POST2を実行しても動作の不安定を招くようなことはないといえる。   When the release bit 153 is set, it is highly likely that the configuration of the internal device has been changed by replacement, addition, or removal, and therefore the procedure proceeds to the node A procedure. When the opening bit 153 is not set, it is considered that the possibility that the configuration of the internal device has been changed is very low because the cover lid 203 is not physically opened, and even if the high-speed POST1 or the high-speed POST2 is executed. It can be said that there is no instability in operation.

しかし、カバー蓋203の開放を検出するための開放検出回路151の電源をボタン電池27でバック・アップしない方法を採用する場合やボタン電池27が消耗した場合には、G3ステートに遷移してからカバー蓋203が開放された状態を開放検出回路151が検出できなくなる。さらに、ボタン電池27の電圧は維持されていても開放センサ39または開放検出回路151が正常に動作しないためにカバー蓋203の開放を正しく検出できない場合もあり得る。さらにカバー蓋203が開放しないで交換できる形態で内部デバイスが実装される場合もある。   However, when adopting a method in which the power of the opening detection circuit 151 for detecting the opening of the cover lid 203 is not backed up by the button battery 27 or when the button battery 27 is exhausted, the state is changed to the G3 state. The open detection circuit 151 cannot detect the state in which the cover lid 203 is opened. Furthermore, even if the voltage of the button battery 27 is maintained, the open sensor 39 or the open detection circuit 151 may not operate normally, so that the opening of the cover lid 203 may not be detected correctly. Furthermore, the internal device may be mounted in a form that can be replaced without opening the cover lid 203.

本実施の形態では、カバー蓋203が開放されていないと判断した場合にただちに高速POST1または高速POST2を実行しないで、内部デバイスへのアクセスの可能性をさらに判断して信頼性の高い基本POSTを実行する必要性の有無を判断する。ここで、ノートPC10のメインテナンス・マニュアルでは、内部デバイスの構成を変更する際には、電池パック41およびAC/DCアダプタ45を取り外して電気的に安全なG3ステートにしてから筐体を開放するように定めている。   In the present embodiment, when it is determined that the cover lid 203 is not opened, the high-speed POST1 or the high-speed POST2 is not executed immediately, but the possibility of access to the internal device is further determined to determine the basic POST with high reliability. Determine if there is a need to do so. Here, in the maintenance manual of the notebook PC 10, when changing the configuration of the internal device, the battery pack 41 and the AC / DC adapter 45 are removed to be in an electrically safe G3 state, and then the housing is opened. It is stipulated in.

本実施の形態ではユーザがメインテナンス・マニュアルに従って内部デバイスにアクセスする蓋然性を利用して、カバー蓋203の開放を検出しない場合に、ブロック363、365、369の手順を実行してノートPC10がG3ステートに遷移したか否かおよびG3ステートに遷移した理由が内部デバイスへのアクセスを目的としていたか否かを判断する。ブロック363では、POST選択コード105はPMC31のG3検出レジスタ32を参照して、前回の起動から今回の起動までの間にノートPC10がG3ステートに遷移したか否かを確認する。レジスタ32のG3ビットが解除されている場合は、G3ステートに遷移したことになるのでブロック365に移行する。なお、G3ビットが解除されていることを確認したあとには、POST選択コード105は、次回の選択POSTのためにG3ビットを設定する。   In the present embodiment, when the opening of the cover lid 203 is not detected using the probability that the user accesses the internal device in accordance with the maintenance manual, the notebook PC 10 executes the steps of blocks 363, 365, and 369 to execute the G3 state. And whether or not the reason for transition to the G3 state was for the purpose of accessing the internal device. In block 363, the POST selection code 105 refers to the G3 detection register 32 of the PMC 31, and confirms whether the notebook PC 10 has transitioned to the G3 state between the previous activation and the current activation. If the G3 bit of the register 32 has been released, the transition to the G3 state has occurred, and the process moves to block 365. After confirming that the G3 bit is released, the POST selection code 105 sets the G3 bit for the next selection POST.

G3ビットが設定されているときは、ノートPC10の電池パック41またはAC/DCアダプタ45の少なくともいずれかは電力源として接続されていたことになり、内部デバイスの構成が変更された可能性は低いので、高速ブートを基本とするノードBの手順に移行する。ところでノートPC10がG3ステートに遷移するのは、ユーザが内部デバイスを交換するために、AC/DCアダプタ45と電池パック41を取り外す場合に限らない。ノートPC10が電池駆動の状態で使用されているときに電池パック41の電圧がクリティカル電圧まで低下すると、電池パック41は出力を停止するためノートPC10はG3ステートに遷移する。   When the G3 bit is set, it means that at least one of the battery pack 41 and the AC / DC adapter 45 of the notebook PC 10 is connected as a power source, and it is unlikely that the configuration of the internal device has been changed. Therefore, the procedure shifts to the procedure of the node B based on the high-speed boot. Incidentally, the transition of the notebook PC 10 to the G3 state is not limited to the case where the user removes the AC / DC adapter 45 and the battery pack 41 in order to replace the internal device. If the voltage of the battery pack 41 decreases to the critical voltage when the notebook PC 10 is being used in a battery-driven state, the battery pack 41 stops outputting and the notebook PC 10 transitions to the G3 state.

また、ノートPC10がSxステートに遷移しているときであってもAC/DCアダプタ45が接続されていないときは、待機電力の消費で電池パック41の電圧がクリティカル電圧まで低下してG3ステートに遷移する場合がある。このように電池パック41の電圧がクリティカル電圧まで低下したことによるG3ステートへの遷移は、内部デバイスのアクセスとは無関係に起こり得る現象である。   Even when the notebook PC 10 is in the Sx state, when the AC / DC adapter 45 is not connected, the battery pack 41 voltage drops to the critical voltage due to standby power consumption and enters the G3 state. There may be transitions. Thus, the transition to the G3 state due to the voltage of the battery pack 41 being lowered to the critical voltage is a phenomenon that can occur regardless of the access of the internal device.

ブロック365でPOST選択コード105は、S0_BATT_Lowビット155を確認する。S0_BATT_Lowビット155が設定されているときは電池パック41の電圧がS0ステートで徐々にクリティカル電圧まで低下してG3ステートに遷移したことを意味し、内部デバイスにアクセスした可能性は低いといえるためブロック367に移行する。ブロック365でS0_BATT_Lowビット155が設定されていないときは、突然電池パック41が外されて内部デバイスへのアクセスがされた可能性もあるが、Sxステートで徐々にクリティカル電圧まで低下してG3ステートに遷移した可能性も残るためさらにブロック369に移行する。   In block 365, the POST selection code 105 confirms the S0_BATT_Low bit 155. When the S0_BATT_Low bit 155 is set, it means that the voltage of the battery pack 41 has gradually decreased to the critical voltage in the S0 state and transitioned to the G3 state. 367. If the S0_BATT_Low bit 155 is not set in block 365, the battery pack 41 may have been suddenly removed and access to the internal device may have occurred. Since the possibility of the transition remains, the process proceeds to block 369.

ブロック369でPOST選択コード105は、Sx_BATT_Lowビット157を確認する。Sx_BATT_Lowビット157が設定されているときはSxステートで電池パック41の電圧が徐々にクリティカル電圧まで低下してG3ステートに遷移したことを意味し、内部デバイスにアクセスした可能性は低いといえるためブロック371に移行する。ブロック369でSx_BATT_Lowビット157が設定されていないときは、ブロック361からブロック369までのパスに基づいて判断すれば突然電池パック41が外された可能性が高い。そして、突然電池パック41が外された場合は、内部デバイスにアクセスがあった可能性が高いのでノートAに移行する。   At block 369, the POST selection code 105 confirms the Sx_BATT_Low bit 157. When the Sx_BATT_Low bit 157 is set, it means that the voltage of the battery pack 41 gradually decreases to the critical voltage in the Sx state and transitions to the G3 state. 371. When the Sx_BATT_Low bit 157 is not set in the block 369, it is highly possible that the battery pack 41 is suddenly removed based on the determination from the block 361 to the block 369. Then, when the battery pack 41 is suddenly removed, there is a high possibility that the internal device has been accessed, and the process proceeds to the note A.

ブロック367とブロック371は、いずれも電池パック41の電圧がクリティカル電圧まで低下したときに、基本POST、高速POST1または高速POST2のいずれを実行するかを選択する手順を示す。POST選択コード105は、ブロック367でRTCメモリ22のS0高速POSTビット143を参照し、ブロック371でSx高速POSTビット145を参照してノードAまたはノードBのいずれを実行するかを選択する。   Both block 367 and block 371 show a procedure for selecting whether to execute basic POST, high-speed POST 1 or high-speed POST 2 when the voltage of the battery pack 41 drops to the critical voltage. The POST selection code 105 refers to the S0 fast POST bit 143 of the RTC memory 22 at block 367 and refers to the Sx fast POST bit 145 at block 371 to select whether to execute node A or node B.

図8は、基本POSTの実行を原則とする手順を示すフローチャートである。図7の手順で示したように基本POSTコード107は、内部デバイスの構成が変更された可能性が高いときに実行される。基本POSTコード107を実行する場合には、構成が変更された内部デバイスをできるだけ短時間で検出してその検査と初期化を終了できることが望ましい。そのために、基本POSTコード107を実行する場合にもいくつかの手順を省略して行うことができる。   FIG. 8 is a flowchart showing a procedure based on the execution of the basic POST. As shown in the procedure of FIG. 7, the basic POST code 107 is executed when there is a high possibility that the configuration of the internal device has been changed. When the basic POST code 107 is executed, it is desirable to be able to detect the internal device whose configuration has been changed in as short a time as possible and complete its inspection and initialization. Therefore, some procedures can be omitted when the basic POST code 107 is executed.

ブロック401では、POST選択コード105から基本POSTコード107に動作が移る。基本POSTコード107は、最初にRTCメモリ22の完全基本POSTビット147を確認する。完全基本POSTビット147が設定されている場合は、ブロック403に移行して基本POSTコード107をすべて実行してデバイスの検出、検査、および初期化を行い、その後ブロック417に移行してOSをロードする。   In block 401, the operation shifts from the POST selection code 105 to the basic POST code 107. The basic POST code 107 first confirms the complete basic POST bit 147 of the RTC memory 22. If the complete basic POST bit 147 is set, go to block 403 to execute all basic POST codes 107 to detect, inspect, and initialize the device, then go to block 417 to load the OS To do.

ブロック401で完全基本POSTビット147が設定されていないときは、ブロック405ですべての内部デバイスに対して検査だけを行う。ブロック407で基本POSTコード107は、すべての内部デバイスを検査してエラーが発生しない場合は、ブロック409に移行して、データ領域53に記憶されていたパラメータをリストアしてからブロック417に移行する。ブロック407でエラーが発生したときは、ブロック411に移行して完全基本POSTビット147を設定しユーザにエラーを表示する。   If the complete basic POST bit 147 is not set at block 401, only the internal device is tested at block 405. In block 407, if the basic POST code 107 checks all internal devices and no error occurs, the process proceeds to block 409, restores the parameters stored in the data area 53, and then proceeds to block 417. . If an error occurs in block 407, the process moves to block 411 to set the complete basic POST bit 147 and display the error to the user.

ブロック413では、ユーザはカバー蓋203を開放して、構成を変更した内部デバイスに異常があれば処置をして再起動する。その後は、ブロック351からの手順が開始される。そして、ブロック401では、完全基本POSTビット147が設定されているためブロック403で基本POSTコード107が完全に実行される。   In block 413, the user opens the cover lid 203, takes action if there is an abnormality in the internal device whose configuration has been changed, and restarts. Thereafter, the procedure from block 351 is started. In block 401, since the complete basic POST bit 147 is set, the basic POST code 107 is completely executed in block 403.

図9は、高速POSTを実行する手順を示すフローチャートである。ブロック453では、POST選択コード105から図7のブロック367、371で選択された高速POSTコード109または111に動作が移る。高速POST1コード109に動作が移った場合は、ブロック457で所定のデバイスに対して検査と初期化が行われる。ブロック459で高速POST1コード109がエラーを検出したときはブロック451に移行する。ブロック451では、基本POSTコード107に動作が移り、基本POSTコード107が完全に実行されてからブロック455に移行する。   FIG. 9 is a flowchart showing a procedure for executing the high-speed POST. In block 453, the operation shifts from the POST selection code 105 to the high-speed POST code 109 or 111 selected in blocks 367 and 371 in FIG. If operation has moved to the fast POST1 code 109, block 457 examines and initializes the given device. When the high-speed POST1 code 109 detects an error in block 459, the process proceeds to block 451. In block 451, the operation moves to the basic POST code 107, and after the basic POST code 107 is completely executed, the operation moves to block 455.

ブロック459でエラーが検出されないときは、ブロック455に移行する。ブロック455では、OSおよびアプリケーション・プログラムがロードされる。ブロック453で高速POST2コード111に動作が移った場合は、ブロック453でメイン・メモリ15、データ領域53またはHDD23などに記憶されていたパラメータがリストアされてブロック455に移行する。   If no error is detected in block 459, the process moves to block 455. At block 455, the OS and application programs are loaded. When the operation moves to the high-speed POST2 code 111 in block 453, the parameters stored in the main memory 15, the data area 53, the HDD 23, or the like are restored in block 453, and the processing moves to block 455.

図7のブロック363、365、367の手順は、ブロック361において実際にカバー蓋203が開放されたにもかかわらず開放検出回路151がそれを検出しないという誤りを補完する意義がある。これは図5に示したカバー蓋203の開放を検出する回路の構造では、実際にネジ205が結合しているにもかかわらず結合していないという出力をする可能性が小さいためである。本発明では開放検出回路151が、カバー蓋203が閉じているにもかかわらず、開放したと出力する誤りを図7のブロック363、365、367の手順を利用して補完することもできる。   The procedure of blocks 363, 365, and 367 in FIG. 7 is meaningful to compensate for an error that the open detection circuit 151 does not detect the cover lid 203 that is actually opened in the block 361. This is because the structure of the circuit for detecting the opening of the cover lid 203 shown in FIG. 5 is less likely to output that the screw 205 is not connected although it is actually connected. In the present invention, the error that the opening detection circuit 151 outputs when the cover lid 203 is closed even when the cover lid 203 is closed can be supplemented using the procedure of blocks 363, 365, and 367 in FIG.

具体的には、ブロック361でカバー蓋203が開放したと判断したときにただちにノードAに移行しないで、ブロック363からブロック371までのパスに移行する。そして、ブロック367、369、371を経由してノートAに移行するようにすれば、カバー蓋203が開放したと判断する誤りを前回の起動から今回の起動までの間のG3ステートへの遷移の有無および電池パック41の状態を判断して補完することができる。   Specifically, when it is determined in block 361 that the cover lid 203 has been opened, the process proceeds to the path from block 363 to block 371 without immediately shifting to node A. Then, if the transition to the note A is made via the blocks 367, 369, 371, the error that determines that the cover lid 203 has been opened is the transition to the G3 state from the previous activation to the current activation. The presence or absence and the state of the battery pack 41 can be determined and complemented.

これまで本発明について図面に示した特定の実施の形態をもって説明してきたが、本発明は図面に示した実施の形態に限定されるものではなく、本発明の効果を奏する限り、これまで知られたいかなる構成であっても採用することができることはいうまでもないことである。   Although the present invention has been described with the specific embodiments shown in the drawings, the present invention is not limited to the embodiments shown in the drawings, and is known so far as long as the effects of the present invention are achieved. It goes without saying that any configuration can be adopted.

10…ノートPC
22…RTCメモリ
29…エンベデッド・コントローラ
30…EEPROM
33…BIOS_ROM
39…開放センサ
51…BIOS領域
53…データ領域
55…ブート・ブロック
57…システム・ブロック
10 ... Notebook PC
22 ... RTC memory 29 ... Embedded controller 30 ... EEPROM
33 ... BIOS_ROM
39 ... Open sensor 51 ... BIOS area 53 ... Data area 55 ... Boot block 57 ... System block

Claims (15)

第1のPOSTコードと該第1のPOSTコードよりも短い時間で処理を終了することができる第2のPOSTコードを実装し、電力源が交流電源と2次電池で構成されたコンピュータがパワー・オフ状態からパワー・オン状態に移行する方法であって、
前記コンピュータが、プロセッサの前回のリセットから今回のリセットまでの間に前記交流電源と前記2次電池がいずれも電力供給を停止したときに、前記2次電池の電圧に基づいて前記コンピュータの筐体に収納された内部デバイスに対する物理的なアクセスの可能性を判断するステップと、
前記物理的なアクセスの可能性が高いと判断したときに前記第1のPOSTコードを実行するステップと、
前記物理的なアクセスの可能性が低いと判断したときに前記第2のPOSTコードを実行するステップと
を有する方法。
A computer in which a first POST code and a second POST code capable of completing processing in a shorter time than the first POST code are mounted, and a power source is constituted by an AC power source and a secondary battery A method of transitioning from an off state to a power on state,
When the computer stops supplying power between the AC power supply and the secondary battery between the previous reset of the processor and the current reset , the casing of the computer is based on the voltage of the secondary battery. Determining the possibility of physical access to the internal device housed in
Executing the first POST code when determining that the possibility of physical access is high;
Executing the second POST code when determining that the possibility of physical access is low.
前記物理的なアクセスの可能性を判断するステップが、前記パワー・オン状態で前記2次電池の電圧が所定値未満に低下したときに前記物理的なアクセスの可能性が低いと判断する請求項1に記載の方法。The step of determining the possibility of physical access determines that the possibility of physical access is low when the voltage of the secondary battery drops below a predetermined value in the power-on state. The method according to 1. 前記物理的なアクセスの可能性を判断するステップが、前記パワー・オン状態で前記2次電池の電圧が前記所定値以上に維持され、かつ、前記パワー・オフ状態で前記2次電池の電圧が所定値未満に低下したときに前記物理的なアクセスの可能性が低いと判断する請求項2に記載の方法。The step of determining the possibility of physical access is such that the voltage of the secondary battery is maintained above the predetermined value in the power-on state, and the voltage of the secondary battery is in the power-off state. The method according to claim 2, wherein it is determined that the possibility of the physical access is low when it falls below a predetermined value. 前記コンピュータが前記第2のPOSTコードよりも短い時間で処理を終了することができる第3のPOSTコードを実装し、
前記第2のPOSTコードまたは前記第3のPOSTコードのいずれかを選択するステップを有する請求項1から請求項3のいずれかに記載の方法。
Implementing a third POST code that allows the computer to finish processing in a shorter time than the second POST code;
The method according to claim 1, further comprising a step of selecting either the second POST code or the third POST code.
前記パワー・オン状態で外部デバイスが接続されたか否かを判断するステップと、
前記外部デバイスが接続されたと判断したときに前記第1のPOSTコードを実行するステップと
を有する請求項1から請求項4のいずれかに記載の方法。
Determining whether an external device is connected in the power-on state; and
The method according to any one of claims 1 to 4 , further comprising: executing the first POST code when it is determined that the external device is connected.
前記筐体のカバー蓋が開放されたと判断したときに前記第1のPOSTコードを実行するステップを有する請求項1から請求項5のいずれかに記載の方法。 The method according to claim 1, further comprising executing the first POST code when it is determined that a cover lid of the housing is opened. 前記カバー蓋を取り付けるネジが外されたときに前記カバー蓋が開放されたと判断する請求項6に記載の方法。 The method according to claim 6 , wherein the cover lid is determined to be opened when a screw for attaching the cover lid is removed. 前記第1のPOSTコードを実行するステップが、
前記内部デバイスの検査だけを実行するステップと、
前記内部デバイスの検査の結果エラーが発生したときに前記エラーを表示するステップと、
前記エラーを表示してから再起動されたときに前記第1のPOSTコードをすべて実行するステップと
を有する請求項1から請求項7のいずれかに記載の方法。
Executing the first POST code comprises:
Performing only the inspection of the internal device;
Displaying the error when an error occurs as a result of the inspection of the internal device;
The method according to claim 1, further comprising: executing all of the first POST code when restarted after displaying the error.
筐体に複数の内部デバイスを収納し、電力源に交流電源と2次電池を含むコンピュータが起動する方法であって、
前記複数の内部デバイスの検査と初期化をしてパラメータを設定する第1のコードと前記第1のコードよりも簡易な手順でパラメータを設定する第2のコードを用意するステップと、
プロセッサがリセット信号を受け取るステップと、
前記コンピュータが、前記交流電源と前記2次電池が前記コンピュータに対する電力供給を停止したときに前記2次電池の電圧に基づいて前記内部デバイスに対する物理的なアクセスの可能性を判断するステップと、
前記物理的なアクセスの可能性が高いと判断したときに前記第1のコードを実行するステップと、
前記物理的なアクセスの可能性が低いと判断したときに前記第2のコードを実行するステップと
を有する方法。
A method in which a plurality of internal devices are housed in a housing and a computer including an AC power source and a secondary battery as a power source starts
Preparing a first code for setting parameters by inspecting and initializing the plurality of internal devices, and a second code for setting parameters by a simpler procedure than the first code;
Receiving a reset signal by the processor;
The computer determining the possibility of physical access to the internal device based on the voltage of the secondary battery when the AC power source and the secondary battery stop supplying power to the computer ;
And executing the first code when it is determined that there is a high possibility of the physical access,
Method comprising the step of executing the second code when it is determined that there is a low possibility of the physical access.
前記物理的なアクセスの可能性を判断するステップが、Determining the physical access possibility;
パワー・オン状態で前記2次電池の電圧が所定値未満に低下したか否かを判断するステップを含む請求項9に記載の方法。  The method of claim 9, further comprising determining whether the voltage of the secondary battery has dropped below a predetermined value in a power-on state.
前記物理的なアクセスの可能性を判断するステップが、Determining the physical access possibility;
パワー・オフ状態で前記2次電池の電圧が所定値未満に低下したか否かを判断するステップを含む請求項10に記載の方法。  The method of claim 10, further comprising determining whether the voltage of the secondary battery has dropped below a predetermined value in a power-off state.
筐体に内部デバイスを収納し、電池パックおよびAC/DCアダプタから電力の供給を受ける携帯式コンピュータであって、
プロセッサと、
前記プロセッサがリセットされたときに前記内部デバイスにパラメータを設定するように前記コンピュータを機能させる基本POSTコードと、
前記プロセッサがリセットされたときに前記基本POSTコードよりも短時間でパラメータを設定するように前記コンピュータを機能させる高速POSTコードと、
前記プロセッサの前回のリセットから今回のリセットまでの間に前記電池パックおよび前記AC/DCアダプタが電力供給を停止したときに、前記電池パックの電圧に基づいて前記内部デバイスに対する物理的なアクセスの可能性を判断し、前記物理的なアクセスの可能性があると判断したときに前記基本POSTコードを選択し前記物理的なアクセスの可能性がないと判断したときに前記高速POSTコードを選択する機能を前記コンピュータに実現させるPOST選択コードと
を有する携帯式コンピュータ。
A portable computer that houses an internal device in a housing and receives power from a battery pack and an AC / DC adapter,
A processor;
Basic POST code that causes the computer to function to set parameters in the internal device when the processor is reset;
A high-speed POST code that causes the computer to function to set parameters in a shorter time than the basic POST code when the processor is reset;
Possible physical access to the internal device based on the voltage of the battery pack when the battery pack and the AC / DC adapter stop supplying power between the last reset of the processor and the current reset A function for selecting the basic POST code when it is determined that there is a possibility of physical access and selecting the high-speed POST code when it is determined that there is no possibility of physical access A portable computer having a POST selection code for causing the computer to realize
前記POST選択コードが、パワー・オン状態における前記電池パックの電圧が所定値未満に低下したときに前記物理的なアクセスの可能性がないと判断する機能を前記コンピュータに実現させる請求項12に記載の携帯式コンピュータ。 13. The computer according to claim 12, wherein the POST selection code causes the computer to realize a function of determining that there is no possibility of the physical access when the voltage of the battery pack in a power-on state falls below a predetermined value. Portable computer. 前記POST選択コードが、パワー・オフ状態における前記電池パックの電圧が所定値未満に低下したときに前記物理的なアクセスの可能性がないと判断する機能を前記コンピュータに実現させる請求項13に記載の携帯式コンピュータ。14. The computer according to claim 13, wherein the POST selection code causes the computer to realize a function of determining that there is no possibility of the physical access when a voltage of the battery pack in a power-off state decreases below a predetermined value. Portable computer. 2次電池から電力の供給を受けることが可能で筐体に内部デバイスを収納するコンピュータが起動したときに、前記コンピュータに、
前回の起動から今回の起動までの間に前記コンピュータの電力源が電力供給を停止したときに前記2次電池の電圧に基づいて前記内部デバイスに対する物理的なアクセスの可能性を検出するステップと、
前記物理的なアクセスの可能性を検出したときに前記内部デバイスの検査と初期化を実行するステップと、
前記物理的なアクセスの可能性を検出しないときに少なくとも前記検査と前記初期化の一部を省略して不揮発性メモリに記憶していたパラメータをリストアするステップと
を含む処理を実行させるためのBIOSコード。
When a computer capable of receiving power from a secondary battery and storing an internal device in a housing is started,
Detecting the possibility of physical access against the internal device based on a voltage of the secondary battery when the power source of the computer until the current boot from the previous boot stops power supply ,
Performing inspection and initialization of the internal device upon detecting the possibility of physical access;
A BIOS for executing a process including at least the check and a step of restoring a parameter stored in a nonvolatile memory by omitting a part of the initialization when the possibility of physical access is not detected code.
JP2011115540A 2011-05-24 2011-05-24 Method and computer for reducing start-up reliability and POST time Active JP5378451B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011115540A JP5378451B2 (en) 2011-05-24 2011-05-24 Method and computer for reducing start-up reliability and POST time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011115540A JP5378451B2 (en) 2011-05-24 2011-05-24 Method and computer for reducing start-up reliability and POST time

Publications (2)

Publication Number Publication Date
JP2012243237A JP2012243237A (en) 2012-12-10
JP5378451B2 true JP5378451B2 (en) 2013-12-25

Family

ID=47464838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011115540A Active JP5378451B2 (en) 2011-05-24 2011-05-24 Method and computer for reducing start-up reliability and POST time

Country Status (1)

Country Link
JP (1) JP5378451B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170546A (en) * 2017-12-15 2018-06-15 山东超越数控电子股份有限公司 A kind of repositioning method based on EC

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6291983B2 (en) * 2014-04-08 2018-03-14 株式会社リコー Recovery device and recovery method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1088218C (en) * 1999-11-14 2002-07-24 邓国顺 Electronic flash storage method and device for data processing system
JP2002082808A (en) * 2000-09-07 2002-03-22 Seiko Epson Corp Method for controlling program
JP4302922B2 (en) * 2001-12-21 2009-07-29 キヤノン電子株式会社 Electronic device, electronic device control method, and electronic device control program
TW588284B (en) * 2002-11-12 2004-05-21 Mitac Technology Corp Computer real-time power-on system and method
JP2005234872A (en) * 2004-02-19 2005-09-02 Seiko Epson Corp Computer, computer start method, bios program and information storage medium
JP4846553B2 (en) * 2006-12-20 2011-12-28 株式会社東芝 Resume method, program, and information processing apparatus
JP4871806B2 (en) * 2007-07-23 2012-02-08 東芝テック株式会社 Data processing device
JP4715834B2 (en) * 2007-11-13 2011-07-06 コニカミノルタビジネステクノロジーズ株式会社 Information processing apparatus and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170546A (en) * 2017-12-15 2018-06-15 山东超越数控电子股份有限公司 A kind of repositioning method based on EC

Also Published As

Publication number Publication date
JP2012243237A (en) 2012-12-10

Similar Documents

Publication Publication Date Title
US9098305B2 (en) Computer system and bootup and shutdown method thereof
JP5711160B2 (en) Method and computer for protecting passwords
US9542267B2 (en) Enhanced recovery mechanisms
TWI420291B (en) Apparatus and method to provide computer platform hibernate and resume
KR100368079B1 (en) Computer and power control method for computer
KR101518323B1 (en) Method and system for providing hybrid-shutdown and fast startup processes
US20140143477A1 (en) Computer system and data recovery method thereof
JP5715658B2 (en) Method for constructing a safe operating environment in a computer, computer program, and computer
JP5681689B2 (en) Method and computer for shortening recovery time from power saving state
US20070130480A1 (en) System and method for enabling fast power-on times when using a large operating system to control an instrumentation system
JP2007140942A (en) Information processor and processor control method
EP2843502B1 (en) Information processing device, information processing method, and program
TWI534707B (en) Computer system, shutdown and boot method thereof
US20090132798A1 (en) Electronic device and method for resuming from suspend-to-memory state thereof
JP2006259903A (en) Information processing device and starting method
JP5378451B2 (en) Method and computer for reducing start-up reliability and POST time
TWI526817B (en) Computer system, adaptable hibernation control module and control method thereof
JP2010262659A (en) Information processing apparatus and power saving control method
US10042650B2 (en) Computer startup method, startup apparatus, state transition method and state transition apparatus
US11163354B2 (en) Information processing apparatus, and control method
JP2006285674A (en) Information processing apparatus and boot processing control method in information processing apparatus
JP5894044B2 (en) Method and portable computer for storing data in a hybrid disk drive
JP2009151489A (en) Information processor
JP5764114B2 (en) Method for resuming portable computer from power saving state, power state control method, and portable computer
US11481021B2 (en) Information processing apparatus and control method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130710

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130730

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130829

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130924

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130925

R150 Certificate of patent or registration of utility model

Ref document number: 5378451

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250