[go: up one dir, main page]

JPH06180668A - Computer system - Google Patents

Computer system

Info

Publication number
JPH06180668A
JPH06180668A JP4331801A JP33180192A JPH06180668A JP H06180668 A JPH06180668 A JP H06180668A JP 4331801 A JP4331801 A JP 4331801A JP 33180192 A JP33180192 A JP 33180192A JP H06180668 A JPH06180668 A JP H06180668A
Authority
JP
Japan
Prior art keywords
smi
computer system
suspend
device driver
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4331801A
Other languages
Japanese (ja)
Inventor
Makoto Arai
信 新井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP4331801A priority Critical patent/JPH06180668A/en
Priority to DE4342220A priority patent/DE4342220A1/en
Publication of JPH06180668A publication Critical patent/JPH06180668A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Memory System (AREA)

Abstract

PURPOSE:To efficiently extend a power management function and control periph eral equipments by effectively utilizing a memory to be overlaid on a main memory. CONSTITUTION:A device driver for an extension suspending/resuming processing is stored inside an SM-RAM 14 utilized for saving a system status and the suspending/resuming processing of an optional device not supported by BIOS is realized by the device driver. In this case, the SM-RAM 14 shares a prescribed address space with the main memory 13 and becomes accessible only when SMI signals are inputted. Thus, even when the device driver for the extension suspending/resuming processing is incorporated, a required memory space is not increased. Thus, the function extension of a suspending/resuming function can be realized in a state where memory resources are effectively utilized.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、ラップトップタイプ
またはノートブックタイプのポータブルコンピュータや
ペン入力型ポータブルコンピュータ等のコンピュータシ
ステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system such as a laptop type or notebook type portable computer and a pen input type portable computer.

【0002】[0002]

【従来の技術】近年、携帯可能なラップトップタイプま
たはノートブックタイプのポータブルコンピュータや、
ペン入力型ポータブルコンピュータが種々開発されてい
る。
2. Description of the Related Art In recent years, portable laptop or notebook type portable computers,
Various pen input type portable computers have been developed.

【0003】この種のポータブルコンピュータは、各種
周辺機器が装着できるように構成されている。周辺機器
には、コンピュータ本体に標準装備されるものや、オプ
ション接続されるものとがある。これら周辺機器の管理
は、メインメモリの特定のアドレス空間に常駐されるデ
バイスドライバと称される専用のプログラムによって実
行される。
This type of portable computer is constructed so that various peripheral devices can be attached thereto. Some peripheral devices are standard equipment in the computer main body, and some are optionally connected. The management of these peripheral devices is executed by a dedicated program called a device driver resident in a specific address space of the main memory.

【0004】また、この種のポータブルコンピュータに
は、バッテリ駆動可能な時間を延ばすために、電力節約
のための電力管理機能が設けられている。この電力管理
機能は、種々のパーワーセーブモードを提供する。
In addition, this type of portable computer is provided with a power management function for saving power in order to extend the battery-operable time. This power management function provides various power save modes.

【0005】最も電力消費の少ないパーワーセーブモー
ドの1つとして、サスペンドモードがある。このサスペ
ンドモードの時は、アプリケーションプログラムの再ス
タートに必要なデータが記憶されているメモリ以外は、
コンピュータシステム内のほとんど全てのユニットはパ
ワーダウンされる。
A suspend mode is one of the power saving modes that consumes the least power. In this suspend mode, except for the memory that stores the data required to restart the application program,
Almost every unit in the computer system is powered down.

【0006】メモリにセーブされるデータは、コンピュ
ータシステムがサスペンドモードに設定される直前のC
PUのステータスおよび各種周辺LSIのステータスで
ある。
The data saved in the memory is C just before the computer system is set to the suspend mode.
The status of PU and the status of various peripheral LSIs.

【0007】ステータスのセーブは、BIOS(基本入
出力プログラム)に組み込まれたサスペンドルーチンに
よって実行される。BIOSはオペレーティングシステ
ムからの要求にしたがってシステム内のハードウェアを
制御するためのものであり、システム内の各種ハードウ
ェアデバイスを制御するプログラム群を含んでいる。
The saving of the status is executed by a suspend routine incorporated in the BIOS (basic input / output program). The BIOS is for controlling the hardware in the system according to a request from the operating system, and includes a group of programs for controlling various hardware devices in the system.

【0008】BIOSのサスペンドルーチンは、システ
ム管理割り込み(SMI;SystemManagement Interr
upt)と称される割り込み信号に応答して起動されるよ
うに構成されている。システム管理割り込みは最優先度
の割り込みであるので、この割り込みを利用することに
より迅速なサスペンド処理が可能となる。
The BIOS suspend routine is a system management interrupt (SMI).
It is configured to be activated in response to an interrupt signal called upt). Since the system management interrupt is the highest priority interrupt, the use of this interrupt enables quick suspend processing.

【0009】このように、システム管理割り込みは、サ
スペンド処理等の電力制御処理の起動には非常に有効で
ある。しかしながら、システム管理割り込みは、メイン
メモリに常駐されているプログラムを利用した処理、例
えばデバイスドライバを利用した周辺機器の制御処理を
起動させるには不向きである。
As described above, the system management interrupt is very effective for activating power control processing such as suspend processing. However, the system management interrupt is not suitable for activating a process using a program resident in the main memory, for example, a peripheral device control process using a device driver.

【0010】なぜなら、システム管理割り込みが発生し
た際には、SM−RAM(SystemManagement RAM)
と称されるメモリがメインメモリにオーバーレイされ、
これによってメインメモリのアドレス空間の一部がアク
セス禁止されてしまうからである。このため、もしその
アクセス禁止されたアドレス空間上にデバイスドライバ
が常駐されていると、周辺機器に対する制御を実行でき
なくなる。
This is because when a system management interrupt occurs, SM-RAM (System Management RAM)
The memory called is overlaid on the main memory,
This is because a part of the address space of the main memory is prohibited. Therefore, if the device driver resides in the access-prohibited address space, control of the peripheral device cannot be executed.

【0011】また、最近のコンピュータでは、オプショ
ン接続されるハードウェアデバイスのサスペンド処理を
サポートするために、サスペンド処理の機能拡張が要求
されている。このサスペンド処理の機能拡張は、例えば
各ハードウェアデバイスの電源管理を実行するプログラ
ムをBIOS側に追加することによって実現することが
できる。
Further, in recent computers, in order to support the suspend processing of a hardware device connected as an option, it is required to extend the function of the suspend processing. The function expansion of the suspend process can be realized by adding a program for executing power management of each hardware device to the BIOS side.

【0012】しかしながら、BIOSを記憶するための
メモリ(BIOS−ROM)に割り当て可能なアドレス
空間には、制限がある。また、オプションデバイスは必
要に応じて接続されるものであるので、このようなオプ
ションデバイスのサスペンド処理を実行するプログラム
についてまで標準装備することはメモリ資源の浪費につ
ながる。
However, there is a limitation on the address space that can be assigned to the memory (BIOS-ROM) for storing the BIOS. Further, since the optional device is connected as necessary, it is wasteful of memory resources to equip such a program for executing the suspend process of the optional device as standard equipment.

【0013】さらに、最近では、電力制御機能のための
専用のドライバプログラムを持つオペレーティングシス
テムが開発されている。このドライバプログラムはBI
OSと連動してシステムの電力管理を行なうためのもの
であり、例えば、米インテル社と米マイクロソフト社に
より開発されたAPM(Advanced Power Managemen
t )ドライバが良く知られている。
Further, recently, an operating system having a dedicated driver program for the power control function has been developed. This driver program is BI
This is for performing system power management in conjunction with the OS. For example, APM (Advanced Power Management) developed by Intel Corp. and Microsoft Corp.
t) The driver is well known.

【0014】米マイクロソフト社のMS−WINDOW
Sのようなオペレーテイングシステムは、キー入力待ち
等のCPUのアイドルステートを容易且つ正確に検出す
ることができる。したがって、このようなオペレーテイ
ングシステムによって提供される電力制御機能を利用す
ると、システムのアイドルステートの検出に応答して、
ハードウェアの電力制御を行なうと行った機能を容易に
実現することができる。
Microsoft MS-WINDOW
An operating system such as S can easily and accurately detect the idle state of the CPU such as waiting for a key input. Therefore, utilizing the power control features provided by such operating systems, in response to detecting the idle state of the system,
When the power control of hardware is performed, the performed function can be easily realized.

【0015】このようなオペレーテイングシステムの電
力制御機能は、BIOSの提供するハードウェア制御機
能と連携することにより、システム固有のハードウェア
構成にも対応できるようになる。BIOSの提供するハ
ードウェア制御機能との連携を図るためには、オペレー
テイングシステムの電力制御機能とBIOSとの間のイ
ンターフェース機能を設ける必要がある。ところが、前
述したように、BIOS側にインターフェース機能を実
現するためのプログラムを追加することはメモリ空間の
問題から実際上困難である。
By cooperating with the hardware control function provided by the BIOS, the power control function of such an operating system can be adapted to a system-specific hardware configuration. In order to cooperate with the hardware control function provided by the BIOS, it is necessary to provide an interface function between the power control function of the operating system and the BIOS. However, as described above, it is actually difficult to add a program for realizing the interface function on the BIOS side due to the problem of the memory space.

【0016】[0016]

【発明が解決しようとする課題】従来のシステムでは、
メインメモリにオーバ−レイするメモリを使用した場合
に、デバイスドライバが起動できず周辺機器の制御が行
なえない欠点があった。また、BIOSによって提供さ
れる電力管理機能の機能拡張を図ることも困難であっ
た。
In the conventional system,
When an overlay memory is used as the main memory, the device driver cannot be started and the peripheral devices cannot be controlled. In addition, it is difficult to expand the function of the power management function provided by the BIOS.

【0017】この発明はこのような点に鑑みてなされた
もので、メインメモリにオーバ−レイするメモリを有効
利用できるようにし、周辺機器制御や電力管理機能の拡
張を効率良く実現することができるコンピュータシステ
ムを提供することを目的とする。
The present invention has been made in view of the above circumstances, and makes it possible to effectively use a memory that overlays a main memory, and efficiently implement peripheral device control and power management function expansion. The purpose is to provide a computer system.

【0018】[0018]

【課題を解決するための手段および作用】この発明は、
各種周辺機器が装着可能なコンピュータシステムにおい
て、メインメモリに割り当てられているアドレス空間の
一部がマッピングされ、所定の割り込み信号に応答して
アクセス許可されるオーバーレイメモリであって、前記
周辺機器を管理するためのデバイスドライバプログラム
を格納するオーバーレイメモリと、前記割り込み信号に
応答して、前記オーバーレイメモリに格納されている前
記デバイスドライバプログラムを起動し前記周辺機器に
対する制御を実行する手段とを具備することを第1の特
徴とする。
Means and Actions for Solving the Problems
In a computer system in which various peripheral devices can be mounted, a part of the address space allocated to the main memory is mapped, and an overlay memory that is permitted access in response to a predetermined interrupt signal and manages the peripheral devices. And a means for activating the device driver program stored in the overlay memory and controlling the peripheral device in response to the interrupt signal. Is the first feature.

【0019】このコンピュータシステムにおいては、オ
ーバーレイメモリにデバイスドライバが格納されている
ので、そのオーバーレイメモリを利用した状態でデバイ
スドライバを起動することができる。このため、たとえ
メインメモリのアドレス空間上のデバイスドライバを起
動できなくても、必要な周辺機器に対する制御を実行で
きるようになる。
In this computer system, since the device driver is stored in the overlay memory, the device driver can be activated in a state where the overlay memory is used. Therefore, even if the device driver in the address space of the main memory cannot be started, it becomes possible to execute the control of the necessary peripheral device.

【0020】また、この発明は、各種オプションデバイ
スが接続可能なコンピュータシステムにおいて、メイン
メモリに割り当てられているアドレス空間の一部がマッ
ピングされ、所定の割り込み信号に応答してアクセス許
可されるオーバーレイメモリであって、前記オプション
デバイスのデータをセーブする拡張サスペンド処理を実
行するためのデバイスドライバプログラムを格納するオ
ーバーレイメモリと、前記コンピュータシステムのステ
ータスを前記オーバレイメモリにセーブし、前記コンピ
ュータシステムをパワーオフするサスペンド処理を実行
するサスペンド手段と、前記オーバーレイメモリに格納
されている前記デバイスドライバプログラムを起動し
て、前記オプションデバイスに対する拡張サスペンド処
理を実行する拡張サスペンド手段と、前記割り込み信号
に応答して、前記拡張サスペンド手段に前記拡張サスペ
ンド処理を実行させる手段と、前記拡張サスペンド手段
による拡張サスペンド処理の実行終了に応答して、前記
サスペンド手段に前記サスペンド処理を実行させる手段
とを具備することを第2の特徴とする。
Further, according to the present invention, in a computer system to which various optional devices can be connected, a part of the address space allocated to the main memory is mapped, and access is permitted in response to a predetermined interrupt signal. And an overlay memory storing a device driver program for executing an extended suspend process for saving the data of the optional device, and a status of the computer system is saved in the overlay memory and the computer system is powered off. Suspend means for executing a suspend process, and an extended suspend for executing an extended suspend process for the option device by activating the device driver program stored in the overlay memory. Suspending means for causing the extended suspending means to execute the extended suspend processing in response to the interrupt signal, and ending the execution of the extended suspend processing by the extended suspending means in response to the interrupt signal. The second feature is that it comprises a means for executing.

【0021】このコンピュータシステムにおいては、オ
ーバーレイメモリにオプションデバイスに対する拡張サ
スペンド処理のためのデバイスドライバプログラムが格
納されており、このプログラムによってサスペンド処理
の機能拡張が実現される。この場合、オーバーレイメモ
リはメインメモリのオバーレイであり、割り込み信号が
入力された際にメインメモリに割り当てられているアド
レス空間の一部がそのメモリ手段にマッピングされて、
アクセス許可される。このため、デバイスドライバプロ
グラムを組み込んでも、メインメモリのメモリ空間に何
ら影響は与えられない。したがって、サスペンド機能の
機能拡張を、メモリ資源を有効利用した状態で実現でき
るようになり、より効率の良い電力制御を行なうことが
できる。
In this computer system, the overlay memory stores a device driver program for extended suspend processing for an optional device, and this program realizes functional extension of the suspend processing. In this case, the overlay memory is an overlay of the main memory, and when the interrupt signal is input, a part of the address space allocated to the main memory is mapped to the memory means,
Access allowed. Therefore, even if the device driver program is incorporated, the memory space of the main memory is not affected at all. Therefore, the function extension of the suspend function can be realized while the memory resources are effectively used, and more efficient power control can be performed.

【0022】[0022]

【実施例】以下、図面を参照してこの発明の実施例を説
明する。図1には、この発明の一実施例に係わるポータ
ブルコンピュータのシステム構成が示されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows the system configuration of a portable computer according to an embodiment of the present invention.

【0023】このポータブルコンピュータは、液晶表示
パネルとこれに一体設けられた透明タブレットとを有す
るペン入力型のパーソナルコンピュータであり、このシ
ステムは、CPU11、入出力ゲートアレイ(I/O
GA)12、メインメモリ13、システム管理RAM
(SM−RAM)14を備えている。メインメモリ13
およびシステム管理RAM(SM−RAM)14は、ロ
ーカルバス1に接続されている。
This portable computer is a pen input type personal computer having a liquid crystal display panel and a transparent tablet provided integrally therewith, and this system includes a CPU 11 and an input / output gate array (I / O).
GA) 12, main memory 13, system management RAM
(SM-RAM) 14 is provided. Main memory 13
The system management RAM (SM-RAM) 14 is connected to the local bus 1.

【0024】また、このシステムには、BIOS−RO
M15、リアルタイムクロック(RTC)16、スーパ
ーインテグレーション回路(SI)26、液晶コントロ
ーラ(液晶CNT)27、第1,第2のICカードコン
トローラ(IC−CNT)28,29、キーボードコン
トローラ(キーボードCNT)30が設けられており、
これらはISA(International Standard Associa
tion)仕様のシステムバス2に接続されている。
The system also includes a BIOS-RO.
M15, real time clock (RTC) 16, super integration circuit (SI) 26, liquid crystal controller (liquid crystal CNT) 27, first and second IC card controllers (IC-CNT) 28 and 29, keyboard controller (keyboard CNT) 30. Is provided,
These are ISA (International Standard Associa)
option) system bus 2.

【0025】CPU11としては、米インテル社により
製造販売されているマイクロプロセッサ80386SL
またはその互換プロセッサが使用される。このCPU1
1は、異なる3つの動作モード、つまりリアルモード、
プロテクトモード、仮想86モードで動作できる。リア
ルモードは、最大で1Mバイトのメモリ空間をアクセス
できるモードであり、セグメントレジスタで表されるベ
ースアドレスからのオフセット値で物理アドレスが決定
される。プロテクトモードは1タスク当たり最大16M
バイトのメモリ空間をアクセスできるモードであり、デ
ィスクプリタテーブルと称されるアドレスマッピングテ
ーブルを用いて物理アドレスが決定される。仮想86モ
ードは、リアルモードで動作するように構成されたプロ
グラムをプロテクトモードで動作させるためのモードで
あり、リアルモードのプログラムはプロテクトモードに
おける1つのタスクとして扱われる。
The CPU 11 is a microprocessor 80386SL manufactured and sold by Intel Corporation of the United States.
Or its compatible processor is used. This CPU1
1 is three different operation modes, namely real mode,
It can operate in protected mode and virtual 86 mode. The real mode is a mode in which a maximum 1 Mbyte memory space can be accessed, and the physical address is determined by the offset value from the base address represented by the segment register. Up to 16M protect mode per task
This is a mode in which a memory space of bytes can be accessed, and a physical address is determined using an address mapping table called a descriptor table. The virtual 86 mode is a mode for operating a program configured to operate in the real mode in the protect mode, and the program in the real mode is treated as one task in the protect mode.

【0026】CPU11の持つ割り込みには、SMI
(SMI;System Management Interrupt)の他、
マスク不能割り込み(NMI;Non−Maskable Inter
rupt)、およびマスク可能割り込み(INTR;Maska
ble Interrupt)がある。SMIは、マスク不能割り込
みの一種であるが、前述のNMIやINTRよりも優先
度の高い、最優先度の割り込みであり、CPU11の割
り込み要求入力SMIをアクティブにすることによって
パワーセーブに関する種々のSMIサービスルーチンを
起動することができる。
The SMI is used as an interrupt for the CPU 11.
(SMI; System Management Interrupt)
Non-maskable interrupt (NMI)
rupt) and maskable interrupt (INTR; Maska)
ble Interrupt). The SMI is a kind of non-maskable interrupt, but it is the highest priority interrupt having a higher priority than the above-mentioned NMI and INTR, and various SMIs related to power saving are activated by activating the interrupt request input SMI of the CPU 11. Service routines can be invoked.

【0027】SMIサービスルーチンは、サスペンド処
理ルーチンとレジューム処理ルーチンに大別される。サ
スペンド処理ルーチンは前述したようにシステムをサス
ペンドモードに設定するためのものであり、ここでは、
SM−RAM14へのシステムステータスのセーブが実
行される。レジューム処理ルーチンは、システムをサス
ペンドモードから復帰させてサスペンドモード前の状態
からアプリケーションプログラムを再スタートさせるた
めのものであり、ここでは、セーブされているシステム
ステータスおよびユーザデータのリストアが実行され
る。
The SMI service routine is roughly classified into a suspend processing routine and a resume processing routine. The suspend process routine is for setting the system to suspend mode as described above.
The saving of the system status in the SM-RAM 14 is executed. The resume processing routine is for returning the system from the suspend mode and restarting the application program from the state before the suspend mode, in which the saved system status and user data are restored.

【0028】I/Oゲートアレイ12は、CPU11お
よびメモリのサポート機能を実現するための専用ロジッ
クであり、ローカルバス1に接続されたメインメモリ1
3、SM−RAM14、増設メモリカード25と、CP
U11との間の入出力制御を始め、システムバス2に接
続された各種ユニットとCPU11との間の入出力制御
を行なう。また、このI/Oゲートアレイ12には、シ
ステム制御に必要な機能を実現するためのユニット、つ
まり、直接メモリアクセス制御のためのDMAコントロ
ーラ、割り込みコントローラ(PIC;Programmable
InterruptController )、タイマ(PIT;Progr
ammable Interval Timer )、シリアルI/Oコント
ローラ(SIO;Serial Input/Output Controlle
r )が内蔵されている。
The I / O gate array 12 is a dedicated logic for realizing the support function of the CPU 11 and the memory, and is the main memory 1 connected to the local bus 1.
3, SM-RAM14, additional memory card 25, CP
Input / output control between U11 and various units connected to the system bus 2 and CPU 11 is performed. Further, the I / O gate array 12 is a unit for realizing a function necessary for system control, that is, a DMA controller for direct memory access control and an interrupt controller (PIC; Programmable).
Interrupt Controller, timer (PIT; Progr)
ammable Input Timer), serial I / O controller (SIO; Serial Input / Output Control)
r) is built in.

【0029】CPU11およびI/Oゲートアレイ12
間の通信は、専用のインターフェース線を介して実行さ
れる。CPU11とI/Oゲートアレイ12間のインタ
ーフェース信号には、例えば、CPU11のSMI機能
を制御するための信号等が含まれている。
CPU 11 and I / O gate array 12
Communication between them is performed via a dedicated interface line. Interface signals between the CPU 11 and the I / O gate array 12 include, for example, signals for controlling the SMI function of the CPU 11.

【0030】すなわち、CPU11の割り込み要求入力
SMIには、I/Oゲートアレイ12から出力されるア
クティブローのSMI信号が供給される。このSMI信
号は、例えば、I/Oゲートアレイ12の内部タイマか
らの要求や、リアルタイムクロック(RTC)16、電
源コントローラ(PSC)31等の外部ユニットからの
要求に応じて発生される。例えば、電源コントローラ
(PSC)31からの要求は、システムの電源をオン/
オフ制御する電源スイッチ311がオフされた時や、バ
ッテリ312の容量低下(ローバッテリ状態)が検出さ
れた時等に発生される。また、SMI信号は、オペレー
ティングシステムからの要求等のソフトウェア的な要因
によっても発生される。
That is, the interrupt request input SMI of the CPU 11 is supplied with the active-low SMI signal output from the I / O gate array 12. This SMI signal is generated, for example, in response to a request from an internal timer of the I / O gate array 12 or a request from an external unit such as a real time clock (RTC) 16 and a power supply controller (PSC) 31. For example, a request from the power supply controller (PSC) 31 turns on / off the system power.
It is generated when the power switch 311 for the off control is turned off, or when the capacity reduction of the battery 312 (low battery state) is detected. The SMI signal is also generated by a software factor such as a request from the operating system.

【0031】I/Oゲートアレイ12には、SMI要因
レジスタ121が設けられている。このSMI要因レジ
スタ121は、どのデバイスからの要因によってSMI
信号が発生されたかを示すためのものであり、図2のよ
うに8ビットレジスタから構成されている。例えば、電
源コントローラ(PSC)31からの要求によってSM
I信号が発生された時、SMI要因レジスタ121のビ
ット7(B7)は“1”にセットされる。
The I / O gate array 12 is provided with an SMI factor register 121. This SMI factor register 121 is used for SMI factor register 121 depending on the factor from which device
It is for indicating whether a signal is generated, and is composed of an 8-bit register as shown in FIG. For example, SM is requested by a power supply controller (PSC) 31.
When the I signal is generated, bit 7 (B7) of the SMI factor register 121 is set to "1".

【0032】メインメモリ13は、例えば、標準で4M
バイトの記憶容量を有しており、ここには、オペレーテ
ィングシステム、処理対象のアプリケーションプログラ
ム、およびアプリケーションプログラムによって作成さ
れたユーザデータ等が格納される。オペレーティングシ
ステムは、ペン入力をサポートするI/Oシステムを含
むものであり、CPU11のプロテクトモードで動作す
るように構成されている。また、このオペレーティング
システムには、電力管理のためのAPM(Advanced P
OWER Management )ドライバが搭載されている。この
APMドライバはBIOSと共同して電力管理を実現す
るためのインターフェースであり、システムサービスに
関するBIOS(INT 15h)を呼び出すための従
来の機能を拡張したものである。
The main memory 13 is, for example, a standard 4M memory.
It has a storage capacity of bytes, and stores an operating system, an application program to be processed, user data created by the application program, and the like. The operating system includes an I / O system that supports pen input, and is configured to operate in the protected mode of the CPU 11. In addition, this operating system includes an APM (Advanced P
OWER Management) driver is installed. This APM driver is an interface for realizing power management in cooperation with the BIOS, and is an extension of the conventional function for calling the BIOS (INT 15h) related to the system service.

【0033】SM−RAM14はシステムのパワー管理
機能を実現するために設けられたものであり、32Kバ
イトの記憶容量を持つ。このSM−RAM14は、メイ
ンメモリ13のアドレス60000Hから67FFFH
までのアドレス空間にマッピングされるオ−バレイであ
り、SMI信号がCPU11に入力された時だけアクセ
ス可能となる。システムがサスペンドモードに移行する
時には、アプリケーションプログラムの再スタートに必
要なシステムのステータス、つまりSMIが発生された
時のCPU11のレジスタおよび各種周辺ハードウェア
のステータスが、SM−RAM14にスタック形式でセ
ーブされる。
The SM-RAM 14 is provided to realize the power management function of the system and has a storage capacity of 32 Kbytes. The SM-RAM 14 has addresses of 60000H to 67FFFH of the main memory 13.
Are mapped to the address spaces up to and are accessible only when the SMI signal is input to the CPU 11. When the system shifts to the suspend mode, the system status necessary for restarting the application program, that is, the status of the CPU 11 registers and various peripheral hardware when the SMI is generated is saved in the SM-RAM 14 in a stack format. It

【0034】また、SM−RAM14にはデバイスドラ
イバ常駐領域が設けられており、このデバイスドライバ
常駐領域にはBIOSによって提供されるサスペンド/
レジューム機能を機能拡張するためのデバイスドライバ
が常駐されている。このSM−RAM14は、メインメ
モリ13の一部(空き領域)を利用して構成することが
できる。
Further, the SM-RAM 14 is provided with a device driver resident area, and the device driver resident area is provided with a suspend / suspended area provided by the BIOS.
A device driver for expanding the resume function is resident. The SM-RAM 14 can be configured by using a part (empty area) of the main memory 13.

【0035】増設メモリカード25は、コンピュータ本
体に設けられた88ピンの専用カードスロットにオプシ
ョン接続される。この増設メモリカード25は、専用の
DRAMカードであり、2Mバイト、4Mバイト、8M
バイト、16Mバイト等の種類がある。
The additional memory card 25 is optionally connected to an 88-pin dedicated card slot provided in the computer body. This additional memory card 25 is a dedicated DRAM card, and has 2M bytes, 4M bytes, and 8M bytes.
There are types such as byte and 16 MB.

【0036】BIOS−ROM15は、前述のBIOS
(Basic I/O System )を記憶するためのもので
あり、プログラム書き替えが可能なようにフラッシュメ
モリによって構成されている。BIOSは、リアルモー
ドで動作するように構成されている。このBIOSに
は、電源投入時にメモリや各種ハードウェアデバイスの
テストおよび初期設定するためのIRTルーチンと、オ
ペレーティングシステムからの要求にしたがって各種ハ
ードウェアデバイスを制御するための各種プログラム
と、サスペンドSMIルーチンおよびレジュームSMI
ルーチン等を含むSMIサービスプログラムと、実行す
るSMIサービスルーチンを決定するためのSMIハン
ドラ等が含まれている。
The BIOS-ROM 15 is the above-mentioned BIOS.
It is for storing (Basic I / O System) and is composed of a flash memory so that the program can be rewritten. The BIOS is configured to operate in real mode. This BIOS includes an IRT routine for testing and initializing memory and various hardware devices at power-on, various programs for controlling various hardware devices according to a request from the operating system, a suspend SMI routine, and Resume SMI
It includes an SMI service program including routines and the like, and an SMI handler for determining an SMI service routine to be executed.

【0037】SMIハンドラは、SMIが発生した時に
最初に起動されるBIOS内のプログラムであり、これ
によって、SMIの発生要因のチェックや、その発生要
因に対応したSMIサービスルーチンの呼び出しが実行
される。
The SMI handler is a program in the BIOS which is first activated when an SMI occurs, whereby the cause of the SMI is checked and the SMI service routine corresponding to the cause is executed. .

【0038】リアルタイムクロック(RTC)16は、
独自の動作用電池を持つ時計モジュールであり、その電
池から常時電源が供給されるCMOS構成のスタティッ
クRAM(以下、CMOSメモリと称する)を有してい
る。このCMOSメモリは、システム構成を示すセット
アップ情報の格納等に利用される。また、CMOSメモ
リには、SMI要因フラグレジスタ161が設けられて
いる。このSMI要因フラグレジスタ161には、SM
IハンドラによるSMI要因チェックの結果を示すフラ
グ等がセットされる。SMI要因フラグレジスタ161
の内容の一例を図3に示す。
The real time clock (RTC) 16 is
It is a timepiece module having its own battery for operation, and has a CMOS static RAM (hereinafter referred to as a CMOS memory) to which power is constantly supplied from the battery. This CMOS memory is used to store setup information indicating the system configuration. Further, the CMOS memory is provided with an SMI factor flag register 161. This SMI factor flag register 161 stores SM
A flag or the like indicating the result of the SMI factor check by the I handler is set. SMI factor flag register 161
An example of the contents of the above is shown in FIG.

【0039】図示のように、SMI要因フラグレジスタ
161は8ビットレジスタから構成され、ビット3〜ビ
ット0(B3〜B0)の4ビットの値は、SMI要因を
示す。例えば、“0000”はSMIは発生してないこ
とを示し、“0001”は電源スイッチ311のオフに
よるサスペンドSMIが発生したことを示し、“100
1”は電源スイッチ311のオンによるレジュームSM
Iが発生したことを示す。
As shown in the figure, the SMI factor flag register 161 is composed of an 8-bit register, and the 4-bit value of bit 3 to bit 0 (B3 to B0) indicates the SMI factor. For example, “0000” indicates that no SMI has occurred, “0001” indicates that a suspend SMI has occurred due to the power switch 311 being turned off, and “100”.
1 "is the resume SM when the power switch 311 is turned on.
Indicates that I has occurred.

【0040】スーパ−インテグレーション(SI)26
は、電源コントローラ(PSC)31、RS232Cコ
ネクタ34と接続され、これらとの間でシリアルデータ
による通信制御を行なう一方、フロッピーディスクコネ
クタ(FDDコネクタ)32、プリンタ/フロッピーデ
ィスクコネクタ(PRT/FDDコネクタ)33、ハー
ドディスクドライブ(HDD)35及びタブレットコン
トローラ26と接続され、それぞれとの間でパラレルデ
ータによる通信制御を行なう。
Super Integration (SI) 26
Is connected to a power supply controller (PSC) 31 and an RS232C connector 34 and controls communication with these by serial data, while a floppy disk connector (FDD connector) 32 and a printer / floppy disk connector (PRT / FDD connector). 33, a hard disk drive (HDD) 35, and a tablet controller 26, and communication control is performed between them by parallel data.

【0041】また、スーパ−インテグレーション(S
I)26には、ステータスレジスタ261が設けられて
いる。このステータスレジスタ261は、電源コントロ
ーラ(PSC)31の状態を示すためのものであり、図
4に示されているように、8ビットレジスタから構成さ
れている。
In addition, the super integration (S
The I) 26 is provided with a status register 261. The status register 261 is for indicating the state of the power supply controller (PSC) 31, and is composed of an 8-bit register as shown in FIG.

【0042】このステータスレジスタ261のビット7
(B7)は、ローバッテリ状態の有無を示すものであ
り、ローバッテリ状態の時は“1”、ローバッテリ状態
でない時は“0”にセットされる。ビット6(B6)
は、ACアダプタ313の接続の有無を示すものであ
り、ACアダプタが接続されている時は“1”、接続さ
れてない時は“0”にセットされる。ビット5(B5)
は、電源スイッチ311のオン/オフを示すものであ
り、オフされた時は“1”、オンされた時は“0”にセ
ットされる。
Bit 7 of this status register 261
(B7) shows the presence or absence of the low battery state, and is set to "1" when the low battery state is set and to "0" when the low battery state is not set. Bit 6 (B6)
Indicates whether or not the AC adapter 313 is connected, and is set to "1" when the AC adapter is connected and set to "0" when the AC adapter is not connected. Bit 5 (B5)
Indicates ON / OFF of the power switch 311 and is set to “1” when turned off and set to “0” when turned on.

【0043】電源コントローラ(PSC)31は、CP
U21からの指示に応じて各ユニットへの電源供給を制
御するためのものであり、CPU21との通信は、スー
パ−インテグレーション(SI)26内のコマンドレジ
スタを介して実行される。この電源コントローラ(PS
C)31は、電源スイッチ311のオフ操作を検出した
時、SMI発生要求信号をI/Oゲートアレイ12に供
給すると共に、ステータスレジスタ261のビット5を
“0”にセットする。また、電源コントローラ(PS
C)31は、ローバッテリを検出した際には、SMI発
生要求信号をI/Oゲートアレイ12に供給すると共
に、ステータスレジスタ261のビット7を“1”にセ
ットする。
The power supply controller (PSC) 31 is a CP
It is for controlling power supply to each unit according to an instruction from U21, and communication with the CPU 21 is executed via a command register in the super integration (SI) 26. This power controller (PS
C) 31 supplies the SMI generation request signal to the I / O gate array 12 and sets bit 5 of the status register 261 to "0" when detecting the OFF operation of the power switch 311. In addition, the power controller (PS
When C) 31 detects a low battery, it supplies an SMI generation request signal to the I / O gate array 12 and sets bit 7 of the status register 261 to "1".

【0044】さらに、電源コントローラ(PSC)31
は、システムがパワーオフの状態においてもバックアッ
プ電源BKを発生し、それをメインメモリ13、SM−
RAM14、画像メモリ(VRAM)38に供給する。
Further, the power supply controller (PSC) 31
Generates a backup power supply BK even when the system is in a power-off state, and supplies it to the main memory 13, SM-
It is supplied to the RAM 14 and the image memory (VRAM) 38.

【0045】フロッピーディスクコネクタ32はフロッ
ピーディスクドライブ(第1FDD)42をオプション
接続するときに用いるコネクタであり、プリンタ/フロ
ッピーディスクコネクタ33はプリンタあるいはフロッ
ピーディスク装置(第2FDD)43をオプション接続
するときに用いるコネクタである。
The floppy disk connector 32 is a connector used when the floppy disk drive (first FDD) 42 is optionally connected, and the printer / floppy disk connector 33 is used when the printer or floppy disk device (second FDD) 43 is optionally connected. This is the connector used.

【0046】タブレットコントローラ36は、透明タブ
レット37を介してスタイラスペンによって入力される
座標点を検出し、それをスーパーインテグレーション2
6、システムバス2Bを介してI/Oゲートアレイ12
へ送出する。
The tablet controller 36 detects a coordinate point input by the stylus pen through the transparent tablet 37 and superimposes it on the coordinate point.
6. I / O gate array 12 via system bus 2B
Send to.

【0047】液晶コントローラ27は、液晶表示パネル
39の表示制御を行なうものであり、システムバス2を
介してCPU11から送られてくる表示データを画像メ
モリ(VRAM)38に展開し、それを液晶表示パネル
39に表示する。液晶表示パネル39は、例えば縦64
0ドット×横480ドットのドットマトリックスで構成
される透過型のものであり、例えば蛍光表示管(以下
「FL」と略称する)を用いたバックライト40がその
背面側に配置されている。
The liquid crystal controller 27 controls the display of the liquid crystal display panel 39, expands the display data sent from the CPU 11 via the system bus 2 into the image memory (VRAM) 38, and displays it on the liquid crystal display. Display on panel 39. The liquid crystal display panel 39 has, for example, a vertical length of 64.
The backlight 40 is a transmissive type composed of a dot matrix of 0 dots × horizontal 480 dots, and a backlight 40 using, for example, a fluorescent display tube (hereinafter abbreviated as “FL”) is arranged on the back side thereof.

【0048】ICカードコントローラ28,29は、6
8ピンのPCMCIA(PersonalComputer Memory
Card International Associatuon)カード44,4
5のリード/ライト制御を行なう。キーボードコントロ
ーラ30は、オプション接続されるキーボード46のキ
ー入力制御を行なう。次に、図5を参照して、電源スイ
ッチ311がオフされてからBIOSのサスペンドSM
Iルーチンがコールされるまでの動作の流れを説明す
る。
The IC card controllers 28 and 29 are 6
8-pin PCMCIA (Personal Computer Memory)
Card Alternativeal Associatuon) Card 44, 4
5 read / write control is performed. The keyboard controller 30 controls the key input of the keyboard 46 connected as an option. Next, referring to FIG. 5, the suspend SM of the BIOS after the power switch 311 is turned off.
The operation flow until the I routine is called will be described.

【0049】電源スイッチ311がオペレータによって
オフされた時、電源コントローラ31は、それをCPU
11に通知するために、スーパーインテグレーション
(SI)26のステータスレジスタ261のビット5を
“1”にセットすると共に、I/Oゲートアレイ12に
SMI要求信号を供給する。I/Oゲートアレイ12
は、電源コントローラ31からのSMI要求信号に応答
して、SMI要因レジスタ121のビット7を“1”に
セットすると共に、CPU11のSMIピンにローレベ
ルのSMI信号を供給する。
When the power switch 311 is turned off by the operator, the power controller 31 switches it to the CPU.
In order to notify 11, the bit 5 of the status register 261 of the super integration (SI) 26 is set to "1" and the SMI request signal is supplied to the I / O gate array 12. I / O gate array 12
Responds to the SMI request signal from the power supply controller 31, sets bit 7 of the SMI factor register 121 to "1" and supplies a low level SMI signal to the SMI pin of the CPU 11.

【0050】CPU11のSMIピンにローレベルのS
MI信号が入力されると、CPU11は、まず、SM−
RAM14をメインメモリ13のアドレス60000
(H)から67FFF(H)までの32Kバイトにマッ
ピングする(ステップS11)。これにより、バンクの
切り替えがなされ、メインメモリ13のアドレス600
00Hから67FFFHはアクセス不能となり、代わり
にSM−RAM14がアクセス可能となる。
A low level S is added to the SMI pin of the CPU 11.
When the MI signal is input, the CPU 11 firstly outputs SM-
RAM14 is the main memory 13 address 60000
It is mapped to 32K bytes from (H) to 67FFF (H) (step S11). As a result, the banks are switched, and the address 600 in the main memory 13
00H to 67FFFH are inaccessible, and SM-RAM 14 is accessible instead.

【0051】SM−RAM14のメモリマップは、図6
に示されている通りである。すなわち、SM−RAM1
4には、CPUステート格納エリア、ハードウェアステ
ート格納エリア、SMI用デバイスドライバ領域14
1、SMIハンドラ作業エリアが設けられており、また
BIOSーROM15のSMIハンドラを割り込み先と
して指定するジャンプコード(JMP)がセットされて
いる。
The memory map of the SM-RAM 14 is shown in FIG.
As shown in. That is, SM-RAM1
4, a CPU state storage area, a hardware state storage area, an SMI device driver area 14
1. An SMI handler work area is provided, and a jump code (JMP) that designates the SMI handler of the BIOS-ROM 15 as an interrupt destination is set.

【0052】次いで、CPU11は、SMI信号が入力
された時のCPU11の各種レジスタの内容(CPUス
テート)をSM−RAM14のCPUステート格納エリ
アにスタック形式でセーブする(ステップS12)。も
し、オペレーティングシステムが動作中にSMI信号が
入力されたならば、プロテクトモードのCPUステート
がSM−RAM14にセーブされることになる。そし
て、CPU11は、そのCPUの動作モードをリアルモ
ードに変更して、SM−RAM14の予めきめられたア
ドレスにセットされているジャンプコード(JMP)を
フェッチする(ステップS13)。ここまでのステップ
S11〜S13の処理は、CPU11のマイクロプログ
ラムによって実行されるものである。
Next, the CPU 11 saves the contents (CPU state) of various registers of the CPU 11 when the SMI signal is input to the CPU state storage area of the SM-RAM 14 in a stack format (step S12). If the SMI signal is input while the operating system is operating, the CPU state in the protected mode will be saved in the SM-RAM 14. Then, the CPU 11 changes the operation mode of the CPU to the real mode and fetches the jump code (JMP) set at the predetermined address of the SM-RAM 14 (step S13). The processes of steps S11 to S13 up to this point are executed by the microprogram of the CPU 11.

【0053】次いで、CPU11は、ジャンプコードで
指定されるBIOS−ROM15のSMIハンドラを実
行する(ステップS14)。SMIハンドラは、どのよ
うな要因でSMIが発生されたかを決定するために、ま
ず、SMI発生要因をチェックする(ステップS1
5)。
Next, the CPU 11 executes the SMI handler of the BIOS-ROM 15 designated by the jump code (step S14). The SMI handler first checks the cause of the SMI occurrence in order to determine the cause of the SMI occurrence (step S1).
5).

【0054】この処理では、SMI要因レジスタ121
の内容とステータスレジスタ261の内容がチェックさ
れる。電源スイッチ311のオフによるSMIであれ
ば、前述したようにSMI要因レジスタ121のビット
7、ステータスレジスタ261のビット5が共に“1”
にセットされる。この場合、SMIハンドラは、電源ス
イッチ311のオフによるSMIであると決定し、その
SMIに対応するBIOS内のSMIサービスルーチ
ン、つまりサスペンドSMIルーチンの実行をリクエス
トする(ステップS16)。これらステップS14〜S
16の処理は、SMIハンドラによって実行されるもの
である。次に、図7を参照して、SM−RAM14に設
けられているSMI用デバイスドライバ領域141の具
体的な構造を説明する。
In this processing, the SMI factor register 121
And the contents of the status register 261 are checked. If the SMI is caused by turning off the power switch 311, both bit 7 of the SMI factor register 121 and bit 5 of the status register 261 are "1" as described above.
Is set to. In this case, the SMI handler determines that the SMI is an SMI caused by turning off the power switch 311 and requests execution of the SMI service routine in the BIOS corresponding to the SMI, that is, the suspend SMI routine (step S16). These steps S14 to S
The processing of 16 is executed by the SMI handler. Next, with reference to FIG. 7, a specific structure of the SMI device driver area 141 provided in the SM-RAM 14 will be described.

【0055】図7に示されているように、SMI用デバ
イスドライバ領域141は、デバイスドライバアドレス
テーブル領域141a、デバイスドライバ常駐領域14
1b、予約領域141cから構成されている。デバイス
ドライバアドレステーブル領域141aには、各デバイ
スドライバそれぞれに対応するアドレス情報が格納され
ている。このアドレス情報は、デバイスドライバ常駐領
域141bにおける各デバイスドライバの格納位置を示
すポインタとして利用される。デバイスドライバ常駐領
域141bには、BIOSのサスペンド/レジューム処
理をそれぞれ機能拡張するためのサスペンド用デバイス
ドライバ、レジューム用デバイスドライバを初め、SM
I割り込み時に利用される電力管理のための他の複数の
デバイスドライバ等が常駐される。予約領域141c
は、将来的に別のSMIハンドラを設ける必要が生じた
時ににその常駐用として確保されている領域である。
As shown in FIG. 7, the SMI device driver area 141 includes a device driver address table area 141a and a device driver resident area 14.
1b and a reserved area 141c. Address information corresponding to each device driver is stored in the device driver address table area 141a. This address information is used as a pointer indicating the storage position of each device driver in the device driver resident area 141b. The device driver resident area 141b includes a suspend device driver and a resume device driver for expanding the functions of the suspend / resume processing of the BIOS, and an SM device.
A plurality of other device drivers and the like for power management used at the time of I interrupt reside. Reserved area 141c
Is an area reserved for resident when another SMI handler needs to be provided in the future.

【0056】図8には、デバイスドライバアドレステー
ブル領域141の具体例が示されている。ここでは、サ
スペンド用デバイスドライバとレジューム用デバイスド
ライバの2つのデバイスドライバがデバイスドライバ常
駐領域141bに格納されている場合を想定する。
FIG. 8 shows a concrete example of the device driver address table area 141. Here, it is assumed that two device drivers, a suspend device driver and a resume device driver, are stored in the device driver resident area 141b.

【0057】デバイスドライバアドレステーブル領域1
41aには、サスペンド用デバイスドライバとレジュー
ム用デバイスドライバの2つのデバイスドライバに対応
する2つのアドレス情報が格納される。各アドレス情報
は、オフセットアドレスとセグメントアドレスから構成
されている。
Device driver address table area 1
The 41a stores two pieces of address information corresponding to two device drivers, a suspend device driver and a resume device driver. Each piece of address information is composed of an offset address and a segment address.

【0058】すなわち、図8において、サスペンド用起
動オフセットアドレスおよびセグメントアドレスはサス
ペンド用デバイスドライバに対応するアドレス情報であ
り、また、レジューム用起動オフセットアドレスおよび
セグメントアドレスはレジューム用デバイスドライバに
対応するアドレス情報である。このように各アドレス情
報がオフセットアドレスとセグメントアドレスによって
構成されているのは、デバイスドライバを呼び出すBI
OSはCPU11のリアルモードで動作するように構成
されており、そのリアルモードにおけるアドレッシング
はオフセットアドレスとセグメントアドレスを利用して
いるからである。また、セグメントアドレスの利用によ
って、SM−RAM14のアドレス空間以外のメインメ
モリ13上の別のセグメントをアクセスすることも可能
となる。したがって、メインメモリ13上にさらに別の
デバイスドライバを追加しておき、それをBIOSのS
MIルーチンがコールすることも可能である。
That is, in FIG. 8, the suspend start offset address and the segment address are address information corresponding to the suspend device driver, and the resume start offset address and the segment address are address information corresponding to the resume device driver. Is. In this way, each address information is composed of the offset address and the segment address because the BI that calls the device driver.
This is because the OS is configured to operate in the real mode of the CPU 11, and the addressing in the real mode uses the offset address and the segment address. Further, by using the segment address, it is possible to access another segment on the main memory 13 other than the address space of the SM-RAM 14. Therefore, add another device driver to the main memory 13 and install it in the BIOS
It is also possible for the MI routine to call.

【0059】尚、サスペンド用起動オフセットアドレス
およびセグメントアドレスが共に0000(h)の場合
は、サスペンド用デバイスドライバが設定されてないこ
とを示す。同様に、サスペンド用起動オフセットアドレ
スおよびセグメントアドレスが共に0000(h)の場
合は、サスペンド用デバイスドライバが設定されてない
ことを示す。
If the suspending start offset address and the segment address are both 0000 (h), it means that the suspending device driver is not set. Similarly, if the suspending start offset address and the segment address are both 0000 (h), it indicates that the suspending device driver is not set.

【0060】さらに、このデバイスドライバアドレステ
ーブル領域141aには、アドレステーブル有効/無効
フラグが設定される。このアドレステーブル有効/無効
フラグはデバイスドライバアドレステーブル領域141
aのアドレス情報が有効か否かを示すものであり、フラ
グ「AA55h」は有効を示し、それ以外は無効を示
す。フラグが有効を示している時のみ、以下のアドレス
情報が意味を持つ。無効を示している時は、SMI用デ
バイスドライバ領域141はBIOSのサスペンド/レ
ジューム処理の機能拡張以外の別の目的で使用されるこ
とを意味し、この場合には以下のアドレス情報は意味を
持たない。
Further, an address table valid / invalid flag is set in the device driver address table area 141a. This address table valid / invalid flag is set in the device driver address table area 141.
It indicates whether or not the address information of a is valid. The flag "AA55h" indicates valid, and the others indicate invalid. The following address information is meaningful only when the flag indicates valid. When disabled, it means that the SMI device driver area 141 is used for another purpose other than the function extension of the suspend / resume processing of the BIOS. In this case, the following address information has meaning. Absent.

【0061】次に、図9を参照して、BIOSのサスペ
ンドSMIルーチンによって実行される動作を説明す
る。ここでは、デバイスドライバアドレステーブル領域
141aのアドレス情報が有効な場合を例にとって説明
する。
Next, the operation executed by the suspend SMI routine of the BIOS will be described with reference to FIG. Here, a case where the address information in the device driver address table area 141a is valid will be described as an example.

【0062】デバイスドライバアドレステーブル領域1
41aにサスペンド用起動オフセットアドレスおよびセ
グメントアドレスが設定されている場合は、サスペンド
SMIルーチンは、サスペンド処理に先だって、サスペ
ンド用デバイスドライバを呼び出す。この呼び出しは、
デバイスドライバアドレステーブル領域141aからリ
ードしたサスペンド用起動オフセットアドレスおよびセ
グメントアドレスから得られるサスペンド用デバイスド
ライバに対応したアドレスをコール(FARCALL)
することによって行なわれる。この時、CPU11のレ
ジスタ内容は変化されない。
Device driver address table area 1
If the suspend start offset address and the segment address are set in 41a, the suspend SMI routine calls the suspend device driver prior to the suspend process. This call
Call the address corresponding to the suspend device driver obtained from the suspend start offset address and the segment address read from the device driver address table area 141a (FARCALL)
It is done by doing. At this time, the register contents of the CPU 11 are not changed.

【0063】これによって、サスペンド用デバイスドラ
イバが起動され、拡張サスペンド処理が実行される(ス
テップS31)。この拡張サスペンド処理では、BIO
Sのサスペンドルーチンではサポートされてない例えば
メモリカード25やICカ−ド44等のオプションデバ
イスについてのデータセーブが実行される。このデータ
セーブでは、メモリカード25のユーザデータやそのコ
ントローラのステータス等がハードディスクドライブ
(HDD)35にセーブされる。また、メモリカード2
5には内蔵電池を持ちバックアップ機能を有するものも
あるが、この場合には、ステータスだけがセーブされ
る。ステータスについてはセーブに必要となる記憶空間
は僅かであるので、SM−RAM14にセーブすること
も可能である。
As a result, the suspend device driver is activated and the extended suspend process is executed (step S31). In this extended suspend process, BIO
Data saving is executed for optional devices such as the memory card 25 and the IC card 44, which are not supported in the S suspend routine. In this data save, the user data of the memory card 25, the status of its controller, etc. are saved in the hard disk drive (HDD) 35. Also, memory card 2
Some 5 have a built-in battery and have a backup function, but in this case, only the status is saved. Since the storage space required for saving the status is small, it is possible to save the status in the SM-RAM 14.

【0064】拡張サスペンド処理が実行終了すると、再
びBIOSのサスペンドSMIルーチンに制御が移行す
る。そして、サスペンドSMIルーチンは、サスペンド
処理を実行する(ステップS21)。このサスペンド処
理では、CPUステートおよびハードウェアステートが
SM−RAM14にセーブされる。この時、セーブされ
るCPUステートは、リアルモードにおけるCPUのレ
ジスタの値である。次いで、サスペンドSMIルーチン
は、I/Oゲートアレイ12、システムバス2、および
スーパーインテグレーション(SI)26を介して、電
源コントローラ(PSC)31にパワーオフコマンドを
供給する(ステップS22)。これにより、システムは
サスペンドモードに設定され、バックアップ電源BKが
供給されるメインメモリ13、SM−RAM14、およ
び画像メモリ(VRAM)38以外は、システム内のほ
とんど全てのデバイスがパワーオフされた状態になる。
When the execution of the extended suspend process is completed, the control is returned to the suspend SMI routine of the BIOS again. Then, the suspend SMI routine executes suspend processing (step S21). In this suspend process, the CPU state and the hardware state are saved in the SM-RAM 14. At this time, the CPU state saved is the value of the CPU register in the real mode. Next, the suspend SMI routine supplies a power-off command to the power supply controller (PSC) 31 via the I / O gate array 12, the system bus 2, and the super integration (SI) 26 (step S22). As a result, the system is set to the suspend mode, and almost all the devices in the system are powered off except for the main memory 13, SM-RAM 14, and image memory (VRAM) 38 to which the backup power BK is supplied. Become.

【0065】また、デバイスドライバアドレステーブル
領域141aのアドレス情報が有効でない場合には、拡
張サスペンド処理(ステップS31)は実行されず、サ
スペンドSMIルーチンのサスペンド処理(ステップS
21)だけが起動されることになる。
If the address information in the device driver address table area 141a is not valid, the extended suspend process (step S31) is not executed, but the suspend process of the suspend SMI routine (step S31).
Only 21) will be activated.

【0066】次に、図10および図11を参照して、電
源スイッチ311がオンされてからBIOSのレジュー
ムSMIルーチンが起動されるまでの動作の流れを説明
する。
Next, the flow of operation from when the power switch 311 is turned on to when the resume SMI routine of the BIOS is activated will be described with reference to FIGS. 10 and 11.

【0067】電源スイッチ311がオペレータによって
オンされた時、電源コントローラ31は、まず、システ
ムをパワーオンした後、電源スイッチ311がオンされ
たことをCPU11に通知するために、スーパーインテ
グレーション(SI)26のステータスレジスタ261
のビット5を“0”にセットすると共に、I/Oゲート
アレイ12にリセット要求信号を供給する。I/Oゲー
トアレイ12は、電源コントローラ31からのリセット
要求信号に応答して、CPU11にリセット信号を供給
する。
When the power switch 311 is turned on by the operator, the power controller 31 first powers on the system and then notifies the CPU 11 that the power switch 311 has been turned on, in order to notify the super integration (SI) 26. Status register 261
Bit 5 is set to "0" and a reset request signal is supplied to the I / O gate array 12. The I / O gate array 12 supplies a reset signal to the CPU 11 in response to the reset request signal from the power supply controller 31.

【0068】CPU11にリセット信号が入力される
と、CPU11は自動的にリアルモードに設定される。
そして、システムをスタートアップされるためのBIO
SのIRT(Initial Reliability Test )ルーチ
ンが実行される。
When the reset signal is input to the CPU 11, the CPU 11 is automatically set to the real mode.
And the BIO to start up the system
An S IRT (Initial Reliability Test) routine is executed.

【0069】BIOSのIRTルーチンは、まず、リア
ルタイムクロック(RTC)16のCMOSメモリに設
定されているシステムセットアップ情報を参照して、ユ
ーザによってレジュームモードとブートモードのどちら
のモードが指定されているかを判断する(ステップS4
1)。
The BIOS IRT routine first refers to the system setup information set in the CMOS memory of the real time clock (RTC) 16 to determine which mode, resume mode or boot mode, is designated by the user. Judge (step S4)
1).

【0070】ブートモードならば、IRTルーチンは、
メモリテストおよびハードウエアテストを行なった後、
CMOSメモリに設定されているシステムセットアップ
情報にしたがってハードウエアを初期設定し、次いでオ
ペレーティングシステムをメインメモリ13にブートロ
ードし、CPU11をプロテクトモードに変更する(ス
テップS42)。
If in boot mode, the IRT routine
After performing memory test and hardware test,
The hardware is initialized according to the system setup information set in the CMOS memory, then the operating system is boot loaded into the main memory 13, and the CPU 11 is changed to the protect mode (step S42).

【0071】一方、レジュームモードであれば、IRT
ルーチンは、CPU11の所定の内部レジスタの値を
“1”に設定すると共に、I/Oゲートアレイ12の所
定のレジスタの値を“1”にセットすることによってソ
フトウェアSMIを発行する(ステップS43)。この
ソフトウェアSMIにおいても、I/Oゲートアレイ1
2からCPU11にSMI割り込み信号が供給される。
On the other hand, in the resume mode, IRT
The routine issues a software SMI by setting the value of a predetermined internal register of the CPU 11 to "1" and setting the value of a predetermined register of the I / O gate array 12 to "1" (step S43). . Even in this software SMI, the I / O gate array 1
An SMI interrupt signal is supplied from 2 to the CPU 11.

【0072】SMI信号が発行されると、CPU11
は、まず、SM−RAM14をメインメモリ13のアド
レス60000Hから67FFFHまでの32Kバイト
にマッピングし(ステップS51)、SM−RAM14
の予めきめられたアドレスにセットされているジャンプ
コード(JMP)をフェッチする。
When the SMI signal is issued, the CPU 11
First, the SM-RAM 14 is mapped to 32K bytes from the address 60000H to 67FFFH of the main memory 13 (step S51).
Fetch the jump code (JMP) set at the predetermined address of.

【0073】次いで、CPU11は、ジャンプコードで
指定されるBIOS−ROM15のSMIハンドラを実
行する(ステップS52)。SMIハンドラは、どのよ
うな要因でSMIが発生されたかを決定するために、ま
ず、SMI発生要因をチェックする(ステップS5
3)。
Next, the CPU 11 executes the SMI handler of the BIOS-ROM 15 designated by the jump code (step S52). The SMI handler first checks the cause of the SMI occurrence in order to determine the cause of the SMI occurrence (step S5).
3).

【0074】この処理では、SMI要因レジスタ121
の内容とステータスレジスタ261の内容がチェックさ
れる。電源スイッチ311のオフによるSMIであれ
ば、前述したようにSMI要因レジスタ121のビット
7が“1”、ステータスレジスタ261のビット5が
“0”にセットされる。この場合、SMIハンドラは、
電源スイッチ311のオンによるSMIであると決定
し、そのSMIに対応するBIOSの所定のSMIサー
ビスルーチン、つまりレジュームSMIルーチンの実行
をリクエストする(ステップS54)。次に、図12を
参照して、BIOSのレジュームSMIルーチンによっ
て実行される動作を説明する。
In this processing, the SMI factor register 121
And the contents of the status register 261 are checked. If the SMI is caused by turning off the power switch 311, as described above, the bit 7 of the SMI factor register 121 is set to "1" and the bit 5 of the status register 261 is set to "0". In this case, the SMI handler
It is determined that the SMI is caused by turning on the power switch 311, and a request is made to execute a predetermined SMI service routine of the BIOS corresponding to the SMI, that is, a resume SMI routine (step S54). Next, with reference to FIG. 12, an operation executed by the resume SMI routine of the BIOS will be described.

【0075】レジュームSMIルーチンは、まず、リア
ルタイムクロック(RTC)16のSMI要因フラグレ
ジスタ161に、電源スイッチ311のオンによるサス
ペンドSMIが発生したことを示すサスペンドSMIフ
ラグをセットする。この時、SMI要因フラグレジスタ
161の下位4ビットB3,B2,B1,B0は1,
0,0,1にセットされる。
In the resume SMI routine, first, the suspend SMI flag indicating that the suspend SMI caused by turning on the power switch 311 has occurred is set in the SMI factor flag register 161 of the real time clock (RTC) 16. At this time, the lower 4 bits B3, B2, B1, B0 of the SMI factor flag register 161 are 1,
It is set to 0,0,1.

【0076】次いで、レジュームSMIルーチンは、サ
スペンドSMIルーチンでSM−RAM14にセーブし
たCPUステートおよびハードウェアステートをリスト
アする(ステップS61)。この後、レジュームSMI
ルーチンは、デバイスドライバアドレステーブル領域1
41aにレジュー用起動オフセットアドレスおよびセグ
メントアドレスが設定されていれば、レジューム処理の
終了に先だって、レジューム用デバイスドライバを呼び
出す。この呼び出しは、デバイスドライバアドレステー
ブル領域141aからリードしたレジューム用起動オフ
セットアドレスおよびセグメントアドレスから得られる
レジューム用デバイスドライバに対応したアドレスをコ
ール(FAR CALL)することによって行なわれ
る。この時、CPU11のレジスタ内容は変化されな
い。
Next, the resume SMI routine restores the CPU state and hardware state saved in the SM-RAM 14 in the suspend SMI routine (step S61). After this, resume SMI
Routine is the device driver address table area 1
If the resume activation offset address and the segment address are set in 41a, the resume device driver is called prior to the end of the resume process. This call is performed by calling (FAR CALL) an address corresponding to the resume device driver obtained from the resume activation offset address and the segment address read from the device driver address table area 141a. At this time, the register contents of the CPU 11 are not changed.

【0077】これによって、レジューム用デバイスドラ
イバが起動され、拡張レジューム処理が実行される(ス
テップS71)。この拡張レジュー処理では、ハードデ
ィスクドライブ(HDD)35にセーブされている例え
ばメモリカード25等のオプションデバイスのデータが
リストアされる。
As a result, the resume device driver is activated and the extended resume process is executed (step S71). In this extended resume process, the data of the optional device such as the memory card 25 saved in the hard disk drive (HDD) 35 is restored.

【0078】拡張レジューム処理が実行終了すると、再
びBIOSのレジュームSMIルーチンに制御が移行す
る。そして、レジュームSMIルーチンは、所定のリタ
ーン命令を実行してオペレーティングシステムに制御を
戻す。
When the execution of the extended resume process is completed, the control shifts to the resume SMI routine of the BIOS again. The resume SMI routine then executes a predetermined return instruction to return control to the operating system.

【0079】以上のように、この実施例においては、シ
ステムステータスのセーブに利用されるSM−RAM1
4内に拡張サスペンド/レジューム処理のためのデバイ
スドライバが格納されており、BIOSによってサポー
トされてないオプションデバイスのサスペンド/レジュ
ーム処理がそのデバイスドライバによって実現される。
As described above, in this embodiment, the SM-RAM 1 used for saving the system status is used.
4 stores a device driver for extended suspend / resume processing, and the device driver realizes suspend / resume processing of an optional device that is not supported by the BIOS.

【0080】この場合、SM−RAM14は所定のアド
レス空間をメインメモリ13と共有しており、SMI信
号が入力された際にのみアクセス可能となるオーバーレ
イメモリである。このため、拡張サスペンド/レジュー
ム処理のためのデバイスドライバを組み込んでも、それ
によって必要なメモリ空間が増大されることはない。し
たがって、サスペンド/レジューム機能の機能拡張をメ
モリ資源を有効利用した状態で実現できるようになり、
より効率の良い電力制御を行なうことができる。
In this case, the SM-RAM 14 is an overlay memory that shares a predetermined address space with the main memory 13 and can be accessed only when the SMI signal is input. Therefore, even if the device driver for the extended suspend / resume processing is incorporated, the required memory space is not increased. Therefore, the extension of the suspend / resume function can be realized with effective use of memory resources.
More efficient power control can be performed.

【0081】尚、ここでは、電源スイッチ311のオフ
によってシステムがサスペンドモードに設定される場合
について説明したが、電源スイッチ311のオフのみな
らず、ローバッテリ状態が電源コントローラ31によっ
て検出された時にも、それによってシステムはサスペン
ドモードに設定される。この場合のサスペンド処理も電
源スイッチ311のオフによって実行されるものと同一
であり、オプションデバイスのための拡張サスペンド処
理と、BIOSによる通常のサスペンド処理が共同して
実行される。
Here, the case where the system is set to the suspend mode by turning off the power switch 311 has been described, but not only when the power switch 311 is turned off, but also when the low battery state is detected by the power controller 31. , Which puts the system in suspend mode. The suspend process in this case is also the same as that executed by turning off the power switch 311. The extended suspend process for the optional device and the normal suspend process by the BIOS are jointly executed.

【0082】また、SM−RAM14内に格納するデバ
イスドライバとしては、前述のような電力制御のための
もののみならず、プリンタ、マウス、キーボード等の各
種周辺機器の制御のためのデバイスドライバを組込むこ
ともできる。このようにすれば、SMIによって周辺機
器の制御処理を起動できるようになり、実行中のアプリ
ケーションルプログラムに影響を与えることなく、迅速
な周辺機器制御が可能となる。次に、この発明の第2実
施例を説明する。
Further, as the device driver stored in the SM-RAM 14, not only the one for power control as described above, but also a device driver for controlling various peripheral devices such as a printer, a mouse and a keyboard is incorporated. You can also With this configuration, the control processing of the peripheral device can be activated by the SMI, and the peripheral device can be quickly controlled without affecting the application program being executed. Next, a second embodiment of the present invention will be described.

【0083】この第2実施例は、オペレーティングシス
テムのAPMドライバとBIOSとの間のインターフェ
ース用ドライバをSM−RAM14に格納しておき、そ
のインターフェース用ドライバを利用してシステムの電
力管理を実現するものである。まず、図13を参照し
て、APMドライバを利用した電力管理の原理を説明す
る。
In the second embodiment, the interface driver between the APM driver of the operating system and the BIOS is stored in the SM-RAM 14, and the interface driver is used to realize the power management of the system. Is. First, the principle of power management using the APM driver will be described with reference to FIG.

【0084】APMドライバを利用した電力管理は、オ
ペレーティングシステムのAPMドライバ(APM−
S)と、BIOSのAPM−SMIルーチンと、SM−
RAM14に格納されるAPMインターフェース用のデ
バイスドライバ(APM−M)とによって実現される。
Power management using the APM driver is performed by the APM driver (APM-) of the operating system.
S), the BIOS APM-SMI routine, and SM-
It is realized by the device driver (APM-M) for the APM interface stored in the RAM 14.

【0085】オペレーティングシステムのAPMドライ
バ(APM−S)は、従来のシステムサービスに関する
BIOS(INT 15h)を呼び出すための機能を拡
張したものである。このようなAPMドライバ(APM
−S)を使用したシステムでは、次のような電力管理が
実行される。
The APM driver (APM-S) of the operating system is an extension of the function for calling the BIOS (INT 15h) related to the conventional system service. Such an APM driver (APM
In the system using -S), the following power management is executed.

【0086】例えば、アプリケーションプログラムがキ
ー入力待ち等の状態にあるとき、APMドライバ(AP
M−S)は、BIOSに対して「キー入力待ち」という
アイドルステートを通知する。これによって、BIOS
の電力管理機能が起動され、各種ハードウェアに対する
電力制御が実行される。また、APMドライバ(APM
−S)は、システムのアイドルステートとは関係なく定
期的にBIOSの電力制御機能を呼び出して、BIOS
が電力制御処理を要求しているか否かをチェックする。
要求している場合には、APMドライバ(APM−S)
はアプリケーションプログラムやシステム内の各種デバ
イスドライバ等にそれを通知し、電力制御処理の実行可
否のチェックを行なう。実行可であれば、BIOSにそ
の旨が通知されて電力制御処理が行なわれる。APMド
ライバ(APM−S)と連動して実行されるBIOSの
電力制御処理は、APM−SMIルーチンによって実行
される。
For example, when the application program is waiting for key input, etc., the APM driver (AP
M-S) notifies the BIOS of the idle state of "waiting for key input". This allows the BIOS
The power management function of is started, and power control for various hardware is executed. In addition, the APM driver (APM
-S) periodically calls the power control function of the BIOS regardless of the idle state of the system,
Checks if it requires power control processing.
APM driver (APM-S) if required
Notifies the application program or various device drivers in the system of the fact and checks whether or not the power control process can be executed. If it is executable, the BIOS is notified of that fact and the power control process is performed. The power control process of the BIOS executed in conjunction with the APM driver (APM-S) is executed by the APM-SMI routine.

【0087】このBIOSのAPM−SMIルーチンと
APMドライバ(APM−S)との間の通信は、APM
インターフェース用のデバイスドライバ(APM−M)
を介して行なわれる。すなわち、BIOSは、APMイ
ンターフェース用のデバイスドライバ(APM−M)を
呼び出すことにより、APMドライバ(APM−S)か
らの要求の受信や、APMドライバ(APM−S)への
通知を行なう。
Communication between the APM-SMI routine of this BIOS and the APM driver (APM-S) is performed by the APM.
Interface device driver (APM-M)
Through. That is, the BIOS calls a device driver (APM-M) for the APM interface to receive a request from the APM driver (APM-S) and notify the APM driver (APM-S).

【0088】尚、この実施例におけるオペレーティング
システム内のAPMドライバ(APM−S)は、例え
ば、米マイクロソフト社により開発されたMS−WIN
DOWS3.1に搭載されているAPMドライバと同等
のものである。また、デバイスドライバ(APM−M)
は、APMドライバ(APM−S)インストール時にイ
ンストールされる。
The APM driver (APM-S) in the operating system in this embodiment is, for example, MS-WIN developed by Microsoft Corp.
It is the same as the APM driver installed in DOWS3.1. Also, device driver (APM-M)
Is installed when the APM driver (APM-S) is installed.

【0089】図14には、APMインターフェース用デ
バイスドライバ(APM−M)をSM−RAM14のデ
バイスドライバ常駐領域141bに格納した際のデバイ
スドライバアドレステーブル領域141の具体例が示さ
れている。
FIG. 14 shows a concrete example of the device driver address table area 141 when the APM interface device driver (APM-M) is stored in the device driver resident area 141b of the SM-RAM 14.

【0090】APMインターフェース用デバイスドライ
バ(APM−M)は、APM−SMI前処理部とAPM
−SMI後処理部とから構成される。この場合、デバイ
スドライバアドレステーブル領域141の予約領域に
は、APM−SMI前処理部とAPM−SMI後処理部
に対応する2つのアドレス情報が格納される。各アドレ
ス情報は、オフセットアドレスとセグメントアドレスか
ら構成されている。
The APM interface device driver (APM-M) is composed of an APM-SMI preprocessing unit and an APM.
-SMI post-processing unit. In this case, two address information corresponding to the APM-SMI pre-processing unit and the APM-SMI post-processing unit are stored in the reserved area of the device driver address table area 141. Each piece of address information is composed of an offset address and a segment address.

【0091】すなわち、図14において、APM−SM
I前処理用起動オフセットアドレスおよびセグメントア
ドレスは、APM−SMI前処理部に対応するアドレス
情報であり、また、APM−SMI後処理用起動オフセ
ットアドレスおよびセグメントアドレスは、APM−S
MI後処理部に対応するアドレス情報である。
That is, in FIG. 14, APM-SM
The I preprocessing start offset address and segment address are address information corresponding to the APM-SMI preprocessing section, and the APM-SMI postprocessing start offset address and segment address are APM-S.
It is address information corresponding to the MI post-processing unit.

【0092】このように、APMインターフェース用デ
バイスドライバ(APM−M)をSM−RAM14に格
納した場合には、それに対応するアドレス情報がデバイ
スドライバアドレステーブル領域141に追加されるこ
とになる。
In this way, when the APM interface device driver (APM-M) is stored in the SM-RAM 14, the address information corresponding to it is added to the device driver address table area 141.

【0093】次に、図15を参照して、APM−SMI
ルーチンの具体的な動作を説明する。ここでは、オペレ
ーティングシステムのAPMドライバ(APM−S)か
らの要求によって、BIOSのAPM−SMIルーチン
が起動される場合を想定する。
Next, referring to FIG. 15, APM-SMI
The specific operation of the routine will be described. Here, it is assumed that the APM-SMI routine of the BIOS is activated by a request from the APM driver (APM-S) of the operating system.

【0094】APMドライバ(APM−S)は、カーネ
ルからのアイドル通知を種々のインターフェース(IN
T15hインターフェース、16ビットインターフェー
ス、32ビットインターフェース)を介して受けとると
(ステップS81〜S83)、BIOSのAPM−SM
Iルーチンを起動する(ステップS84)。このAPM
−SMIルーチンの起動処理では、CMOSメモリの所
定レジスタにAPM−SMI要求の発生を示すフラグが
セットされると共に、ソフトウェアSMIが発行され
る。BIOSのSMIハンドラは、ソフトウェアSMI
がAPM−SMI要求の発生を示すものであることを知
ると、APM−SMIルーチンを起動する。
The APM driver (APM-S) uses various interfaces (IN) to notify the idle notification from the kernel.
When received via the T15h interface, 16-bit interface, 32-bit interface (steps S81 to S83), BIOS APM-SM
The I routine is activated (step S84). This APM
In the SMI routine start-up process, a flag indicating the generation of the APM-SMI request is set in a predetermined register of the CMOS memory, and the software SMI is issued. The BIOS SMI handler is a software SMI.
, Which indicates that an APM-SMI request has occurred, the APM-SMI routine is activated.

【0095】デバイスドライバアドレステーブル領域1
41aにアドレス情報がセットされている場合には、A
PM−SMIルーチンは、APM−SMIの前処理呼び
出し、APM対応処理、APM−SMIの後処理呼び出
しを行なう(ステップS91,S92,S93)。
Device driver address table area 1
If address information is set in 41a, A
The PM-SMI routine performs APM-SMI pre-processing call, APM-corresponding processing, and APM-SMI post-processing call (steps S91, S92, S93).

【0096】APM−SMIの前処理呼び出しは、デバ
イスドライバアドレステーブル領域141aからリード
したAPM−SMI前処理用起動オフセットアドレスお
よびセグメントアドレスから得られるアドレスをコール
(FAR CALL)することによって行なわれる。
The APM-SMI preprocessing call is performed by calling (FAR CALL) an address obtained from the APM-SMI preprocessing start offset address and segment address read from the device driver address table area 141a.

【0097】この呼び出しによってAPM−SMI前処
理部が実行され、そのAPM−SMI前処理部からBI
OSのAPM−SMIルーチンに対して各種ステータス
の通知が行なわれる(ステップS95)。APM−SM
Iルーチンは、そのステータス通知によって知らされた
APMドライバ(APM−S)からの要求に従い、対応
する電力制御処理を実行する(ステップS)。
This call causes the APM-SMI pre-processing unit to execute, and the APM-SMI pre-processing unit executes BI
Various statuses are notified to the APM-SMI routine of the OS (step S95). APM-SM
The I routine executes the corresponding power control process according to the request from the APM driver (APM-S) notified by the status notification (step S).

【0098】例えば、前処理呼び出しにて上位プログラ
ムからのサスペンド要求の発生が知らされた場合には、
APM−SMIルーチンは、ブートモード/レジューム
モードに関わらず、サスペンド処理(システムステータ
スの退避)を実行する。この場合、APM−SMIの後
処理呼び出しは行なわれない。
For example, when the generation of the suspend request from the upper program is notified by the preprocessing call,
The APM-SMI routine executes suspend processing (saving of system status) regardless of boot mode / resume mode. In this case, no APM-SMI post-processing call is made.

【0099】前処理呼び出しにてHDDレディ要求の発
生が知らされた場合には、APM−SMIルーチンは、
HDDモータをオン状態に設定し、その後、APM−S
MIの後処理呼び出しを行なう。
When the generation of the HDD ready request is notified by the preprocessing call, the APM-SMI routine executes
Set the HDD motor to the ON state, then APM-S
Make a post-processing call to MI.

【0100】前処理呼び出しにてHDDオフ要求の発生
が知らされた場合には、APM−SMIルーチンは、H
DDモータをオフ状態に設定し、その後、APM−SM
Iの後処理呼び出しを行なう。
When the generation of the HDD off request is notified by the preprocessing call, the APM-SMI routine returns H
Set the DD motor to the off state, then APM-SM
I post-process call.

【0101】前処理呼び出しにてディスプレイレディ要
求の発生が知らされた場合には、APM−SMIルーチ
ンは、液晶表示パネル39をオン状態に設定し(バック
ライトユニットの点灯等)、その後、APM−SMIの
後処理呼び出しを行なう。
When the generation of the display ready request is notified by the pre-processing call, the APM-SMI routine sets the liquid crystal display panel 39 to the ON state (lighting of the backlight unit, etc.), and then the APM-SMI routine. Make a post-processing call to SMI.

【0102】前処理呼び出しにてディスプレイオフ要求
の発生が知らされた場合には、APM−SMIルーチン
は、液晶表示パネル39をオフ状態に設定し(バックラ
イトユニットの消灯等)、その後、APM−SMIの後
処理呼び出しを行なう。
When the generation of the display-off request is notified by the pre-processing call, the APM-SMI routine sets the liquid crystal display panel 39 to the off state (turning off the backlight unit, etc.), and then the APM-SMI routine. Make a post-processing call to SMI.

【0103】前処理呼び出しにてタブレットレディ要求
の発生が知らされた場合には、APM−SMIルーチン
は、タブレット37をオン状態に設定し(タブレット用
電源オン)、その後、APM−SMIの後処理呼び出し
を行なう。
When the tablet ready request is notified by the pre-processing call, the APM-SMI routine sets the tablet 37 to the ON state (power-on for tablet), and then the APM-SMI post-processing. Make a call.

【0104】前処理呼び出しにてタブレットオフ要求の
発生が知らされた場合には、APM−SMIルーチン
は、タブレット37をオフ状態に設定し(タブレット用
電源オフ)、その後、APM−SMIの後処理呼び出し
を行なう。
When the occurrence of the tablet-off request is notified by calling the pre-processing, the APM-SMI routine sets the tablet 37 to the off state (power-off for tablet), and then the post-processing of APM-SMI. Make a call.

【0105】後処理呼び出しは、デバイスドライバアド
レステーブル領域141aからリードしたAPM−SM
I後処理用起動オフセットアドレスおよびセグメントア
ドレスから得られるアドレスをコール(FAR CAL
L)することによって行なわれる。
The post-processing call is executed by the APM-SM read from the device driver address table area 141a.
I Call address obtained from start offset address for post-processing and segment address (FAR CAL
L) is performed.

【0106】この呼び出しによってAPM−SMI後処
理部が実行され、そのAPM−SMI後処理部によって
APMドライバ(APM−S)に終了ステータス等が返
信される。この後、BIOSのAPM−SMIルーチン
からAPMドライバ(APM−S)に処理が戻り、上位
プログラムに復帰される(ステップS85,S86)。
By this call, the APM-SMI post-processing section is executed, and the APM-SMI post-processing section returns an end status and the like to the APM driver (APM-S). After that, the process returns from the APM-SMI routine of the BIOS to the APM driver (APM-S) and returns to the upper program (steps S85 and S86).

【0107】以上のように、この第2実施例において
は、BIOSとAPMドライバ(APM−S)との間の
インタ−フェースのためのデバイスドライバ(APM−
M)がSM−RAM14に登録されているので、メモリ
資源の有効利用と、高度な電力管理機能の実現を両立す
ることが可能となる。
As described above, in the second embodiment, the device driver (APM-S) for the interface between the BIOS and the APM driver (APM-S).
Since M) is registered in the SM-RAM 14, it is possible to achieve both effective use of memory resources and realization of an advanced power management function.

【0108】[0108]

【発明の効果】以上詳記したようにこの発明によれば、
メインメモリにオーバ−レイするメモリにデバイスドラ
イバを格納することによってそのオーバ−レイメモリを
有効利用できるようになり、周辺機器制御や電力管理機
能の拡張を効率良く実現することができる。
As described above in detail, according to the present invention,
By storing the device driver in the memory that overlays the main memory, the overlay memory can be effectively used, and the peripheral device control and power management function expansion can be efficiently realized.

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

【図1】この発明の一実施例に係るポータブルコンピュ
ータシステムのシステム構成を示すブロック図。
FIG. 1 is a block diagram showing a system configuration of a portable computer system according to an embodiment of the present invention.

【図2】同実施例のコンピュータシステムに設けられた
SMI要因レジスタの一例を示す図。
FIG. 2 is an exemplary view showing an example of an SMI factor register provided in the computer system of the embodiment.

【図3】同実施例のコンピュータシステムに設けられた
SMI要因フラグレジスタの一例を示す図。
FIG. 3 is an exemplary diagram showing an example of an SMI factor flag register provided in the computer system of the embodiment.

【図4】同実施例のコンピュータシステムに設けられた
ステータスレジスタの一例を示す図。
FIG. 4 is an exemplary diagram showing an example of a status register provided in the computer system of the embodiment.

【図5】同実施例のコンピュータシステムにおいてSM
I割り込みが発生してからBIOSのサスペンドSMI
ルーチンがコールされるまでの動作を説明するための
図。
FIG. 5 shows the SM in the computer system of the embodiment.
BIOS Suspend SMI after I interrupt occurs
The figure for demonstrating operation until a routine is called.

【図6】同実施例のコンピュータシステムに設けられた
SM−RAMのメモリッマップの一例を示す図。
FIG. 6 is a diagram showing an example of a memory map of the SM-RAM provided in the computer system of the embodiment.

【図7】図6に示されているSM−RAMのSMI用デ
バイスドライバ領域の構成を示す図。
7 is a diagram showing the configuration of an SMI device driver area of the SM-RAM shown in FIG.

【図8】図7に示されているSMI用デバイスドライバ
領域に設けられているデバイスドライバアドレステーブ
ル領域の具体例を示す図。
8 is a diagram showing a specific example of a device driver address table area provided in the SMI device driver area shown in FIG. 7. FIG.

【図9】同実施例のコンピュータシステムにおけるBI
OSのサスペンドSMIルーチンを説明するフローチャ
ート。
FIG. 9 is a BI in the computer system of the embodiment.
6 is a flowchart illustrating an OS suspend SMI routine.

【図10】同実施例のコンピュータシステムにおけるB
IOSのIRTルーチンを説明するフローチャート。
FIG. 10B in the computer system of the embodiment
6 is a flowchart illustrating an IRT routine of IOS.

【図11】同実施例のコンピュータシステムにおいてS
MI割り込みが発生してからBIOSのレジュームSM
Iルーチンがコールされるまでの動作を説明するための
図。
FIG. 11 is an S diagram of the computer system of the embodiment.
BIOS resume SM after MI interrupt occurs
The figure for demonstrating operation until I routine is called.

【図12】同実施例のコンピュータシステムにおけるB
IOSのレジュームSMIルーチンを説明するフローチ
ャート。
FIG. 12B in the computer system of the same embodiment
6 is a flowchart illustrating a resume SMI routine of IOS.

【図13】同実施例のコンピュータシステムにおけるA
PMドライバを利用した電力管理動作を説明するフロー
チャート。
FIG. 13A in the computer system of the same embodiment
The flowchart explaining the power management operation using a PM driver.

【図14】同実施例のコンピュータシステムにおいてS
M−RAMにAPMドライバ対応のインターフェースド
ライバを組み込んだ場合のデバイスドライバアドレステ
ーブル領域の具体例を示す図。
FIG. 14 S in the computer system of the embodiment
The figure which shows the specific example of the device driver address table area at the time of incorporating the interface driver corresponding to an APM driver in M-RAM.

【図15】同実施例のコンピュータシステムにおけるA
PMドライバを利用した具体的な電力管理処理の一例を
説明するフローチャート。
FIG. 15A in the computer system of the same embodiment
6 is a flowchart illustrating an example of a specific power management process using a PM driver.

【符号の説明】[Explanation of symbols]

11…CPU、12…I/Oゲートアレイ、13…メイ
ンメモリ、14…SM−RAM、15…BIOS−RO
M、16…リアルタイムクロック、31…電源コントロ
ーラ、141…SMI用デバイスドライバ領域、141
a…デバイスドライバアドレステーブル領域、141b
…デバイスドライバ常駐領域、141c…予約領域。
11 ... CPU, 12 ... I / O gate array, 13 ... Main memory, 14 ... SM-RAM, 15 ... BIOS-RO
M, 16 ... Real-time clock, 31 ... Power supply controller, 141 ... SMI device driver area, 141
a: device driver address table area, 141b
... Device driver resident area, 141c ... Reserved area.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 各種周辺機器が装着可能なコンピュータ
システムにおいて、 メインメモリに割り当てられているアドレス空間の一部
がマッピングされ、所定の割り込み信号に応答してアク
セス許可されるオーバーレイメモリであって、前記周辺
機器を管理するためのデバイスドライバプログラムを格
納するオーバーレイメモリと、 前記割り込み信号に応答して、前記オーバーレイメモリ
に格納されている前記デバイスドライバプログラムを起
動し前記周辺機器に対する制御を実行する手段とを具備
することを特徴とするコンピュータシステム。
1. An overlay memory in which a part of an address space allocated to a main memory is mapped in a computer system to which various peripheral devices can be attached and which is permitted access in response to a predetermined interrupt signal, An overlay memory storing a device driver program for managing the peripheral device, and means for activating the device driver program stored in the overlay memory and executing control for the peripheral device in response to the interrupt signal. A computer system comprising:
【請求項2】 各種オプションデバイスが接続可能なコ
ンピュータシステムにおいて、 メインメモリに割り当てられているアドレス空間の一部
がマッピングされ、所定の割り込み信号に応答してアク
セス許可されるオーバーレイメモリであって、前記オプ
ションデバイスのデータをセーブする拡張サスペンド処
理を実行するためのデバイスドライバプログラムを格納
するオーバーレイメモリと、 前記コンピュータシステムのステータスを前記オーバレ
イメモリにセーブし、前記コンピュータシステムをパワ
ーオフするサスペンド処理を実行するサスペンド手段
と、 前記オーバーレイメモリに格納されている前記デバイス
ドライバプログラムを起動して、前記オプションデバイ
スに対する拡張サスペンド処理を実行する拡張サスペン
ド手段と、 前記割り込み信号に応答して、前記拡張サスペンド手段
に前記拡張サスペンド処理を実行させる手段と、 前記拡張サスペンド手段による拡張サスペンド処理の実
行終了に応答して、前記サスペンド手段に前記サスペン
ド処理を実行させる手段とを具備することを特徴とする
コンピュータシステム。
2. In a computer system to which various optional devices can be connected, an overlay memory in which a part of an address space allocated to a main memory is mapped and access is permitted in response to a predetermined interrupt signal, An overlay memory that stores a device driver program for executing an extended suspend process that saves the data of the optional device, and a suspend process that saves the status of the computer system in the overlay memory and powers off the computer system Suspending means for executing, and an extended suspending means for activating the device driver program stored in the overlay memory to execute extended suspend processing for the optional device, A unit for causing the extended suspending unit to execute the extended suspending process in response to the interrupt signal; and a unit for causing the suspending unit to execute the suspending process in response to completion of execution of the extended suspending process by the extended suspending unit. A computer system comprising:
【請求項3】 前記サスペンド手段に前記サスペンド処
理を実行させる手段は、前記デバイスドライバプログラ
ムが前記オーバーレイメモリに格納されているか否かを
検出し、格納されてない際には前記サスペンド手段に前
記サスペンド処理を実行させる手段を含んでいることを
特徴とする請求項2記載のコンピュータシステム。
3. The means for causing the suspend means to execute the suspend process detects whether or not the device driver program is stored in the overlay memory, and when the device driver program is not stored, the suspend means causes the suspend means to suspend. The computer system according to claim 2, further comprising means for executing a process.
【請求項4】 前記サスペンド手段は前記コンピュータ
システムのハードウェアを制御する基本入出力プログラ
ムを含むことを特徴とする請求項2記載のコンピュータ
システム。
4. The computer system according to claim 2, wherein the suspending means includes a basic input / output program for controlling hardware of the computer system.
【請求項5】 前記コンピュータシステムの電源のオン
/オフを制御する電源スイッチ手段と、この電源スイッ
チ手段のオフ動作を検出し、この検出に応答して前記割
り込み信号を発生する手段とをさらに具備することを特
徴とする請求項2記載のコンピュータシステム。
5. A power supply switch means for controlling on / off of the power supply of the computer system, and means for detecting an off operation of the power supply switch means and generating the interrupt signal in response to the detection. The computer system according to claim 2, wherein:
【請求項6】 各種オプションデバイスが接続可能なコ
ンピュータシステムにおける電力管理方法において、 電源スイッチのオフ動作を検出するステップと、 電源スイッチのオフ動作の検出に応答して、メインメモ
リにオーバーレイする所定のオーバーレイメモリをアク
セス許可するステップと、 前記オーバーレイメモリに格納されている所定のデバイ
スドライバプログラムを起動し、前記オプションデバイ
スのデータをセーブするステップと、 前記オプションデバイスのデータのセーブ処理の終了に
応答して、前記コンピュータシステムのステータスを前
記オーバーレイメモリにセーブし、前記コンピュータシ
ステムをパワーオフするステップとを具備することを特
徴とする電力管理方法。
6. A power management method in a computer system to which various optional devices can be connected, the step of detecting an off operation of a power switch, and a predetermined overlay on the main memory in response to the detection of the off operation of the power switch. Responding to the step of permitting access to the overlay memory, the step of starting a predetermined device driver program stored in the overlay memory to save the data of the option device, and the end of the save processing of the data of the option device. And saving the status of the computer system in the overlay memory, and powering off the computer system.
【請求項7】 コンピュータシステムにおいて、 前記コンピュータシステムのハードウェアとアプリケー
ションプログラムの中間に位置し前記システムの動作を
管理するシステム管理手段であって、前記システムのア
イドル状態に応じて各種パワーセーブ要求を発行する電
力管理手段を有するシステム管理手段と、 前記コンピュータシステムのハードウェアの電力制御を
実行するハードウェア制御手段と、 メインメモリに割り当てられているアドレス空間の一部
がマッピングされ、所定の割り込み信号に応答してアク
セス許可されるオーバーレイメモリであって、前記シス
テム管理手段に設けられている電力管理手段と前記ハー
ドウェア制御手段との間のインターフェースのためのイ
ンターフェースプログラムを格納するオーバーレイメモ
リと、 前記システム管理手段に設けられている電力管理手段か
らのパワーセーブ要求に応答して前記割り込み信号を発
生する手段と、 この割り込み信号に応答してインターフェースプログラ
ムを起動し、前記ハードウェア制御手段に前記パワーセ
ーブ要求に応じたハードウェアの電力制御を実行させる
手段とを具備することを特徴とするコンピュータシステ
ム。
7. A computer system, which is a system management means located between hardware of the computer system and an application program and managing the operation of the system, wherein various power save requests are issued in accordance with an idle state of the system. A system management means having a power management means for issuing, a hardware control means for executing power control of the hardware of the computer system, and a part of the address space allocated to the main memory are mapped, and a predetermined interrupt signal And an overlay memory for storing an interface program for an interface between the power management means provided in the system management means and the hardware control means. A means for generating the interrupt signal in response to a power save request from the power management means provided in the system management means, and an interface program activated in response to the interrupt signal for the hardware control means. And a means for executing hardware power control according to the power save request.
JP4331801A 1992-12-11 1992-12-11 Computer system Pending JPH06180668A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP4331801A JPH06180668A (en) 1992-12-11 1992-12-11 Computer system
DE4342220A DE4342220A1 (en) 1992-12-11 1993-12-10 Portable computer system with battery power management system - has system management RAM mapped onto main memory and accessible upon interrupt for storing driver programs for management of peripherals, and BIOS for starting drivers for control of peripheral depending upon interrupt

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4331801A JPH06180668A (en) 1992-12-11 1992-12-11 Computer system

Publications (1)

Publication Number Publication Date
JPH06180668A true JPH06180668A (en) 1994-06-28

Family

ID=18247796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4331801A Pending JPH06180668A (en) 1992-12-11 1992-12-11 Computer system

Country Status (2)

Country Link
JP (1) JPH06180668A (en)
DE (1) DE4342220A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4899952A (en) * 1987-08-03 1990-02-13 Ryobi Ltd. Double bearing type fishing reel
US7346789B2 (en) 2004-12-03 2008-03-18 Sony Computer Entertainment, Inc. Multimedia reproducing apparatus having function for efficient use of memory

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5615392A (en) * 1995-05-05 1997-03-25 Apple Computer, Inc. Method and apparatus for consolidated buffer handling for computer device input/output
GB9603582D0 (en) 1996-02-20 1996-04-17 Hewlett Packard Co Method of accessing service resource items that are for use in a telecommunications system
US6055643A (en) * 1997-09-25 2000-04-25 Compaq Computer Corp. System management method and apparatus for supporting non-dedicated event detection
CN1308817C (en) * 2003-12-29 2007-04-04 联想(北京)有限公司 Starting method and device for multiple mode computer system
US7925815B1 (en) * 2006-06-29 2011-04-12 David Dunn Modifications to increase computer system security
US8661265B1 (en) 2006-06-29 2014-02-25 David Dunn Processor modifications to increase computer system security
US8238538B2 (en) 2009-05-28 2012-08-07 Comcast Cable Communications, Llc Stateful home phone service
DE102010026273B4 (en) 2009-07-07 2018-05-30 GPI Ges. f. Prüfstanduntersuchungen und Ingenieurdienstleistungen mbH Method for operating data processing units and data processing systems

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03231320A (en) * 1990-02-06 1991-10-15 Mitsubishi Electric Corp microcomputer system
JPH04236682A (en) * 1991-01-18 1992-08-25 Mitsubishi Electric Corp Microcomputer system
US5297282A (en) * 1991-05-29 1994-03-22 Toshiba America Information Systems, Inc. Resume processing function for the OS/2 operating system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4899952A (en) * 1987-08-03 1990-02-13 Ryobi Ltd. Double bearing type fishing reel
US7346789B2 (en) 2004-12-03 2008-03-18 Sony Computer Entertainment, Inc. Multimedia reproducing apparatus having function for efficient use of memory

Also Published As

Publication number Publication date
DE4342220A1 (en) 1994-06-16

Similar Documents

Publication Publication Date Title
JP2880863B2 (en) Suspend control method and system
JP3037826B2 (en) Mode switching method and apparatus
US6832311B2 (en) Information processing system and resume processing method used in the system
US5867703A (en) Common reset ROM
US5021983A (en) Suspend/resume apparatus and method for reducing power consumption in battery powered computers
US6154846A (en) System for controlling a power saving mode in a computer system
JP3869049B2 (en) Method for preventing loss of device configuration during standby in computer system and controller circuit for capturing device configuration
JP2002215597A (en) Multiprocessor device
US6681336B1 (en) System and method for implementing a user specified processing speed in a computer system and for overriding the user specified processing speed during a startup and shutdown process
US20040107359A1 (en) Utilizing the suspend state of an information handling system
JPH11194846A (en) Computer system and its system state control method
US6775734B2 (en) Memory access using system management interrupt and associated computer system
US6895517B2 (en) Method of synchronizing operation frequencies of CPU and system RAM in power management process
US5963738A (en) Computer system for reading/writing system configuration using I/O instruction
JPH06180668A (en) Computer system
JP3943764B2 (en) Computer system and CPU performance control method thereof
US9910677B2 (en) Operating environment switching between a primary and a secondary operating system
US6282645B1 (en) Computer system for reading/writing system configuration using I/O instruction
JP2007516536A (en) Method and apparatus for handling hot key input using interrupt handling visible to the operating system
US6766461B1 (en) Status switching method of an information apparatus to ensure an operating status when the apparatus is liable to receive vibration or shock
JP3626258B2 (en) Computer system
JPH10240367A (en) Computer system and suspend control method for the same
JPH0836485A (en) Information processing apparatus and method of controlling information processing apparatus
JPH11102238A (en) Computer system and suspend control method therefor
WO1998029807A1 (en) Real time services in backwardly compatible operating systems