JP3268310B2 - Memory management method - Google Patents

Memory management method

Info

Publication number
JP3268310B2
JP3268310B2 JP50293493A JP50293493A JP3268310B2 JP 3268310 B2 JP3268310 B2 JP 3268310B2 JP 50293493 A JP50293493 A JP 50293493A JP 50293493 A JP50293493 A JP 50293493A JP 3268310 B2 JP3268310 B2 JP 3268310B2
Authority
JP
Japan
Prior art keywords
memory
rom
address space
address
mode
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.)
Expired - Fee Related
Application number
JP50293493A
Other languages
Japanese (ja)
Other versions
JPH06508952A (en
Inventor
スピア,ダン
メイヤー,ラリー
Original Assignee
クウオーターデッキ コーポレーション
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 クウオーターデッキ コーポレーション filed Critical クウオーターデッキ コーポレーション
Publication of JPH06508952A publication Critical patent/JPH06508952A/en
Application granted granted Critical
Publication of JP3268310B2 publication Critical patent/JP3268310B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory
    • G06F12/1458Protection against unauthorised use of memory or access to memory by checking the subject access rights
    • G06F12/1491Protection against unauthorised use of memory or access to memory by checking the subject access rights in a hierarchical protection system, e.g. privilege levels, memory rings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/0292User address space allocation, e.g. contiguous or non contiguous base addressing using tables or multilevel address translation means

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Stored Programmes (AREA)
  • Storage Device Security (AREA)
  • Memory System (AREA)
  • Debugging And Monitoring (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

A method of increasing the amount of directly addressable memory address locations that can be allocated to RAM. An initialization routine is executed to identify ROM's in reserved memory address space that are to be reallocated. Suitable address space in extended memory is located and the ROM's are mapped into extended memory address space. A ROM access interceptor routine is implemented to trap ROM accesses and direct them to the reallocated address space. A ROM access handler routine is implemented to contain the ROM execution and to restore the computer system to a condition where it can continue execution of application or system software after the ROM access is completed. Memory addresses in reserved address space formerly allocated to ROM's can be reallocated to RAM or other memory devices.

Description

【発明の詳細な説明】 [発明の背景] (1)技術分野 本発明は一般的にはコンピュータ・メモリ・システム
の分野に関係し、具体的にはコンピュータ・メモリの使
用を制御し最適化するためのメモリ管理システムに関係
するものである。
Description: BACKGROUND OF THE INVENTION (1) Technical Field The present invention relates generally to the field of computer memory systems, and specifically controls and optimizes the use of computer memory. Related to a memory management system.

(2)背景技術 典型的なコンピュータ・システムは複数のモジュール
又は要素から構成される。コンピュータ・システムには
マイクロプロセッサなどの中央処理装置(CPU)を典型
的に含む。マイクロプロセッサは命令の取得、復号及び
実行を行うプログラム制御される装置である。コンピュ
ータ・システムはシステム・オペレーティング・ソフト
ウェア、アプリケーション・プログラム命令及びデータ
を記憶するための記憶要素も含む。これらの記憶要素は
読み出し専用メモリ(ROM),ランダム・アクセス・メ
モリ(RAM),ディスク記憶装置又はテープ記憶装置も
しくは他の適当な記憶手段とすることができる。
(2) Background Art A typical computer system is composed of a plurality of modules or elements. Computer systems typically include a central processing unit (CPU) such as a microprocessor. A microprocessor is a program-controlled device that acquires, decodes, and executes instructions. The computer system also includes storage elements for storing system operating software, application program instructions and data. These storage elements may be read-only memory (ROM), random access memory (RAM), disk storage or tape storage or other suitable storage means.

コンピュータ・システムは外部装置をマイクロプロセ
ッサに接続するための入出力(I/O)要素も典型的に含
む。メモリ管理ユニットやコプロセッサなどの専用部品
もコンピュータ・システムの一部となり得る。
Computer systems also typically include input / output (I / O) elements for connecting external devices to the microprocessor. Dedicated components such as memory management units and coprocessors can also be part of the computer system.

コンピュータはデータの処理に使用される。データの
処理を可能にするためには中央処理装置(CPU)が入力
データを使用するまで、その入力データを記憶しなけれ
ばならない。また、データを処理した後に出力データを
記憶しなければならない。いくつかの処理動作の間、デ
ータに対して命令を実行している間にCPUがデータの一
時的な記憶を必要とする場合がある。さらに、処理を制
御するアプリケーション・プログラムや、その下でプロ
グラムが走行するオペレーティング・システムをCPUか
らアクセスできなければならない。「メイン・メモリ」
と呼ばれる資源にこの情報を記憶することによってCPU
からこの情報を使用できるようになる。
Computers are used to process the data. To be able to process the data, the input data must be stored until the central processing unit (CPU) uses the input data. Also, the output data must be stored after processing the data. During some processing operations, the CPU may require temporary storage of data while executing instructions on the data. In addition, the CPU must be able to access the application program that controls the process and the operating system under which the program runs. "Main memory"
By storing this information in a resource called the CPU
Will be able to use this information from

メイン・メモリと呼ばれるメモリ要素はユーザ、デー
タ、プログラム又はプロセスに動的にアロケートされる
希少な資源である。メイン・メモリは通常はRAMなどの
シリコン・ベースのメモリである。多くの応用例ではメ
イン・メモリとしてダイナミック・ランダム・アクセス
・メモリ(Dymamic Random Access Memory:DRAM)が使
用される。プロセッサのメイン・メモリは「バイト」編
成になっている。すなわち、メモリは8ビット・バイト
のシーケンスとして構成され、このバイトがメモリから
アクセスされる情報の最小単位になる。ある規約によれ
ば、1つのロウ全体がロウ・アドレスによって選択さ
れ、カラムが8ビットのグループでアクセスされる。実
施によっては16ビット・ワード(2バイト)又は32ビッ
ト・ワード(4バイト)を1回でアクセスするものもあ
る。
Memory elements, called main memory, are scarce resources that are dynamically allocated to users, data, programs or processes. Main memory is typically silicon-based memory such as RAM. In many applications, a dynamic random access memory (DRAM) is used as a main memory. The main memory of the processor is organized in "bytes". That is, the memory is organized as a sequence of 8-bit bytes, which is the smallest unit of information accessed from the memory. According to a convention, an entire row is selected by row address, and columns are accessed in groups of 8 bits. In some implementations, a 16-bit word (2 bytes) or a 32-bit word (4 bytes) is accessed at one time.

メイン・メモリをCPUからアクセスできるようにする
ためにはメイン・メモリをCPUに直接又は間接に接続し
なければならない。中央処理装置に直接接続できるメイ
ン・メモリの量はCPUのアドレス・バスの幅によって制
限される。アドレス・バスはCPUとメモリの間に接続さ
れる。メモリをアクセスするため、CPUは1つのメモリ
・ロケーションだけをユニークに表現する値をアドレス
・バスに置くことができる。アドレス・バスに置くこと
のできるユニークな値の数はアドレス・バスの幅に応じ
て変化する。特定のマイクロプロセッサなど特定のタイ
プのCPUのアドレス・バスの幅は普通は固定されている
ので、CPUによってアドレッシングできるメモリ・ロケ
ーションの数には限界がある。
In order for main memory to be accessible from the CPU, the main memory must be connected directly or indirectly to the CPU. The amount of main memory that can be directly connected to the central processing unit is limited by the width of the CPU's address bus. The address bus is connected between the CPU and the memory. To access the memory, the CPU can place a value on the address bus that uniquely represents only one memory location. The number of unique values that can be placed on the address bus varies depending on the width of the address bus. Because the width of the address bus for certain types of CPUs, such as certain microprocessors, is usually fixed, the number of memory locations that can be addressed by the CPU is limited.

CPUによってアドレッシングできる以上のメモリをCPU
に接続することが望ましい場合がある。追加のメモリを
接続できるようにするためにある方法を使用して追加メ
モリをCPUに間接的に結合する。8088や8086などのマイ
クロプロセッサのアドレス・バスは20ビットである。n
ビットのアドレス・バスによってアドレッシングできる
メモリ・ロケーションの数は2nであるから20ビットのア
ドレス・バスによってアドレッシングできるメモリ・ロ
ケーションの数は220、すなわち、約100万(1M)であ
る。CPUから直接アクセスできるようにするためにはす
べてのメモリをアドレス・バスのビットによって表現で
きるユニークな値の数を越えないサイズの連続ブロック
の中に配置しなければならない。20ビットのアドレス・
バスの場合すべてのメモリを1Mの連続ブロックの中に置
かなければならない。
More memory than can be addressed by the CPU
It may be desirable to connect to Indirectly couple the additional memory to the CPU using some method to allow additional memory to be connected. The address bus for microprocessors such as the 8088 and 8086 is 20 bits. n
Since the number of memory locations that can be addressed by a bit address bus is 2 n , the number of memory locations that can be addressed by a 20-bit address bus is 2 20 , or about one million (1M). To be directly accessible by the CPU, all memory must be placed in contiguous blocks that are no larger than the number of unique values that can be represented by bits on the address bus. 20-bit address
In the case of a bus, all memory must be in 1M contiguous blocks.

理論的には間接的な方法によって追加メモリをアクセ
スすることもできるが、ほとんどのオペレーティング・
システムはメモリへの直接アクセスだけをサポートす
る。オペレーティング・システムが間接的に追加メモリ
をアクセスする方法をサポートしない場合、アプリケー
ション・プログラムとそのデータのすべてを、必要なシ
ステム・ソフトウェアのすべてとともに直接アクセスで
きる連続ブロックの中に格納しなければならない。
Although it is theoretically possible to access additional memory in an indirect way, most operating systems
The system only supports direct access to memory. If the operating system does not support a method of indirectly accessing additional memory, the application program and all of its data must be stored in contiguous blocks that can be accessed directly with all of the required system software.

アドレス・バスの幅によって、直接アクセスできるメ
モリの量が制限されるが、システム・ソフトウェアの占
有するメモリの量によって、アプリケーション・プログ
ラムが使用できる空きメモリの量が制限される。したが
って、アプリケーション・プログラムが使用できるメモ
リの量は直接アクセスできるメモリの総量より少ない。
アプリケーション・プログラムが、使用可能な量以上の
メモリを必要とする時には簡単にアクセスできる使用可
能メモリの量を増加するための方法を見い出さなければ
ならない。
While the width of the address bus limits the amount of memory that can be accessed directly, the amount of memory occupied by system software limits the amount of free memory that can be used by application programs. Therefore, the amount of memory that can be used by the application program is less than the total amount of memory that can be directly accessed.
When an application program needs more memory than is available, it must find a way to increase the amount of available memory that is easily accessible.

従来技術では使用可能メモリの量を増やすために多く
の試みが行われてきた。従来技術で使用された方法の1
つがエクスパンデッド・メモリ仕様(Expanded Memory
Specification:EMS)として知られている。EMSは直接ア
クセスできないエクステンデッド・メモリの一部をエク
スパンデッド・メモリとして使用するために予約し、ペ
ージに分割する。EMSではこのエクスパンデッド・メモ
リを1回に1ページずつCPUが直接アクセスできるアド
レス空間に切り替えることによって事実上無制限の量の
メモリをアクセスできる。しかし、EMSではページの変
更に時間がかかる。望みのデータが直接アクセスできる
メモリ内に配置されたEMSページ・フレーム内にない場
合、EMSではページ・フレームの現在の内容をページ・
アウトし、望みのデータを含むページをエクスパンデッ
ド・メモリからページ・インしなければならない。この
ようなページ変更は時間を要するのでコンピュータの処
理速度が低下する。また、EMSはすべてのアプリケーシ
ョン・ソフトウェアに一般的に適用可能ではない。EMS
を使用できる場合にそれを利用するよう特別にアプリケ
ーション・ソフトウェアを作成しなければならない。
In the prior art, many attempts have been made to increase the amount of available memory. One of the methods used in the prior art
One is Expanded Memory Specification
Specification: EMS). The EMS reserves a part of the extended memory that cannot be directly accessed for use as the expanded memory, and divides it into pages. The EMS allows access to a virtually unlimited amount of memory by switching the expanded memory to an address space that can be accessed directly by the CPU one page at a time. However, changing pages in EMS takes time. If the desired data is not in an EMS page frame located in directly accessible memory, the EMS stores the current contents of the page frame in the page page.
The page containing the desired data must be paged out of the expanded memory. Such a page change takes time, so that the processing speed of the computer is reduced. Also, EMS is not generally applicable to all application software. EMS
Application software must be specially written to take advantage of the software if it is available.

従来技術のもう1つの方法はLOADALL命令に頼る方法
である。LOADALL命令は80286マイクロプロセッサだけに
具えられた非サポート命令である。LOADALL命令は80286
だけに具えられているのでこの従来技術の方法は80286
マイクロプロセッサに基づくコンピュータでなければ役
に立たない。
Another prior art method relies on the LOADALL instruction. The LOADALL instruction is an unsupported instruction included in 80286 microprocessors only. LOADALL instruction is 80286
This prior art method is 80286
It is useless without a microprocessor-based computer.

従来技術のもう1つの方法はシステムROMに含まれる
システム・ソフトウェアの検査と再プログラミングを含
む。この方法では最小の量のメモリを占有しながらその
機能を実行するようにシステムROMを再プログラミング
することができる。この方法によればROMプログラミン
グが非効率的なために浪費されていたメモリ空間を他の
目的に使用できるようになる。しかし、この方法ではこ
の方法に使用できるROMのそれぞれのすべての改訂版を
人間がプログラミングし直す必要がある。
Another prior art method involves checking and reprogramming system software contained in a system ROM. In this way, the system ROM can be reprogrammed to perform its function while occupying a minimal amount of memory. In this way, memory space wasted due to inefficient ROM programming can be used for other purposes. However, this method requires that all revisions of each of the ROMs that can be used in this method be reprogrammed by humans.

これらの従来技術の方法のどれにも不便な点がある。
これらの方法の中のあるものは追加メモリを提供する
が、望みのデータをアクセス可能にするのに必要なステ
ップのせいでコンピュータ・システムの性能を低下させ
るものがある。特定の中央処理装置に基づくシステムで
なければ使えない方法もある。ROM固有でありROMのそれ
ぞれの改訂版ごとに別々に実施しなければならないもの
もあれば、特定のアプリケーション・プログラムに固有
でありすべてのアプリケーション・プログラムに一般的
に適用することができないものもある。
Each of these prior art methods has disadvantages.
Some of these methods provide additional memory, but others degrade the performance of the computer system due to the steps required to make the desired data accessible. Some methods can only be used with systems based on a particular central processing unit. Some are ROM specific and must be performed separately for each revision of the ROM; others are specific to a particular application program and may not generally apply to all application programs .

発明の概要 本発明はCPUの直接アクセス可能なアドレス空間内に
追加の使用可能メモリを提供する。本発明はCPU固有,RO
M固有又はアプリケーション・プログラム固有のどれで
もなく、従来技術の方法ほど性能を低下させないので、
従来技術の欠点がなく、より一般的に適用可能であると
同時によりよい性能を提供する。
SUMMARY OF THE INVENTION The present invention provides additional available memory in the CPU's directly accessible address space. The present invention is CPU specific, RO
It is neither M-specific nor application-program specific and does not degrade performance as compared to prior art methods,
It does not suffer from the disadvantages of the prior art and provides better performance while being more generally applicable.

本発明ではROMに格納されたシステム・ソフトウェア
をその通常のアドレス空間から移動し、そのアドレス空
間を他の目的に使用する。本発明はROMアドレス空間を
他の目的に使用でき、なおかつROMに格納されたソフト
ウェアにアクセスできる形でメモリを管理する。
In the present invention, the system software stored in the ROM is moved from its normal address space, and the address space is used for other purposes. The present invention manages the memory such that the ROM address space can be used for other purposes and still have access to software stored in the ROM.

本発明の好ましい実施例ではシステム・ソフトウェア
を含むROMをエクステンデッド・メモリのアドレス空間
にマッピングし、プロテクト・モードでアクセスする。
その後、元々ROMが配置されていたアドレス空間にエク
ステンデッドRAMをマッピングする。本発明の好ましい
実施例ではROMアクセスの試みのすべてを再配置されたR
OMイメージに方向変更し、元はROMであったアドレス空
間にマッピングされたエクステンデッドRAMをアプリケ
ーション・プログラムなど他の目的に使用できるように
する。
In the preferred embodiment of the present invention, the ROM containing the system software is mapped into the extended memory address space and accessed in protected mode.
After that, the extended RAM is mapped to the address space where the ROM was originally located. In a preferred embodiment of the present invention, all of the ROM access attempts are
Change the direction to an OM image so that the extended RAM mapped to the address space that was originally ROM can be used for other purposes such as application programs.

本発明の好ましい実施例はCPUの通常のメモリ・アド
レッシング範囲内でアドレッシング可能であり、このよ
うにしてデータに直接に簡単にアクセスできるメモリの
量を増やすための方法である。本発明の好ましい実施例
ではシステムROMとビデオROMを再配置するが、他のROM
にもこの方法を適用できる。
The preferred embodiment of the present invention is a method for increasing the amount of memory that is addressable within the normal memory addressing range of a CPU, and thus directly and easily accesses data. While the preferred embodiment of the present invention relocates the system ROM and video ROM, other ROMs may be used.
This method can also be applied to

本発明では初期設定ルーチンを実行してROMをメモリ
外部アドレス空間にマッピングする。インターセプト・
ルーチンをインストールしてROMアクセスをすべてイン
ターセプトする。エクステンデッドRAMの位置を突き止
め、アロケートして、以前にROMが占有していたアドレ
ス空間に配置する。インストールが終わったならば、普
通のアプリケーション・プログラムをこのコンピュータ
・システムで実行できる。元々ROMがあったアドレス空
間に配置される追加RAMはアプリケーション・プログラ
ムが使用するためにアロケートしたり、常駐終了(Term
inate−and−Stay Resident:TSR)プログラムの再配置
を含む(それに限定されるわけではない)他の目的のた
めにアロケートできる。ROMへのアクセスがある場合に
はROMアクセス・インターセプト・ルーチンがそのアク
セスをインターセプトし、再配置されたROMイメージに
方向変更する。再配置されたROMルーチンを呼び出す時
にはその実行を監視して、元のROMアドレス空間にあるR
OMデータ・テーブルやROMサブルーチンをアクセスした
りしないようにする。というのはこのアクセスが行われ
るとシステムがクラッシュするはずだからである。再配
置されたROMルーチンの実行が完了した後にこのROM実行
の結果のすべてを検査し、調節して、システムのエラー
やクラッシュをもたらす可能性のある不正確なデータを
除く。性能をさほど低下させず、特定のCPU,特定のROM
又は特定のアプリケーション・プログラムに限定されな
い形で動作することによって本発明はコンピュータ・シ
ステム内のCPUから簡単にアクセスできる使用可能メモ
リの量を増やすためのはるかに効率的で一般的に適用で
きる方法を提供する。
In the present invention, the ROM is mapped to the external address space of the memory by executing the initialization routine. Intercept
Install a routine to intercept all ROM accesses. Locate and allocate the extended RAM and place it in the address space previously occupied by the ROM. Once installed, ordinary application programs can be run on this computer system. Additional RAM located in the address space where the ROM originally resided can be allocated for use by application programs,
inate-and-Stay Resident (TSR) can be allocated for other purposes, including, but not limited to, program relocation. If there is access to the ROM, the ROM access intercept routine intercepts the access and redirects to the relocated ROM image. When the relocated ROM routine is called, its execution is monitored, and R in the original ROM address space is read.
Do not access the OM data table or ROM subroutines. This would cause the system to crash. Inspect and adjust all of the results of this ROM execution after the execution of the relocated ROM routine is completed, to eliminate inaccurate data that could result in system errors or crashes. Specific CPU, specific ROM without degrading performance
Alternatively, by operating in a manner not limited to a particular application program, the present invention provides a much more efficient and generally applicable method for increasing the amount of available memory that can be easily accessed by a CPU in a computer system. provide.

図面の簡単な説明 第1図 典型的なコンピュータ・システムの構造を示
すブロック図。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing the structure of a typical computer system.

第2図 コンピュータ・システムの可能なメモリ編成
を示すメモリ・マップ。
FIG. 2 is a memory map showing the possible memory organization of a computer system.

第3図 あるマイクロプロセッサのリアル・モードで
使用されるアドレッシング方法を示す図。
FIG. 3 is a diagram showing an addressing method used in a real mode of a certain microprocessor.

第4図 あるマイクロプロセッサのプロテクト・モー
ドで使用されるアドレッシング方法を示す図。
FIG. 4 is a diagram showing an addressing method used in a protected mode of a certain microprocessor.

第5図 典型的なコンピュータ・システムのメモリ編
成を示すメモリ・マップ。
FIG. 5 is a memory map showing the memory organization of a typical computer system.

第6図 従来技術の第1の方法を示すメモリ・マッ
プ。
FIG. 6 is a memory map showing a first method of the prior art.

第7図 従来技術の第2の方法を示すメモリ・マッ
プ。
FIG. 7 is a memory map showing a second method of the prior art.

第8図 従来技術の第4の方法を示すメモリ・マッ
プ。
FIG. 8 is a memory map showing a fourth prior art method.

第9図 従来技術の第3の方法を示すメモリ・マッ
プ。
FIG. 9 is a memory map showing a third prior art method.

第10図 従来技術の第5の方法を使用する典型的なコ
ンピュータ・システムの構造を示すブロック図。
FIG. 10 is a block diagram illustrating the structure of a typical computer system using a fifth prior art method.

第11図 従来技術の第5の方法を使用するコンピュー
タ・システムの可能なメモリ編成を示すメモリ・マッ
プ。
FIG. 11 is a memory map showing a possible memory organization of a computer system using the fifth method of the prior art.

第12図 従来技術の第5の方法を示すメモリ・マッ
プ。
FIG. 12 is a memory map showing a fifth method of the prior art.

第13図 本発明のプロテクト・モード実施例とマッピ
ング実施例を示すメモリ・マップ。
FIG. 13 is a memory map showing a protection mode embodiment and a mapping embodiment of the present invention.

第14図 本発明のプロテクト・モード実施例の初期設
定ルーチンを示す流れ図。
FIG. 14 is a flowchart showing an initialization routine of a protected mode embodiment of the present invention.

第15図 本発明のプロテクト・モード実施例の初期設
定ハンドラを示す流れ図。
FIG. 15 is a flowchart showing an initialization handler in a protected mode embodiment of the present invention.

第16図 本発明の初期設定ルーチンのマッピング実施
例を示す流れ図。
FIG. 16 is a flowchart showing a mapping embodiment of the initialization routine of the present invention.

第17図 本発明の初期設定ハンドラのマッピング実施
例を示す流れ図。
FIG. 17 is a flowchart showing a mapping embodiment of the initialization handler of the present invention.

発明の詳細な説明 コンピュータ・システム内で簡単にアクセスできる追
加メモリを提供する方法を説明する。以下の説明では本
発明の完全な説明を提供するためコンピュータ・システ
ムのタイプ,メモリ・アドレス・ロケーション,メモリ
の量やバス幅など多数の特定の詳細を記載する。しか
し、これらの特定の詳細なしで本発明を実施できること
は当業者には明白であろう。それ以外の場合では本発明
を無用に不明瞭にしないために周知の特徴を詳細に説明
することはしない。
DETAILED DESCRIPTION OF THE INVENTION A method is described for providing additional memory that is easily accessible in a computer system. In the following description, numerous specific details are set forth, such as type of computer system, memory address location, amount of memory and bus width to provide a complete description of the invention. It will be apparent, however, to one skilled in the art, that the present invention may be practiced without these specific details. In other instances, well-known features have not been described in detail so as not to unnecessarily obscure the present invention.

典型的なコンピュータ・アーキテクチャを第1図に示
す。このコンピュータ・システムにはCPU101,RAM(メイ
ン・メモリ)102,ROM(読み取り専用メモリ)103、及び
I/O(入出力)104が含まれ、これらのすべてがシステム
・バス107に結合される。I/Oブロック104はバス105を介
して、大容量記憶装置106などの他のシステムへのアク
セスを提供する。
A typical computer architecture is shown in FIG. The computer system includes a CPU 101, a RAM (main memory) 102, a ROM (read-only memory) 103, and
An I / O (input / output) 104 is included, all of which are coupled to the system bus 107. I / O block 104 provides access via bus 105 to other systems, such as mass storage device 106.

CPU101はコンピュータを制御し、命令を実行し、デー
タを処理する。CPU101はシステム・バス107を介して他
の要素と通信する。CPUはシステム・バス107を介してコ
ンピュータの他の要素から入力データを受け取り、シス
テム・バスを介してコンピュータの他の要素へ出力デー
タを送る。システム・バス107には普通アドレス・バ
ス、データ・バス及び他のさまざまな制御線が含まれ
る。アドレス・バスとデータ・バスの幅ならびに制御線
の数とタイプはコンピュータ・システムごとに異なる。
CPU 101 controls the computer, executes instructions, and processes data. CPU 101 communicates with other elements via system bus 107. The CPU receives input data from other components of the computer via the system bus 107 and sends output data to other components of the computer via the system bus. System bus 107 typically includes an address bus, a data bus, and various other control lines. The width of the address and data buses and the number and type of control lines vary from computer system to computer system.

RAM102,ROM103及びメモリ・マップドI/O104を含むコ
ンピュータ・システムの各要素に複数の別個のメモリ・
ロケーションが含まれる。CPU101がこれらのロケーショ
ンをアクセスできるようにするために各ロケーションに
固有のアドレスを割り当てる。アドレスのそれぞれはア
ドレス・バスを介して送ることのできる2進値の固有の
組合せである。ほとんどのメモリ・デバイスに複数のロ
ケーションが含まれるので、1つのメモリ・デバイスの
ロケーションのすべてのアドレスが通常は連続ブロック
として割り当てられる。これらのブロックに連続した形
でアドレスが割り当てられる(メモリにマッピングされ
る)場合が多い。しかし、割り当てられていないアドレ
スや将来の使用のために予約されたアドレスでギャップ
ができていてもよい。
Each of the elements of the computer system, including RAM 102, ROM 103 and memory mapped I / O 104, includes a plurality of separate memory
Location is included. Each location is assigned a unique address so that the CPU 101 can access these locations. Each of the addresses is a unique combination of binary values that can be sent over the address bus. Because most memory devices include multiple locations, all addresses at one memory device location are typically allocated as contiguous blocks. In many cases, addresses are assigned to these blocks in a continuous manner (mapped to a memory). However, gaps may be created with unassigned addresses or addresses reserved for future use.

メモリ・マップはコンピュータ・システムのメモリの
編成を理解するのに役立つ。典型的なメモリ・マップは
マイクロプロセッサがアクセスできる最下位アドレスか
ら始まり、マイクロプロセッサがアクセスできる最上位
アドレスまで延びる。メモリ・マップの1例を第2図に
示す。第2図のマップのメモリの最下位アドレスは領域
201として示されるが、メイン・メモリRAM102にアロケ
ートされる。領域202として示される次のアドレスはI/O
104にアロケートされる。領域203として示されるメモリ
・アドレスは未使用である。未使用アドレスの上位にあ
る領域204にはROMにアロケートされたメモリ・アドレス
が含まれる。領域205は追加RAMにアロケートされるメモ
リ・アドレスであり、領域206は追加ROMにアロケートさ
れるメモリ・アドレスである。第2図はコンピュータ・
システムのメモリ・アーキテクチャを設計する際の自由
度を示すためあくまで1例として提供した図である。こ
れは特定のコンピュータ・システムの実際のメモリ・マ
ップを表現したものではない。
The memory map helps to understand the organization of the memory of the computer system. A typical memory map starts at the lowest address accessible to the microprocessor and extends to the highest address accessible to the microprocessor. FIG. 2 shows an example of the memory map. The lowest address of the memory in the map of FIG.
Although shown as 201, it is allocated to main memory RAM102. The next address, shown as region 202, is I / O
Allocated to 104. The memory address shown as area 203 is unused. The area 204 above the unused addresses contains the memory addresses allocated to the ROM. Area 205 is a memory address allocated to the additional RAM, and area 206 is a memory address allocated to the additional ROM. Figure 2 shows a computer
FIG. 1 is a diagram provided as an example only to show a degree of freedom in designing a memory architecture of a system. It is not a representation of the actual memory map of a particular computer system.

コンピュータ・システムの動作は「オペレーティング
・システム」として知られる一連の命令によって制御さ
れる。オペレーティング・システムは入出力などコンピ
ュータ・システムの基本機能を制御するのに使用され、
通常はROM103などの永久記憶要素に記憶される。オペレ
ーティング・システムの例にMS−DOS(登録商標)又はP
C−DOSが含まれる。
The operation of a computer system is controlled by a series of instructions known as an "operating system." The operating system is used to control basic functions of the computer system, such as input and output,
Usually, it is stored in a permanent storage element such as the ROM 103. Examples of operating systems are MS-DOS® or P
C-DOS is included.

コンピュータ・システムはアプリケーション・プログ
ラムを実行するのに使用される。アプリケーション・プ
ログラムの例に含まれるのがワード・プロセッサ,スプ
レッドシート,ドローイング・プログラム,データベー
スなどである。アプリケーション・プログラムによって
はROMに格納されるものもある。しかし、一般的にはア
プリケーション・プログラムはディスク・ドライブなど
の大容量記憶装置に記憶される。
Computer systems are used to execute application programs. Examples of application programs include word processors, spreadsheets, drawing programs, databases, and the like. Some application programs are stored in ROM. However, in general, application programs are stored on a mass storage device such as a disk drive.

コンピュータ・システムの初期設定の時にCPU101によ
って実行されるアプリケーション・プログラムも大容量
記憶装置106からRAM102に転送される。CPU101が操作す
るデータもRAM102に格納される。
Application programs executed by the CPU 101 during initialization of the computer system are also transferred from the mass storage device 106 to the RAM 102. Data operated by the CPU 101 is also stored in the RAM 102.

アプリケーション・プログラムのサイズと量,オペレ
ーティング・システムのサイズ及びCPU101からアクセス
できるデータの量はメイン・メモリのサイズによって制
限される。無限の量のメモリがあれば理想的だが経済的
にも技術的にも不可能である。まず、ユーザが購入でき
るメモリの量に限界がある。次に、特定のコンピュータ
がサポートできるメモリの量に技術的な限界がある。特
定のコンピュータがサポートするメモリの量はそのコン
ピュータのベースとなる特定のCPUのタイプに依存す
る。
The size and amount of the application program, the size of the operating system, and the amount of data accessible from the CPU 101 are limited by the size of the main memory. An infinite amount of memory is ideal, but economically and technically impossible. First, there is a limit to the amount of memory that a user can purchase. Second, there are technical limitations on the amount of memory that a particular computer can support. The amount of memory supported by a particular computer depends on the particular CPU type on which the computer is based.

たとえば、IBMのパーソナルコンピュータは8088マイ
クロプロセッサをベースとしている。8088マイクロプロ
セッサのアドレス・バスは20ビットである。あるコンピ
ュータがアドレッシングできるメモリの量はそのアドレ
ス・バスの幅の関数である。nビットのアドレス・バス
を備えたCPUは2nバイト又は2nワードのメモリを直接ア
クセスできる。したがって、8088マイクロプロセッサは
約100万バイト又は100万ワード(1M)を直接アクセスで
きる。CPUのアドレス・バスの限界を越えて追加メモリ
を間接アクセスできるようにするための方法が開発され
てはいるが、このような方法は扱いにくくて非効率的で
ある場合が多い。したがって、アプリケーション・ソフ
トウェアが使用できる直接アクセス可能なメモリ空間が
できる限り多い状態を保って、アプリケーション・ソフ
トウェアが可能な限り効率的に動作できるようにするこ
とが望ましい。
For example, IBM personal computers are based on 8088 microprocessors. The address bus of the 8088 microprocessor is 20 bits. The amount of memory that a computer can address is a function of the width of its address bus. A CPU with an n-bit address bus can directly access 2 n bytes or 2 n words of memory. Thus, the 8088 microprocessor has direct access to about one million bytes or one million words (1M). Although methods have been developed to allow additional memory to be accessed indirectly beyond the limits of the CPU address bus, such methods are often cumbersome and inefficient. It is therefore desirable to keep as much as possible of the directly accessible memory space available to the application software so that the application software can operate as efficiently as possible.

できる限り多くの直接アクセス可能なメモリ空間をア
プリケーション・ソフトウェア用に予約し直接アクセス
可能なメモリ空間に収まるようにアプリケーション・ソ
フトウェアをできる限り小さくすることが理想的である
が、これが必ず達成できるとは限らない。システム・ソ
フトウェアはアプリケーション・ソフトウェアの管理と
制御のために必要であるからやはりメモリに常駐しなけ
ればならない。また、アプリケーション・ソフトウェア
の複雑さとユーザ・データの量が増加するにつれてアプ
リケーション・ソフトウェアに必要なメモリが増加す
る。
Ideally, as much of the directly accessible memory space as possible is reserved for application software and the application software is as small as possible to fit in the directly accessible memory space, but this is not always possible . System software must also reside in memory because it is needed for management and control of application software. Also, as the complexity of the application software and the amount of user data increase, the memory required for the application software increases.

さらに、TSR(常駐終了)として知られるプログラム
がコンピュータ・システム上で使用される場合が多い。
このようなプログラムは「ホット・キー」と「ポップア
ップ・ウィンドウ」を提供し、ビデオ・ディスプレイの
隅に時計を表示したりディスク・ドライブの活動を監視
するなどバックグラウンド・タスクの実行に使用され
る。TSRは他の多くの応用分野のために作成されてお
り、ユーザが自分のコンピュータに複数のTSRを同時に
常駐させることもしばしばである。TSRのそれぞれが自
分の配置されるメモリ空間を必要とするのでシステムに
TSRを追加するとメモリ必要量が増加する。
In addition, a program known as TSR (Resident Termination) is often used on computer systems.
Such programs provide "hot keys" and "pop-up windows" that are used to perform background tasks such as displaying a clock in the corner of a video display or monitoring disk drive activity. . TSRs have been created for many other applications, and users often have multiple TSRs resident on their computers at the same time. Since each TSR requires its own memory space,
Adding TSR increases memory requirements.

第5図は典型的なコンピュータ、すなわち、8088/808
6ファミリのマイクロプロセッサに基づいて、MS−DOSの
下で動作するIBMのパーソナル・コンピュータなどのコ
ンピュータのメモリ・マップを示す図である。第5図の
メモリ・マップは可能な唯一のメモリ・マップではな
く、典型的なメモリ・マップの1例である。このメモリ
・マップは一番下のメモリ・ロケーション0(501)か
ら一番上のメモリ内で最上位のロケーションまでという
形で編成されている。このメモリ・マップには3つの基
本領域がある。第1領域には最下位640Kのメモリが含ま
れ、コンベンショナル・メモリ502と呼ばれる。コンベ
ンショナル・メモリ502は読み取り動作と書き込み動作
の両方が可能なRAMだけから構成される。ただし、すべ
てのシステムが640K全体を含むわけではなく、メモリ空
間の一部が未使用のままであってもよい。
FIG. 5 shows a typical computer, ie, the 8088/808
FIG. 3 illustrates a memory map of a computer, such as an IBM personal computer, operating under MS-DOS, based on six families of microprocessors. The memory map of FIG. 5 is not the only possible memory map, but an example of a typical memory map. The memory map is organized from the bottom memory location 0 (501) to the top location in the top memory. This memory map has three basic areas. The first area includes the lowest 640K of memory and is referred to as conventional memory 502. The conventional memory 502 includes only a RAM capable of performing both a read operation and a write operation. However, not all systems include the entire 640K, and some of the memory space may remain unused.

初期のマイクロコンピュータのアドレス・バスは16ビ
ットであり、これによって64Kのアドレス空間がもたら
された。アプリケーションの必要とするメモリの量が増
加するにつれてマイクロコンピュータに16ビット・アド
レス・バスの制限を克服する必要が生じた。したがっ
て、IBMのパーソナルコンピュータは20ビット・アドレ
ス・バスをサポートするセグメント・アドレス方式と共
に市場に導入された。20ビット・アドレス・バスは1024
K又は1Mのアドレス空間を提供するが、これは16ビット
・バスの16倍のスペースである。1Mは16ビット・アドレ
ス・バスを備えるコンピュータの64Kと比較して膨大な
量のメモリであると思われた。さらに、当時のメモリ回
路は高価であったのでRAMメモリに関する人為的な制限
が640Kに設けられた。640Kから1Mまでの384Kのアドレス
空間は将来の使用、主にROMのために予約されていた。
後続モデルのコンピュータはオリジナルのIBM PCと後
方互換であり同一のPC−DOS/MS−DOSオペレーティング
・システムを使用するように設計されたので640Kの制限
が現代のコンピュータ上でアプリケーションに使用可能
なメモリの量を制約し続けている。
Early microcomputer address buses were 16 bits, which provided 64K of address space. As the amount of memory required by applications has increased, microcomputers have had to overcome the limitations of the 16-bit address bus. Thus, IBM's personal computers were introduced to the market with a segment addressing scheme supporting a 20-bit address bus. 1024 for the 20-bit address bus
It provides K or 1M address space, which is 16 times the space of a 16-bit bus. 1M seemed to be a huge amount of memory compared to 64K on a computer with a 16-bit address bus. In addition, the cost of the memory circuits at the time put an artificial limit on RAM memory at 640K. The 384K address space from 640K to 1M was reserved for future use, mainly ROM.
Subsequent models of computers were backward compatible with the original IBM PC and were designed to use the same PC-DOS / MS-DOS operating system, thus limiting the 640K limit of memory available to applications on modern computers. Continue to restrict the amount.

コンベンショナル・メモリ502はコンピュータ・シス
テムの重要な部分である。コンベンショナル・メモリは
システム・ソフトウェア,アプリケーション・ソフトウ
ェア,ユーザ・データ及びTSRやデバイス・ドライバを
含む他のコードとデータを記憶するのに使用される。第
5図に示すように、MS−DOSはメモリの最下位部分を使
用してそれ自体のコード506と関連データ507を格納す
る。MS−DOSはその上位にアプリケーション・ソフトウ
ェア,TSR及びデバイス・ドライバ(全体を要素512とし
て図示)を格納する。
Conventional memory 502 is an important part of a computer system. Conventional memory is used to store system software, application software, user data, and other code and data, including TSRs and device drivers. As shown in FIG. 5, MS-DOS uses its lowest part of memory to store its own code 506 and associated data 507. MS-DOS stores application software, a TSR, and a device driver (illustrated as an element 512 in its entirety).

メモリの第2の基本領域が384Kの予約済みメモリ503
である。これは640KのRAM限界の上位、1024Kまでのメモ
リ・アドレスにある。予約済みメモリ領域503は主に読
み取り専用デバイスであるROMによって占められる。予
約済みメモリ領域にあるROMにはシステムROM504,ビデオ
ROM505とおそらくはハード・ディスク・ドライブやネッ
トワーク・インターフェースなどの他の周辺装置用のRO
M514が含まれる。システムROM504にはコンピュータの基
本機能をサポートするコードとデータが格納される。ビ
デオROM505にはビデオ表示を伴う動作をサポートするた
めのコードとデータが格納される。他の周囲機器用のRO
M514はそれらの装置の動作をサポートする。
503K of reserved memory 503 with a second basic area of memory
It is. This is above the 640K RAM limit, at memory addresses up to 1024K. The reserved memory area 503 is mainly occupied by the ROM which is a read-only device. System ROM 504, video
RO for ROM505 and possibly other peripherals such as hard disk drives and network interfaces
M514 is included. The system ROM 504 stores codes and data that support the basic functions of the computer. The video ROM 505 stores codes and data for supporting operations involving video display. RO for other peripherals
M514 supports the operation of those devices.

ROMの他に予約済みメモリ領域503には他のタイプの特
殊メモリも含まれる。予約済みメモリ領域503にあるメ
モリのタイプの1つがビデオ・フレーム・バッファに使
用されるRAMである。ビデオ・フレーム・バッファは現
在ビデオ・ディスプレイに表示されている情報を格納す
るのに使用される。一般にビデオ・フレーム・バッファ
から情報を読み取ることと書き込むことの両方が可能で
あるが、ビデオ・フレーム・バッファは通常は一般情報
の記憶には使用できない。というのはビデオ・フレーム
・バッファがアクティブでなくその状態のままになるの
でない限り、ビデオ・フレーム・バッファに情報を書き
込むとビデオ・ディスプレイの外見が変化するからであ
る。
In addition to the ROM, the reserved memory area 503 includes other types of special memories. One type of memory in the reserved memory area 503 is the RAM used for the video frame buffer. The video frame buffer is used to store information currently being displayed on the video display. Although it is generally possible to both read and write information from a video frame buffer, the video frame buffer is typically not available for storing general information. Writing information to the video frame buffer changes the appearance of the video display, unless the video frame buffer is inactive and remains in that state.

予約済み領域503のうちでビデオ・フレーム・バッフ
ァのために使用される領域は特定のコンピュータ・シス
テムにインストールされたビデオ・ディスプレイ・アダ
プタの特定のタイプによって変化する。第5図に示すよ
うに、EGA又はVGAのビデオ・アダプタをインストールす
る場合、グラフィックス用の64Kのビデオ・フレーム・
バッファ508が640Kから704Kまでのメモリ空間を占有す
る。EGA又はVGAのアダプタはテキスト表示のために32K
のビデオ・フレーム・バッファも使用する。この32Kの
ビデオ・フレーム・バッファはモノクローム表示の場合
には704Kから736Kまで、カラー表示の場合には736Kから
768Kまでに配置される。MDAビデオ・アダプタをインス
トールする場合16Kのビデオ・フレーム・バッファ509が
704Kから720Kまでのメモリ空間を占有する。ハーキュリ
ーズ・ビデオ・アダプタをインストールする場合、64K
のビデオ・フレーム・バッファが704Kから768Kまでのメ
モリ空間を占有する。CGAビデオ・アダプタをシステム
にインストールする場合、ビデオ・フレーム・バッファ
510が736Kから768Kまでの32Kのメモリ空間を占有する。
EGA又はVGAのビデオ・アダプタをインストールする場
合、追加のメモリがビデオROMのために使用される。典
型的には768Kから784Kまでの16Kのメモリ空間がEGA又は
VGAのビデオROM505のために使用される。ただし、ビデ
オROM505はサイズが異なる場合もあり、異なるアドレス
空間に配置される場合もある。
Of the reserved area 503, the area used for the video frame buffer varies with the particular type of video display adapter installed on a particular computer system. As shown in Figure 5, when installing an EGA or VGA video adapter, a 64K video frame frame for graphics
Buffer 508 occupies memory space from 640K to 704K. EGA or VGA adapter is 32K for text display
Video frame buffer. This 32K video frame buffer is 704K to 736K for monochrome display and 736K for color display.
Deployed up to 768K. 16K video frame buffer 509 when installing MDA video adapter
Occupies memory space from 704K to 720K. 64K if installing Hercules Video Adapter
Video frame buffer occupies memory space from 704K to 768K. If a CGA video adapter is installed in the system, the video frame buffer
510 occupies 32K memory space from 736K to 768K.
When installing an EGA or VGA video adapter, additional memory is used for video ROM. Typically, 16K memory space from 768K to 784K is EGA or
Used for VGA video ROM505. However, the video ROM 505 may be different in size and may be arranged in a different address space.

システムROM504はコンピュータの基本動作をサポート
するが典型的にはたとえば960Kから1024Kまでの予約済
みメモリ領域503の最上位64Kを占有する。予約済みメモ
リ領域503の残りのスペースは未使用か、周辺装置をサ
ポートするROMやEMSページ・フレームを含む他の目的に
使用されるかのどちらかである。
System ROM 504 supports the basic operation of the computer, but typically occupies the top 64K of reserved memory area 503, for example from 960K to 1024K. The remaining space in the reserved memory area 503 is either unused or used for other purposes, including ROM and EMS page frames supporting the peripheral devices.

メモリの第3の基本領域は1Mを越えるすべてのメモリ
を含むエクステンデッド・メモリ511である。8088/8086
マイクロプロセッサはアドレス・バスが20ビットしかな
いので1Mのメモリしかアドレッシングできず、エクステ
ンデッド・メモリ511を簡単にはサポートできない。802
86など24ビットのアドレッシング能力を持つマイクロプ
ロセッサは予約済みメモリ503とコンベンショナル・メ
モリ502の1Mの他に、15Mのエクステンデッド・メモリ51
1を含む16Mまでのメモリをアドレッシングできる。8038
6や80486など32ビットのアドレッシング能力を持つマイ
クロプロセッサは予約済みメモリ503とコンベンショナ
ル・メモリ502の1Mの他に4095Mのエクステンデッド・メ
モリ511を含む4Gまでのメモリをアドレッシングでき
る。
The third basic area of memory is the extended memory 511, which contains all memory above 1M. 8088/8086
Microprocessors can only address 1M of memory because the address bus has only 20 bits, and cannot easily support extended memory 511. 802
A microprocessor with 24-bit addressing capability, such as 86, has 15M of extended memory 51 in addition to 1M of reserved memory 503 and conventional memory 502.
Addresses up to 16M of memory, including 1. 8038
Microprocessors having 32-bit addressing capability, such as 6 and 80486, can address up to 4G of memory including 4095M of extended memory 511 in addition to 1M of reserved memory 503 and conventional memory 502.

エクステンデッド・メモリ511のうちで1Mの直上に置
かれる領域をハイ・メモリ・エリア513と呼ぶ場合があ
る。ハイ・メモリ・エリア513は従来技術のハイ・メモ
リ技法を使用してアドレッシングできる65520個のメモ
リ・ワードから構成される。
An area of the extended memory 511 that is located immediately above 1M may be referred to as a high memory area 513. High memory area 513 consists of 65520 memory words that can be addressed using prior art high memory techniques.

第5図の従来技術のメモリ・マッピング・システムの
欠点は1メガバイトのメモリしか直接アクセスできない
ことである。その1メガバイトの中にRAMアドレッシン
グに関して640Kの人為的な制限が設けられている。しば
しば、ユーザは640Kを越えるRAMを直接アドレッシング
できることを必要とする。RAMアドレッシングの人為的
な640K制限を変更できないので追加RAMを提供しようと
する従来技術の試みはRAMカットオフと1メガバイト限
界の間の384Kの予約メモリの利用に焦点を置いている。
いくつかの従来技術の方法を以下で説明する。
A disadvantage of the prior art memory mapping system of FIG. 5 is that only one megabyte of memory can be directly accessed. Within that one megabyte there is a 640K artificial limit on RAM addressing. Often, users need to be able to directly address more than 640K of RAM. Prior art attempts to provide additional RAM since the artificial 640K limit of RAM addressing cannot be changed have focused on using 384K reserved memory between the RAM cutoff and the 1 megabyte limit.
Some prior art methods are described below.

[従来技術] 従来技術の第1の方法では追加のコンベンショナル・
メモリとして使用するためコンベンショナル・メモリ60
2の640K限界の真上の予約メモリ603をアロケートする。
第5図を参照すると、要素601として示される640Kから7
04Kまでの予約メモリ・アドレス空間がEGA/VGAビデオ・
フレーム・バッファのためにアロケートされる。704Kか
ら736Kまでの予約メモリはMDA/ハーキュリーズ・ビデオ
・フレーム・バッファのためにアロケートされる。736K
から768Kまでの予約メモリ・アドレス空間はCGAビデオ
・フレーム・バッファのためにアロケートされる。しか
し、ほとんどのコンピュータ・システムには1種類のビ
デオ・ディスプレイ・アダプタしかない。あるコンピュ
ータ・システムにCGA又はMDA/ハーキュリーズのビデオ
・アダプタがあるがEGA/VGAビデオ・アダプタがない場
合、要素601として図示されるEGA/VGAビデオ・フレーム
・バッファのためにアロケートされる640Kから704Kまで
のメモリは未使用のままになり、コンベンショナル・メ
モリ602の拡張としてアプリケーション・プログラムが
使用するために再アロケートすることができる。あるコ
ンピュータ・システムにCGAビデオ・アダプタがあるがM
DA/ハーキュリーズ又はEGA/VGAのアダプタがない場合、
MDA/ハーキュリーズとEGA/VGAのビデオ・フレーム・バ
ッファのためにアロケートされる640Kから736Kまでのメ
モリ空間が未使用のままになりコンベンショナル・メモ
リ602を736Kまで拡張できる。
[Prior Art] In the first method of the prior art, additional conventional
Conventional memory for use as memory 60
Allocate the reserved memory 603 directly above the 640K limit of 2.
Referring to FIG. 5, 640K through 7 shown as element 601
Reserved memory address space up to 04K is EGA / VGA video
Allocated for frame buffer. Reserved memory from 704K to 736K is allocated for the MDA / Hercules video frame buffer. 736K
Up to 768K of reserved memory address space is allocated for the CGA video frame buffer. However, most computer systems have only one type of video display adapter. If a computer system has a CGA or MDA / Hercules video adapter but no EGA / VGA video adapter, 640K to 704K allocated for the EGA / VGA video frame buffer illustrated as element 601 Memory remains unused and can be reallocated for use by application programs as an extension of conventional memory 602. My computer system has a CGA video adapter, but I have a M
If there is no DA / Hercules or EGA / VGA adapter,
The 640K to 736K memory space allocated for MDA / Hercules and EGA / VGA video frame buffers remains unused, allowing the conventional memory 602 to expand to 736K.

コンベンショナル・メモリ602の限界を640Kの上に押
し上げるためには、まず、そのシステムにインストール
されているビデオ・ディスプレイ・アダプタのタイプを
判定しなければならない。存在するビデオ・ディスプレ
イ・アダプタのタイプに応じて外部メモリから適当な量
の未使用RAMを640Kを越えて640Kと連続している未使用
のアドレス空間にマッピングしなければならない。その
後、アプリケーション・ソフトウェアやTSRにメモリを
供給するためのメモリ・アロケーション手続きを修正し
て640K限界を越えるメモリをアロケートできるようにし
なければならない。
To push the limit of conventional memory 602 above 640K, one must first determine the type of video display adapter installed in the system. Depending on the type of video display adapter present, an appropriate amount of unused RAM from external memory must be mapped to unused address space beyond 640K and contiguous with 640K. Then, the memory allocation procedure for supplying memory to application software and the TSR must be modified to allow memory above the 640K limit to be allocated.

この方法は簡単にアクセスできるメモリの量を増加さ
せるが、複数の欠点がある。第1に、この方法はますま
す一般的になりつつあるEGAディスプレイ又はVGAディス
プレイを備えたコンピュータ・システムでは役に立たな
い。第2に、EGAディスプレイ又はVGEディスプレイのな
いシステムであってもこの方法によって使用可能にでき
るメモリの量はごくわずかである。MDAディスプレイ又
はハーキュリーズ・ディスプレイのあるシステムでは64
Kを使用可能にすることしかできない。MGAディスプレイ
しかないシステムであっても96Kを使用可能にすること
しかできない。
While this approach increases the amount of easily accessible memory, it has several disadvantages. First, this method is useless in computer systems with an increasingly popular EGA or VGA display. Second, the amount of memory that can be made available by this method even for systems without an EGA or VGE display is negligible. 64 for systems with an MDA or Hercules display
You can only enable K. Even systems with only MGA displays can only enable 96K.

従来技術の第2の方法は第1の方法に似ている。この
方法にも第6図に示されるようにコンベンショナル・メ
モリの640K限界を予約メモリ領域に押し上げることが含
まれる。しかし、この方法は他の目的に使用されている
予約メモリの再配置も行われるという点が従来技術の第
1の方法と異なる。この方法を使用することからもたら
されるメモリ・マップを第7図に示す。この方法を用い
るとビデオRAM703及びビデオROM704ならびに入出力(I/
O)メモリ705及びTSRメモリ706を予約メモリ領域内でで
きる限り上位のメモリ・ロケーションに再配置してでき
る限り多くの未使用の予約メモリ・アドレス空間をコン
ベンショナル・メモリ701と640K境界に連続して使用可
能にすることができる。実際に、コンベンショナル・メ
モリ701の640K限界を900Kまで押し上げることができ
る。
The second prior art method is similar to the first. This method also involves pushing the 640K limit of conventional memory to the reserved memory area, as shown in FIG. However, this method differs from the first method of the prior art in that the reserved memory used for another purpose is also relocated. The memory map resulting from using this method is shown in FIG. Using this method, the video RAM 703 and the video ROM 704 and the input / output (I /
O) The memory 705 and the TSR memory 706 are relocated to the highest possible memory location in the reserved memory area, and as much unused reserved memory address space as possible is continuously connected to the conventional memory 701 and the 640K boundary. Can be enabled. In fact, the 640K limit of conventional memory 701 can be pushed up to 900K.

この方法を実施するためには、まず、そのシステムに
インストールされているビデオ・ディスプレイ・アダプ
タのタイプを判定しなければならない。やはり予約メモ
リ領域708の一部を占有する他のI/Oデバイスも判定しな
ければならない。その後、ビデオRAM703,ビデオROM704,
他のI/Oメモリ705及びTSRメモリ706を予約メモリ領域70
8の最上位にあるシステムROM707の真下の領域に再マッ
ピングしなければならない。その後、ビデオRAM703,ビ
デオROM704,I/Oメモリ705及びTSRメモリ706を指す割り
込みポインタその他すべてのポインタをリダイレクト
(宛先変更)して、このメモリが再配置された新しいメ
モリ空間を反映させなければならない。次に、640Kと連
続する予約メモリ・アドレス空間の使用可能ブロックに
外部メモリから適当な量の未使用RAMをマッピングしな
ければならない。最後に、アプリケーション・ソフトウ
ェアとTSRのためのメモリ・アロケーション手続きを修
正してフィル・メモリ702と呼ばれる640Kの上位にある
予約メモリのうちで使用可能にされた部分をアロケート
できるようにしなければならない。
To implement this method, one must first determine the type of video display adapter installed in the system. Other I / O devices that also occupy a portion of the reserved memory area 708 must be determined. After that, video RAM703, video ROM704,
Reserve I / O memory 705 and TSR memory 706 in reserved memory area 70
8 must be remapped to the area directly below the top of the system ROM 707. Thereafter, the video RAM 703, video ROM 704, I / O memory 705, and interrupt pointers pointing to the TSR memory 706 and all other pointers must be redirected to reflect the new memory space where this memory has been relocated. . Next, an appropriate amount of unused RAM from external memory must be mapped to available blocks in the reserved memory address space contiguous with 640K. Finally, the memory allocation procedure for the application software and the TSR must be modified to allow the allocated portion of the reserved memory above 640K, called the fill memory 702, to be made available.

この従来技術の第2の方法にも欠点がある。この方法
では多くとも260Kの予約メモリしかアクセスできない。
また、ビデオRAM703はしばしばアプリケーション・ソフ
トウェアが直接アクセスするので、アクセスの試みのす
べてをつかまえビデオRAM703が再配置されたメモリ空間
にリダイレクトすることは困難である。
This second prior art method also has disadvantages. This method can only access at most 260K of reserved memory.
Also, because the video RAM 703 is often accessed directly by application software, it is difficult to catch all access attempts and redirect the video RAM 703 to the relocated memory space.

従来技術の第3の方法は初めの2つとは多少異なる形
で動作する。これを第8図に示す。TSR,デバイス・ドラ
イバ及びネットワーク・インターフェース・プログラム
803は普通は640K未満のコンベンショナル・メモリ801に
配置されるが、そうでなければアプリケーション・ソフ
トウェアが使用できるはずのコンベンショナル・メモリ
の一部を占有するので、これらのプログラムをコンベン
ショナル・メモリ801の外部に移動できるならばより多
くのメモリをアプリケーション・ソフトウェアが使用で
きるはずである。従来技術の第3の方法ではTSR,デバイ
ス・ドライバ及びネットワーク・インターフェース・プ
ログラム803をコンベンショナル・メモリ801から予約メ
モリ802に移動することによってアプリケーション・ソ
フトウェアが使用できるコンベンショナル・メモリ801
の量を増やす。
The third prior art method operates in a slightly different manner than the first two. This is shown in FIG. TSR, device driver and network interface program
Although the 803 is typically located in conventional memory 801 below 640K, it occupies some of the conventional memory that could otherwise be used by application software, so these programs are stored outside of conventional memory 801. More memory should be available to application software. In the third prior art method, the conventional memory 801 that can be used by application software by moving the TSR, device driver and network interface program 803 from the conventional memory 801 to the reserved memory 802.
Increase the amount of

この方法を実施するためには、まず、未使用の予約メ
モリ806の量を判定しなければならない。また、TSR,デ
バイス・ドライバ及びネットワーク・インターフェース
・ドライバ803が占有するコンベンショナル・メモリの
量も判定しなければならない。その後、予約メモリ領域
にエクステンデッド・メモリから十分な量のアロケート
されていないRAMをマッピングしてTSR,デバイス・ドラ
イバ及びネットワーク・インターフェース・プログラム
のためのメモリ空間を供給しなければならない。次に、
TSR,デバイス・ドライバ及びネットワーク・インターフ
ェース・プログラム803を予約メモリ802内の使用可能メ
モリ806に再配置しなければならない。
In order to implement this method, the amount of unused reserved memory 806 must first be determined. Also, the amount of conventional memory occupied by the TSR, device driver, and network interface driver 803 must be determined. Thereafter, a sufficient amount of unallocated RAM from the extended memory must be mapped to the reserved memory area to provide memory space for the TSR, device driver and network interface program. next,
The TSR, device driver and network interface program 803 must be relocated to available memory 806 in reserved memory 802.

この従来技術の第3の方法にも欠点がある。まず、こ
の方法ではアロケートされていない予約メモリ空間806
しか使用できない。この方法ではROM,ビデオ・フレーム
・バッファ又は他の用途にアロケートされている予約メ
モリ空間807を使用できない。また、TSR,デバイス・ド
ライバ及びネットワーク・インターフェース・プログラ
ム803の再配置はそれらに対する参照のすべてが確実に
新しいロケーション804,805にリダイレクトされるよう
にするために注意深く行わなければならない。
This third prior art method also has disadvantages. First, the reserved memory space 806 that is not allocated in this way
Can only be used. This method does not use reserved memory space 807 allocated for ROM, video frame buffer or other uses. Also, the relocation of TSRs, device drivers and network interface programs 803 must be done carefully to ensure that all references to them are redirected to new locations 804,805.

従来技術の第4の方法はいわゆるハイ・メモリ・エリ
アに関連する方法である。この方法を使用することから
もたらされるメモリ・マップを第9図に示す。この方法
は80286で実施されたセグメント・アドレッシング方式
の例外に基づいている。セグメント・アドレッシング方
式では16ビットのセグメントと16ビットのオフセットを
組み合わせて20ビットのアドレスを生成する。20ビット
のアドレスは理論的には1Mまでに制限されるばずである
が、セグメントとオフセットの特定の組合せを用いると
1M限界を越えるアドレスを得ることができる。8088及び
8086マイクロプロセッサは可能なアドレスの範囲を1Mま
でに制限するよう設計されたが80286マイクロプロセッ
サにはそのような保護機構がない。80286マイクロプロ
セッサはメモリ・アドレスに対する1M制限を厳格に維持
するわけではないのでこの方法を80286プロセッサと共
に使用すると、ハイ・メモリ・エリア(HMA)903と呼ば
れる、1Mの真上に位置する追加の64Kのメモリをアクセ
スできるようになる。
A fourth prior art method relates to a so-called high memory area. The memory map resulting from using this method is shown in FIG. This method is based on the exception of the segment addressing scheme implemented in 80286. The segment addressing method combines a 16-bit segment and a 16-bit offset to generate a 20-bit address. A 20-bit address should theoretically be limited to 1M, but with certain combinations of segments and offsets
Addresses exceeding the 1M limit can be obtained. 8088 and
The 8086 microprocessor was designed to limit the range of possible addresses to 1M, but the 80286 microprocessor lacks such protection. Using this method with the 80286 processor, the 80286 microprocessor does not strictly enforce the 1M limit on memory addresses, so an additional 64K directly above the 1M, called the High Memory Area (HMA) 903 Memory can be accessed.

この方法を使用するためには、まず、セグメント・ア
ドレッシング方式を使用する時に最初の16ビットのセグ
メントを格納するのに使用される「セグメント・レジス
タ」と呼ばれるレジスタにFFFFHをロードする。その
後、「オフセット・レジスタ」と呼ばれるレジスタに10
HとFFFFHの間の値をロードする。そうすると、マイクロ
プロセッサはコンベンショナル・メモリ901へのアクセ
スであるかのようにハイ・メモリのアクセスを実行す
る。
To use this method, first load FFFFH into a register called the "segment register" that is used to store the first 16-bit segment when using the segment addressing scheme. After that, 10 registers are called "offset registers".
Load a value between H and FFFFH. The microprocessor then performs a high memory access as if it were an access to conventional memory 901.

この従来技術の第4の方法にはそれに関連する欠点が
ある。この方法は8088又は8086マイクロプロセッサに基
づくコンピュータでは機能しないので、初期のPCやその
互換機では使用できない。また、この方法によってもた
らされるメモリの量は64Kに限られる。さらに、アプリ
ケーション・ソフトウェアはHMAをアロケートし、アク
セスするよう特別に作成しなければならず、セグメント
計算やHMAへの直接のディスク読み書きを含むHMAアクセ
スに関する制約に違反してはならない。また、この方法
は広く知られており、この方法を使用してより多くのメ
モリを取得するソフトウェアが作成されているので、こ
の方法によってもたらされるメモリはおそらくほとんど
のコンピュータ・システムで他の用途に使用することが
できない。
This fourth prior art method has disadvantages associated with it. This method does not work on computers based on 8088 or 8086 microprocessors and cannot be used on early PCs or compatibles. Also, the amount of memory provided by this method is limited to 64K. In addition, application software must specifically allocate and access the HMA and must not violate restrictions on HMA access, including segment calculations and direct disk reads and writes to the HMA. Also, since this method is widely known and software has been created to use this method to get more memory, the memory provided by this method will probably be available for other uses in most computer systems. Can not be used.

従来技術の第5の方法ではメモリをページに分割し、
データをアクセスする時にその望みのデータを含むペー
ジがアクセス可能なメモリに確実に含まれるようにす
る。この方法には2つのバリエーションがある。第1の
バリエーションはエクスパンデッド・メモリ仕様(Expa
nded Memory Specification:EMS)と呼ばれる。EMSを第
12図に示す。EMSはエクステンデッド・メモリから予約
メモリ領域1202内のページ・フレーム1203にバンク切換
してどの時点でも1M未満のメモリ空間に1つ又は少数の
ページしか存在しないのに大量のエクステンデッド・メ
モリを使用できるようにする。EMSと共に使用する時に
はエクステンデッド・メモリをエクスパンデッド・メモ
リ1204と呼ぶ。第2のバリエーションは仮想メモリと呼
ばれる。仮想メモリを第10図に示す。仮想メモリを用い
るシステムの可能なメモリ・マップの1つを第11図に示
す。仮想メモリを使用すると物理メモリ1002に格納でき
ない情報をハード・ディスク・ドライブなどのI/Oデバ
イスに記憶できるようになる。データはページに分割さ
れCPU1001が必要とする時だけにディスク・ドライブか
ら物理メモリにロードされる。したがって、大量のデー
タ・ページをハード・ディスクに記憶できるとともに物
理メモリ1002にわずかのページを保持するだけでよい。
A fifth prior art method divides the memory into pages,
When accessing data, ensure that the page containing the desired data is included in the accessible memory. There are two variations on this method. The first variation is the expanded memory specification (Expa
nded Memory Specification (EMS). EMS first
Figure 12 shows. EMS bank switches from extended memory to page frame 1203 in reserved memory area 1202 so that at any point in time there is only one or a small number of pages in less than 1M of memory space, a large amount of extended memory can be used To When used with an EMS, the extended memory is called an expanded memory 1204. The second variation is called virtual memory. The virtual memory is shown in FIG. One possible memory map for a system using virtual memory is shown in FIG. The use of the virtual memory allows information that cannot be stored in the physical memory 1002 to be stored in an I / O device such as a hard disk drive. Data is divided into pages and loaded from disk drives into physical memory only when needed by CPU 1001. Thus, a large number of data pages can be stored on the hard disk and only a few pages need to be kept in physical memory 1002.

EMSを使用するためにはエクスパンデッド・メモリ120
4をページに分割しなければならない。また、予約メモ
リ内の1領域をページ・フレーム1203として使用するた
めにアロケートしなければならない。ページの内容とエ
クスパンデッド・メモリ内でのロケーションを含むペー
ジのディレクトリを維持しなければならない。一旦EMS
が初期設定され動作状態になったならば、EMSをサポー
トするソフトウェアは望みのEMSデータがEMSページ・フ
レーム1203に含まれるようにするためにメモリ・アクセ
スを監視しなければならない。望みのEMSデータがアク
セスの時点でEMSページ・フレーム1203に含まれない場
合、EMSをサポートするソフトウェアは望みのデータの
ための余地を作るためにページ・フレーム1203のうちの
どのページをページ・フレームからバンク切り替えして
追い出すかを決定しなければならない。その後、このソ
フトウェアはエクスパンデッド・メモリ1204から適当な
ページを見つけなければならない。その後、この適当な
ページをページ・フレーム1203のうちの使用可能なペー
ジにロードしなければならない。その後、ページ・フレ
ーム1203内の適当なアドレスへメモリ・アクセスをリダ
イレクトして望みのデータを読み書きできるようにしな
ければならない。
Expanded memory 120 to use EMS
4 must be divided into pages. Also, an area in the reserved memory must be allocated for use as page frame 1203. A page directory must be maintained that contains the page contents and location in expanded memory. Once EMS
Once is initialized and operational, software supporting EMS must monitor memory accesses to ensure that the desired EMS data is included in the EMS page frame 1203. If the desired EMS data is not included in the EMS page frame 1203 at the time of access, software supporting EMS will determine which of the page frames 1203 page page to make room for the desired data. You have to decide if you want to switch bank and kick out. Thereafter, the software must find the appropriate page from expanded memory 1204. This appropriate page must then be loaded into an available page of the page frame 1203. Thereafter, the memory access must be redirected to the appropriate address in the page frame 1203 so that the desired data can be read and written.

仮想メモリ・システムを使用するためにはハード・デ
ィスク上にアロケートされた仮想メモリ1003をページに
分割しなければならない。ページの内容とメモリ内のロ
ケーションを含むページのディレクトリを維持しなけれ
ばならない。一旦仮想メモリ・システムが初期設定され
動作状態になったならば、仮想メモリ・システムは望み
のデータが物理メモリ1002に含まれるようにするために
メモリ・アクセスを監視しなければならない。望みの仮
想メモリ・データがアクセスの時点で物理メモリ1002に
含まれない場合、仮想メモリ・システムは将来アクセス
される可能性が最も低いメモリのページを判定しなけれ
ばならず、それらをハード・ディスクに書き戻さなけれ
ばならない。その後、仮想メモリ・システムはハード・
ディスクの仮想メモリ1003から適当なページを見つけな
ければならない。その後、適当なページを物理メモリ10
02の選択されたページにロードしなければならない。そ
の後、新たにロードされたページ内の適当なアドレスに
メモリ・アクセスをリダイレクトして望みのデータを読
み書きできるようにしなければならない。
In order to use the virtual memory system, the virtual memory 1003 allocated on the hard disk must be divided into pages. A page directory must be maintained, including the page contents and locations in memory. Once the virtual memory system is initialized and operational, the virtual memory system must monitor memory accesses to ensure that the desired data is contained in physical memory 1002. If the desired virtual memory data is not contained in physical memory 1002 at the time of the access, the virtual memory system must determine which pages of memory are least likely to be accessed in the future, Must be written back to After that, the virtual memory system
A suitable page must be found from the virtual memory 1003 of the disk. After that, the appropriate page is
Must load on 02 selected page. Thereafter, the memory access must be redirected to the appropriate address in the newly loaded page so that the desired data can be read and written.

EMSと仮想メモリ・システムには類似性があるが、仮
想メモリ・システムは一般にEMSよりはるかに自動的に
アプリケーション・ソフトウェアに対して透明に動作す
る。アプリケーション・ソフトウェアは、仮想メモリ・
システムの場合、その存在すら意識せずにコンピュータ
・システム上でアクティブになる場合があるが、EMSの
場合、アプリケーション・ソフトウェアはEMSの存在を
認識するだけではなく特別にEMSをサポートしEMSの動作
を指令しなければならない。
Although EMS and virtual memory systems have similarities, virtual memory systems generally operate much more automatically and transparently to application software than EMS. Application software uses virtual memory
In the case of a system, it may be active on a computer system without even being aware of its existence.In the case of an EMS, however, the application software not only recognizes the presence of the EMS but also specially supports the EMS and operates Must be ordered.

この従来技術の第5の方法は理論的にはより大量のメ
モリのアクセスを可能にする能力を持っているが欠点も
ある。この方法を用いるとメモリ管理にCPUタイムを割
かなければならないのでメモリ・アクセス・タイムが増
加する。記録を継続的に更新してページ・フレーム1203
とエクスパンデッド・メモリ1204の両方でのページの位
置とその内容を示さなければならない。これらの動作は
CPUが他のタスクに当てることのできるはずのタイムを
奪い、したがって、性能を低下させる。
This fifth prior art method has the ability to theoretically allow access to a larger amount of memory, but has drawbacks. Using this method increases the memory access time because CPU time must be devoted to memory management. Record continually updated with page frame 1203
The location of the page and its contents in both the and expanded memory 1204 must be indicated. These actions are
It deprives the CPU of the time it should be able to devote to other tasks, thus reducing performance.

従来技術の第6の方法ではROMの圧縮と最適化を使用
する。この方法は一般的に適用することができず、ROM
のそれぞれの改訂版ごとに人間が実行しなければならな
い。この方法の目的はROMの占有するメモリ空間の量を
減らし、その結果ROMにアロケートされているが未使用
のメモリ空間を他の目的のために再アロケートできるよ
うにすることである。非効率的なコードとROMのうちで
絶対にアクセスされない部分とを発見し除去することに
よって、ROMが占有するメモリ空間を減らす。
A sixth prior art method uses ROM compression and optimization. This method cannot be generally applied and the ROM
Must be performed by humans for each revision of the The purpose of this method is to reduce the amount of memory space occupied by the ROM, so that the memory space allocated but unused in the ROM can be reallocated for other purposes. The ROM space occupied is reduced by finding and eliminating inefficient code and parts of the ROM that are never accessed.

この方法は特定のROMのそれぞれに別々の形で適用し
なければならないのでこの方法の詳細を一般的に説明す
ることはできない。この方法を使用するためには既存の
ROMのコードとデータを注意深く検査し、変更又は削除
しなければならない領域を突き止めなければならない。
その後、これらの変更を行った後にROMのコードとデー
タを再アセンブルしなければならない。その後、小さく
なった新しいROMコードを元のROMの部分の上にマッピン
グしなければならない。また、この方法によって使用可
能にされたメモリ空間を他の目的に使用できるようにす
るための用意も必要である。
The details of this method cannot be described in general since this method must be applied to each particular ROM in a separate manner. To use this method an existing
The ROM code and data must be carefully inspected to identify areas that need to be changed or deleted.
You must then reassemble the ROM code and data after making these changes. After that, the smaller ROM code must be mapped onto the original ROM part. Also, provision must be made so that the memory space made available by this method can be used for other purposes.

この方法の明らかな欠点は一般的に適用できないこと
である。この方法に基づく製品は新しいROM改訂版が発
表された途端に旧式になる。また、ROMのそれぞれの各
改訂版の圧縮と最適化を実行するにはかなりの時間と労
力と技能が必要である。
An obvious disadvantage of this method is that it is generally not applicable. Products based on this method will become obsolete as soon as a new ROM revision is announced. Also, performing compression and optimization of each revision of the ROM requires considerable time, effort, and skill.

従来技術の第7の方法では予約メモリ領域に常駐する
ことになるTSRの初期設定のために予約メモリ領域内に
追加のメモリを一時的に供給する。予約メモリ領域にマ
ッピングされているメモリ内にTSRを置くことによっ
て、そうでなければそれらのTSRが使用するばずのコン
ベンショナル・メモリ空間をアプリケーション・プログ
ラムが使用できる。しかしながら、TSRは典型的に初期
設定されるときに単に常駐している時よりも多くのメモ
リを必要とする。時にはEMSをインストールしそのペー
ジ・フレームが予約メモリ領域内のメモリ空間を占有す
る時などにある、TSRを初期設定するのに十分な使用可
能予約メモリ空間がない場合がある。従来技術のこの方
法はEMSページ・フレームのためにアロケートされた予
約メモリ空間からスペースを借りることによってこの問
題を克服する。TSRがその初期設定を完了し、そのスペ
ースがもはや不要になった後にそのスペースがEMSに返
される。
In a seventh prior art method, additional memory is temporarily provided in the reserved memory area for initialization of a TSR that will reside in the reserved memory area. Placing TSRs in memory that is mapped to reserved memory areas allows application programs to use the conventional memory space otherwise used by those TSRs. However, TSRs typically require more memory when initialized than when they simply reside. Sometimes there is not enough available reserved memory space to initialize the TSR, such as when the EMS is installed and its page frames occupy memory space in the reserved memory area. This method of the prior art overcomes this problem by borrowing space from reserved memory space allocated for the EMS page frame. The space is returned to the EMS after the TSR has completed its initialization and the space is no longer needed.

従来技術のこの方法にも、欠点がある。まず、この方
法はTSRにしか適用できない。TSRのないシステムやごく
小数のTSRしかないシステムがあり、これらのシステム
ではこの方法からはほとんど利益を得られない。また、
この方法から得られる利益の量はTSRによって変化す
る。あるTSRが初期設定のために追加のメモリを必要と
しない場合、この方法からはほとんど利益を得られな
い。
This prior art method also has disadvantages. First, this method is only applicable to TSR. Some systems have no TSR, others have only a few TSRs, and these systems do little to benefit from this approach. Also,
The amount of benefit gained from this method depends on the TSR. If a TSR does not require additional memory for initialization, it will benefit little from this method.

従来技術の第8の方法ではLOADALLコマンドを使用し
てリアル・モード・プログラムを80286マイクロプロセ
ッサのプロテクト・モードで走らせる。その目的は8028
6マイクロプロセッサにリアル・モードでの固有のメモ
リ・マッピング能力がないという事実にもかかわらずEM
Sをエミュレートすることである。リアル・モード・プ
ログラムがセグメント・レジスタをロードしようとする
時に一般保護例外が発生する。この方法は一般保護例外
ハンドラを使用してセグメント・レジスタをセレクタに
変換し、予期されないプロセッサ・モードをプログラム
に対して透明にする。これらの能力を80286マイクロプ
ロセッサで実現するためにこの方法はLOADALL命令に頼
る。
An eighth prior art method uses a LOADALL command to run a real mode program in protected mode of an 80286 microprocessor. Its purpose is 8028
EM despite the fact that 6 microprocessors do not have the inherent memory mapping capability in real mode
To emulate S. A general protection exception occurs when a real mode program attempts to load a segment register. This method uses a general protection exception handler to convert the segment registers to selectors, making unexpected processor modes transparent to the program. This method relies on the LOADALL instruction to implement these capabilities on an 80286 microprocessor.

LOADALLコマンドは80286マイクロプロセッサの非公開
・非サポートの機能である。これは8088,8086,80386又
は80486マイクロプロセッサではサポートされない。こ
れは明らかにマイクロプロセッサの製造と試験を助ける
ものとして80286マイクロプロセッサだけに実施された
コマンドである。したがって、LOADALL命令は将来に製
造される80286マイクロプロセッサでサポートされると
いう保証すらない。LOADALL命令はシステム・ソフトウ
ェア又はアプリケーション・ソフトウェアでの使用を目
的としたものではない。
The LOADALL command is a private and unsupported feature of the 80286 microprocessor. It is not supported on 8088, 8086, 80386 or 80486 microprocessors. This is clearly a command implemented only on the 80286 microprocessor to aid in microprocessor manufacture and testing. Therefore, there is no guarantee that the LOADALL instruction will be supported on future 80286 microprocessors. The LOADALL instruction is not intended for use with system software or application software.

従来技術の第8の方法を使用するためには以下の処理
を実行しなければならない。第1に、割り込みを禁止し
なければならない。第2に、ロケーション00800Hから始
まる102バイトをセーブしなければならない。第3に、
全レジスタをセーブしなければならない。次に、アクセ
スしようとする外部メモリの領域を指定するディスクリ
プタ・キャッシュ・ベース・アドレスを含む望みのレジ
スタ値をロケーション00800Hから始まる102バイトのメ
モリにロードしなければならない。この後に、LOADALL
オペコード(0FH 05H)を実行しなければならない。次
に、エクステンデッド・メモリの読み取り又は書き込み
を実行するが、この時にはアドレス・オフセットだけを
使用しセグメント・ベース・アドレスを変更してはなら
ない。この後に、記憶しておいた全レジスタの値を取り
出し、ロケーション00800Hから始まる102バイトのメモ
リにロードしなければならない。次に、LOADALLオペコ
ード(0FH 05H)を実行してレジスタとディスクリプタ
・キャッシュの以前の内容を復元しなければならない。
その後、00800Hから始まるメモリの102バイトの内容を
取り出し、復元しなければならない。最後に、割り込み
を許可し直さなければならない。
In order to use the eighth method of the prior art, the following processing must be performed. First, interrupts must be disabled. Second, 102 bytes starting at location 00800H must be saved. Third,
All registers must be saved. Next, the desired register value, including the descriptor cache base address specifying the area of external memory to be accessed, must be loaded into 102 bytes of memory starting at location 00800H. After this, LOADALL
Opcode (0FH 05H) must be executed. Next, a read or write to the extended memory is performed, but this time only the address offset should be used and the segment base address must not be changed. After this, all stored register values must be retrieved and loaded into 102 bytes of memory starting at location 00800H. Next, the LOADALL opcode (0FH 05H) must be executed to restore the previous contents of the register and descriptor cache.
After that, the 102 bytes of memory starting at 00800H must be retrieved and restored. Finally, interrupts must be re-enabled.

従来技術の第8の方法には多数の欠点がある。まず、
LOADALL命令は80286ベースのコンピュータ・システムで
なければ機能せず8088,8086,80386又は80486ベースのコ
ンピュータ・システムでは機能しない。LOADALL命令は
非公開で非サポートであるからLOADALL命令が将来に製
造される80286マイクロプロセッサで機能するという保
証はない。一般に非公開又は非サポートのハードウェア
機能に頼るのは受け入れられない行動である。さらに、
LOADALL命令は絶対メモリ・アドレス00800Hにあるデー
タの操作を必要とする。LOADALL命令を実行する前にこ
の領域のメモリに含まれるデータを保存するために何ら
かの手だてを講じない限りシステム・ソフトウェアがダ
メージを受ける可能性がある。また、この方法によれば
すべてのタイプのシステム動作の間に一般保護例外が発
生する。この例外をサービスする必要があるがこれには
CPUタイムというコストがかかり、したがって、ほとん
どのタイムでシステム性能がかなり低下する。
The eighth method of the prior art has a number of disadvantages. First,
The LOADALL instruction does not work on 80286-based computer systems and does not work on 8088, 8086, 80386 or 80486-based computer systems. Because the LOADALL instruction is private and unsupported, there is no guarantee that the LOADALL instruction will work with future manufactured 80286 microprocessors. Relying on private or unsupported hardware features is generally an unacceptable behavior. further,
The LOADALL instruction requires manipulation of the data at absolute memory address 00800H. Unless you take any precautions to save the data contained in this area of memory before executing the LOADALL instruction, system software can be damaged. Also, this method causes a general protection exception during all types of system operation. This exception needs to be serviced, but this
At the cost of CPU time, most of the time the system performance is significantly reduced.

従来技術のもう1つの方法はアップルIIコンピュータ
で使用する16K−RAMカードに関連するものである。アッ
プルIIコンピュータは6502マイクロプロセッサをベース
とする。6502マイクロプロセッサのアドレス・バスは16
ビットであり64Kのアドレス空間をサポートする。しか
し、アップルIIが市場に導入された時点ではRAMデバイ
スのコストが高かったので下位48Kのアドレス空間だけ
がRAMを用いて使用するようになっていた。この48KのRA
Mの上位に、I/Oメモリに当てられた4Kの領域があった。
残りの12Kはアドレス空間の最上位領域にありROMを用い
て使用するようになっていた。
Another prior art method involves a 16K-RAM card for use with Apple II computers. Apple II computers are based on a 6502 microprocessor. The address bus of the 6502 microprocessor is 16
It is a bit and supports 64K address space. However, at the time Apple II was introduced to the market, the cost of RAM devices was so high that only the lower 48K address space was used using RAM. This 48K RA
Above M was a 4K area devoted to I / O memory.
The remaining 12K was at the top of the address space and was intended to be used using ROM.

アプリケーション・ソフトウェアが徐々に大量のRAM
を必要とするようになるのにつれてその48Kの限界を越
えてRAMを拡張する方法が必要になった。RAMの量を増や
すために16K−RAMカードが導入された。16K−RAMカード
には16KのRAMが搭載され、このRAMは64Kアドレス空間の
上位16Kにマッピングでき、4KのI/Oメモリと12KのROMと
入れ替えることができた。追加の16KのRAMを使用できる
ようにするためには、まず、I/OメモリとROMをアドレス
空間の上位16Kから取り除かなければならなかった。こ
れはメモリ・デバイスに関連するアドレス復号ロジック
を変更することによって達成できた。その後、16KのRAM
のアドレス復号ロジックをイネーブルすることによって
そのRAMを16Kのアドレス空間にマッピングできた。
Application software gradually increases the amount of RAM
As we needed more, we needed a way to expand RAM beyond that 48K limit. A 16K-RAM card was introduced to increase the amount of RAM. The 16K-RAM card was equipped with 16K RAM, which could be mapped to the upper 16K of the 64K address space and replaced with 4K I / O memory and 12K ROM. In order to be able to use the additional 16K of RAM, I / O memory and ROM had to be removed from the top 16K of address space first. This could be achieved by changing the address decoding logic associated with the memory device. Then 16K RAM
Enabled its address decoding logic to map its RAM to a 16K address space.

16K−RAMカードをイネーブルすると64Kのアドレス空
間が64KのRAMで満たされた。その時点では4KのI/Oメモ
リも12KのROMもアクセスできなかった。I/OメモリとROM
が使用できないのでアプリケーション・ソフトウェアは
16K−RAMカードがイネーブルされている間にコンピュー
タ・システムの完全な制御を維持しなければならず、制
御を解放する前にI/OメモリとROMを確実にイネーブルし
直さなければならなかった。また、アプリケーション・
ソフトウェアは16K−RAMカードがイネーブルされている
間にI/OデバイスやROMルーチンをアクセスすることがで
きなかった。16K−RAMカードがイネーブルされている間
にアプリケーション・ソフトウェアが制御を解放するか
I/Oデバイス又はROMルーチンをアクセスしようとしたな
らば、システムがクラッシュした。というのはその時点
で望みのI/OデバイスもシステムROMもそのコンピュータ
・システムのアドレス空間に存在しなかったからであ
る。この方法はアプリケーション・ソフトウェアによる
このような注意深い制御と監視を必要としたので確かに
アプリケーション・ソフトウェアの動作に対して透明で
はなかった。16K−RAMカードの存在を特に認識しその特
徴を注意深く使用するようにアプリケーション・ソフト
ウェアを作成しなければならなかった。
Enabling the 16K-RAM card filled the 64K address space with 64K RAM. At that time, neither 4K I / O memory nor 12K ROM could be accessed. I / O memory and ROM
Application software is not available
Full control of the computer system had to be maintained while the 16K-RAM card was enabled, and I / O memory and ROM had to be reliably re-enabled before releasing control. In addition, application
Software could not access I / O devices or ROM routines while the 16K-RAM card was enabled. Whether application software releases control while 16K-RAM card is enabled
The system crashed when trying to access an I / O device or ROM routine. At that time, neither the desired I / O device nor the system ROM was in the computer system's address space. This method was certainly not transparent to the operation of the application software because it required such careful control and monitoring by the application software. Application software had to be written to specifically recognize the presence of 16K-RAM cards and use its features carefully.

本発明はアプリケーション・ソフトウェアに透明な形
でROMアドレス空間を再利用するための方法を提供する
ことによって、この従来技術の方法の制限を克服する。
本発明を特にサポートするようにアプリケーション・ソ
フトウェアを記述する必要はなく、本発明の存在や動作
を意識する必要もない。したがって、本発明は従来技術
の方法よりはるかに役に立ち、用途の広い、ROMアドレ
ス空間再利用方法を提供する。
The present invention overcomes the limitations of this prior art method by providing application software with a method for reclaiming ROM address space in a transparent manner.
There is no need to write application software to specifically support the present invention, nor is it necessary to be aware of the existence and operation of the present invention. Thus, the present invention provides a much more useful and versatile method of reclaiming ROM address space than prior art methods.

[本発明] 本発明はROMメモリ・アドレスを640Kバイトと1メガ
バイトの間の予約メモリ領域に再割り振りすることによ
ってRAMをサポートするために使用できる追加のメモリ
・アドレス空間を提供する。この場合、元のメモリ・ア
ドレスをRAMに格納されているアプリケーション,TSRな
どをアドレスするために使用できる。
The present invention provides additional memory address space that can be used to support RAM by reallocating ROM memory addresses to reserved memory areas between 640 Kbytes and 1 Mbyte. In this case, the original memory address can be used to address the application, TSR, etc. stored in RAM.

たとえば、8088/8086ファミリーのマイクロプロセッ
サ(80286,80386及び80486マイクロプロセッサを含むが
これらに限定されるものではない)をベースとし、MS−
DOSないしPC−DOSオペレーティング・システムの下で作
動するコンピュータ・システムに適用されたものとして
本発明を説明する。しかしながら、本発明の用途はこの
ようなコンピュータ・システムに限定されるものではな
い。本発明は特定のビデオ・ディスプレイ・アダプタの
構成を必要とするものではなく、すべてのビデオ・ディ
スプレイ・アダプタで作動する。さらに、本発明は特定
のROMの特定の改訂版に限定されるものではなく一般的
にほとんどのROMに適用できるものである。さらに、本
発明は特定のアプリケーション・ソフトウェアとともに
使用することに限定されるものではなくほとんどのアプ
リケーション・ソフトウェアに透過的に使用できる。ま
た、本発明は全体的なシステム・パフォーマンスの相当
程度の低下を回避する。このようにして、本発明はコン
ピュータ・システムで利用可能なメモリの量を増加させ
る従来技術の方法を大幅に改善するものである。
For example, based on the 8088/8086 family of microprocessors (including but not limited to 80286, 80386 and 80486 microprocessors), MS-
The invention is described as applied to a computer system operating under a DOS or PC-DOS operating system. However, the use of the present invention is not limited to such computer systems. The present invention does not require a specific video display adapter configuration and will work with all video display adapters. Furthermore, the invention is not limited to a particular revision of a particular ROM, but is generally applicable to most ROMs. Further, the invention is not limited to use with any particular application software, but can be used transparently with most application software. Also, the present invention avoids a significant decrease in overall system performance. In this manner, the present invention significantly improves upon prior art methods of increasing the amount of memory available in a computer system.

本発明を典型的なMS−DOSコンピュータに適用したも
のを第13図に示す。システムROM1301及びビデオROM1302
の位置はエクステンデッド・メモリ1303に移動されてお
り、これらが占めていたスペースは割り振り解放(deal
located)されている。したがって、未使用予約メモリ1
304の量は増加し未使用予約メモリ1305となっている。
本発明によればROM1306及びビデオROM1307にプロテクト
・モードであるいは予約メモリへマップすることによっ
てアクセス可能である。
FIG. 13 shows the present invention applied to a typical MS-DOS computer. System ROM 1301 and video ROM 1302
Have been moved to extended memory 1303, and the space they occupied has been deallocated (deal
located). Therefore, unused reserved memory 1
The amount of 304 increases and becomes an unused reserved memory 1305.
According to the present invention, ROM 1306 and video ROM 1307 can be accessed in protected mode or by mapping to reserved memory.

本発明はコンピュータ・システムで使用されているマ
イクロプロセッサのセグメント化アドレス指定「リア
ル」モード及び「プロテクト」モードを利用する。セグ
メント化アドレス指定ならびにリアル・モード及びプロ
テクト・モードについては後で詳述する。
The present invention utilizes the segmented addressing "real" and "protected" modes of the microprocessor used in the computer system. The segmented addressing and the real and protected modes will be described later in detail.

セグメント化アドレス指定を第3図に示す。セグメン
ト化アドレス指定において、アドレスは2つの部分で指
定される。最初の部分はセグメント301と呼ばれ、16ビ
ットの2進値である。第2の部分はオフセット302と呼
ばれ、これも16ビットの2進値である。アクセスする物
理メモリ306内で指定されたアドレスを決定するために
マイクロプロセッサはまずセグメント・レジスタの内容
に10Hを乗算する(303)がこれはセグメントの内容を左
へ4ビットシフトすることと等価である。次いで、この
値をオフセット・レジスタの内容に加算する(304)。
セグメント・レジスタをシフトしてからオフセット・レ
ジスタに加算することにより、幅20ビットのアドレスが
生成される。20ビットのアドレス・バスを通じてCPUに
アクセス可能なメモリの量は220であり、これは1024Kバ
イトすなわち1Mバイトに等しい。このアドレス指定方法
は80286,80386及び80486が「リアル」モードで作動して
いる場合にこれらによっても使用される。
The segmented addressing is shown in FIG. In segmented addressing, the address is specified in two parts. The first part is called segment 301 and is a 16-bit binary value. The second part is called offset 302, which is also a 16-bit binary value. To determine the specified address in physical memory 306 to access, the microprocessor first multiplies the contents of the segment register by 10H (303), which is equivalent to shifting the contents of the segment four bits to the left. is there. This value is then added to the contents of the offset register (304).
Shifting the segment register and adding it to the offset register produces a 20-bit wide address. The amount of memory accessible to the CPU through a 20-bit address bus is 2 20, which is equal to 1024K bytes or 1M bytes. This addressing scheme is also used by 80286, 80386 and 80486 when operating in "real" mode.

80286,80386及び80486マイクロプロセッサは「リア
ル」モードでも「プロテクト」モードでも作動可能であ
る。プロテクト・モードにはリアル・モードにはない各
種の利点がある。まず、80286ではプロテクト・モード
で16Mバイトにアクセスすることができ、これはリアル
・モードでアクセス可能なメモリの量の16倍である。80
386及び80486ではプロテクト・モードはアドレス指定限
度をさらに増加させる。プロテクト・モードにおいて80
386及び80486は4096Mバイトすなわち4Gバイトをアドレ
スすることができこれは約40億メモリ・ワードにあた
る。
The 80286, 80386 and 80486 microprocessors can operate in either "real" or "protected" mode. Protected mode has various advantages over real mode. First, 80286 can access 16 Mbytes in protected mode, which is 16 times the amount of memory accessible in real mode. 80
In 386 and 80486, protected mode further increases the addressing limit. 80 in protected mode
The 386 and 80486 can address 4096 Mbytes or 4 Gbytes, which is about 4 billion memory words.

本発明は「プロテクト・モード」の実施例と呼ばれる
もの、あるいは「マッピング」の実施例呼ばれるものに
おいて実現可能である。
The invention can be implemented in what is called a "protected mode" embodiment or what is called a "mapping" embodiment.

[プロテクト・モード] プロテクト・モードにおけるアドレス指定を第4図に
示す。16ビットのセグメント・レジスタの代わりに、プ
ロテクト・モードは16ビットのセレクタ401を使用す
る。セレクタはディスクリプタ・テーブル404の項目403
をポイントする。ディスクリプタ・テーブルはベース・
アドレスを指定するディスクリプタを含んでいる。8028
6のディスクリプタは24ビットのベース・アドレスを備
えており、80386及び80486のディスクリプタは32ビット
のベース・アドレスを備えている。これらのベース・ア
ドレスは8088/8086のセグメントと同じ機能を果たすが
より用途が広いものである。アクセスするメモリ406内
で指定されたアドレス405を決定するために8088/8086で
使用しているものと同様なオフセット402をディスクリ
プタ・テーブル404からベース・アドレスに追加する。
[Protect Mode] FIG. 4 shows address designation in the protect mode. Instead of a 16-bit segment register, the protected mode uses a 16-bit selector 401. The selector is item 403 of the descriptor table 404
To point. The descriptor table is based
Contains a descriptor that specifies an address. 8028
The six descriptors have a 24-bit base address, and the 80386 and 80486 descriptors have a 32-bit base address. These base addresses perform the same function as the 8088/8086 segments, but are more versatile. An offset 402 similar to that used in the 8088/8086 to determine the specified address 405 in the memory 406 to be accessed is added from the descriptor table 404 to the base address.

80386及び80486は「仮想86(V86)」モードという付
加的な機能を有している。仮想モードにおいてマイクロ
プロセッサが計算したアドレスはアドレス・バスにおか
れる実際のアドレスではないことがある。80386又は804
86が仮想モードでアドレスを計算する場合、32ビットの
線形アドレスのみを計算する。線形アドレスは次いで、
マイクロプロセッサのページング機構に渡され、該機構
は付加的な計算を行って物理メモリにおける最終アドレ
スを決定する。ページング機構によって実際の物理メモ
リのものと異なる構成でメモリをマップすることが可能
となる。物理メモリをページに分割することによって仮
想モードは物理メモリの各4Kバイトのブロックがそれ自
体の仮想アドレスを有することを可能とする。以下の説
明において「リアル・モード」という語は「仮想モー
ド」と言い換えることができる。好ましい実施例におい
て本発明は仮想モードを利用する。
The 80386 and 80486 have an additional function called "virtual 86 (V86)" mode. In virtual mode, the address computed by the microprocessor may not be the actual address on the address bus. 80386 or 804
If 86 calculates addresses in virtual mode, it calculates only 32-bit linear addresses. The linear address is then
It is passed to the microprocessor's paging mechanism, which performs additional calculations to determine the final address in physical memory. The paging mechanism allows memory to be mapped in a configuration different from that of the actual physical memory. By dividing physical memory into pages, virtual mode allows each 4 Kbyte block of physical memory to have its own virtual address. In the following description, the term "real mode" can be rephrased as "virtual mode". In a preferred embodiment, the present invention utilizes a virtual mode.

本発明のプロテクト・モードの実施例によって本来シ
ステム504及びビデオROM505に割り振られている予約メ
モリ領域503のメモリ空間の再割り振り(reallocatio
n)が可能となる。プロテクト・モードでROMからの読み
込みを行うことによって本発明はROMのアドレス空間を
リアル・モードにおいて他の目的に使用することを可能
とする。
According to the protection mode embodiment of the present invention, the reallocation of the memory space of the reserved memory area 503 originally allocated to the system 504 and the video ROM 505 (reallocatio).
n) becomes possible. By reading from ROM in protected mode, the present invention allows the address space of ROM to be used for other purposes in real mode.

システム構成を初期化し、元のROMのアドレス空間を
再割り振りして、他の目的に利用できるようにし、ROM
のアクセスをインターセプトして、これらのアクセスが
再割り振りされたROMのアドレス空間に送られるように
し、かつROMのアクセスを処理して、ROMのアクセスが完
了し、システムがROMのアクセス後に実行を継続できる
ようにすることによって、本発明は実施される。
Initialize the system configuration, reallocate the original ROM address space so that it can be used for other purposes, and
Intercepts these accesses to be sent to the reallocated ROM address space, and processes the ROM accesses to complete the ROM accesses and the system continues execution after the ROM accesses By enabling it, the present invention is implemented.

本発明のコンピュータ・システムの初期化を第14図の
流れ図に関して説明する。初期化ルーチンはステップ14
01から始まる。ステップ1401において移動対象のROMは
第5図の予約メモリ領域503の元のアドレス空間におか
れている。ステップ1403においてROMのコードにアクセ
スする割り込みハンドラが確認される。
The initialization of the computer system of the present invention will be described with reference to the flowchart of FIG. Initialization routine is Step 14
Starts from 01. In step 1401, the ROM to be moved is located in the original address space of the reserved memory area 503 in FIG. In step 1403, the interrupt handler that accesses the ROM code is confirmed.

ステップ1404においてROMのデータ・テーブル・アド
レス及び長さが確認される。ステップ1405において再割
り振りされたROMが使用する適切な割り振りされていな
い(unallocated)プロテクト・モード・アドレス空間
が確認される。このアドレス空間は連続していなければ
ならず、またROMのアドレス指定を完全にサポートする
のに適切なサイズのものでなければならない。このアド
レス空間は再割り振りされたROMが実行されるところで
ある。
In step 1404, the ROM data table address and length are checked. In step 1405, the appropriate unallocated protected mode address space used by the reallocated ROM is identified. This address space must be contiguous and of an appropriate size to fully support ROM addressing. This address space is where the reallocated ROM is executed.

ステップ1406において、エクステンデッド・メモリ内
の確認されたアドレス空間がROMに割り振られるので、
他の目的のためのアドレス空間を使用することによる衝
突が防止される。ROMは割り振られたメモリ・アドレス
空間にマップされる。
In step 1406, the confirmed address space in the extended memory is allocated to the ROM,
Collisions are avoided by using address space for other purposes. ROM is mapped into the allocated memory address space.

オプションのステップ1407においてグローバル及びロ
ーカル・ディスクリプタ・テーブル(GDT/LDT)がROMが
マップされている新しいアドレス空間に対して事前に割
り振りされる。
In an optional step 1407, the global and local descriptor tables (GDT / LDT) are pre-allocated to the new address space to which the ROM is mapped.

ステップ1408においてコンベンショナル・メモリがRO
Mデータ・テーブルのコピーを保持するために割り振ら
れる。ステップ1409においてROMデータ・テーブルがコ
ンベンショナル・メモリにコピーされる。ステップ1410
においてコンベンショナル・メモリ内のアドレス空間が
割り込みハンドラ・ルーチンに割り振られる。ステップ
1411において割り込みハンドラ・ルーチンが割り振られ
たアドレス空間にインストールされる。ステップ1412に
おいてROMデータ・テーブルに対するポインタがコンベ
ンショナル・メモリ内のコピーにリダイレクトされる。
In step 1408, conventional memory is RO
Allocated to hold a copy of the M data table. In step 1409, the ROM data table is copied to conventional memory. Step 1410
In, the address space in the conventional memory is allocated to the interrupt handler routine. Steps
At 1411, an interrupt handler routine is installed in the allocated address space. In step 1412, the pointer to the ROM data table is redirected to a copy in conventional memory.

オプションのステップ1413においてROMのアドレスは
エクステンデッド・メモリによってオーバーレイされ
る。ステップ1414において制御がオペレーティング・シ
ステムに戻される。
In an optional step 1413, the address of the ROM is overlaid by the extended memory. In step 1414, control is returned to the operating system.

ROMデータ・テーブルに対する照会がすべて見つから
なかった場合あるいはこれらがすべて見つからないよう
なことを回避したい場合には上記の手順の変形を行う。
その位置に関して公表されている情報を照会するかある
いはROMの内容の分析によるかのいずれかによってROMデ
ータ・テーブルの位置を捜し出してから、元のROMアド
レス空間のこれらが占める部分をこれらに予約されてい
るものとすることができる。次いで、プロテクト・モー
ドの機能を使用してROMデータ・テーブルを元のROMアド
レス空間内の元の位置に復元することができる。ROMデ
ータ・テーブルは元のROMアドレス空間の元の位置にマ
ップされる。マイクロプロセッサはプロテクト・モード
のリング・ゼロにおかれている。グローバル及びローカ
ル両方のディスクリプタ・テーブル(GDT/LDT)はROMデ
ータ・テーブルが占める元のROMアドレス空間の部分に
設定される。プロセッサはプロテクト・モードを終了
し、リアル・モードへ戻るようになされる。ROMデータ
・テーブルが占める部分以外の元のROMアドレス空間は
割り振り解放され、他のリアル・モードでの目的に使用
できるようになる。割り振りされていない適切なエクス
テンデッドRAMを見つけだし、元のROMアドレス空間を割
り振り解放済みの予約メモリ503に収める必要がある。
このRAMは次いで予約メモリ内の元のROMアドレス空間に
割り振られ、マップされる。
If all queries to the ROM data table are not found or if it is desired to avoid missing them all, the above procedure is modified.
After locating the ROM data table, either by querying published information about the location or by analyzing the contents of the ROM, these are reserved for the portion they occupy in the original ROM address space. Can be The ROM data table can then be restored to its original location in the original ROM address space using protected mode functionality. The ROM data table is mapped to the original location in the original ROM address space. The microprocessor is in protected mode ring zero. Both global and local descriptor tables (GDT / LDT) are set in the portion of the original ROM address space occupied by the ROM data table. The processor exits the protected mode and returns to the real mode. The original ROM address space, other than the portion occupied by the ROM data table, is deallocated and made available for other real mode purposes. It is necessary to find a suitable unallocated extended RAM and store the original ROM address space in the allocated reserved memory 503.
This RAM is then allocated and mapped to the original ROM address space in the reserved memory.

必要なステップをすべて行って本発明のプロテクト・
モードの実施例で使用するためにコンピュータ・システ
ムを初期化した後、予約メモリ503内の元のROMアドレス
空間にマップされているRAMをTSR,デバイス・ドライバ
又はネットワーク・インタフェース・プログラムの再配
置を含む各種の目的に使用することができる。ROMの呼
出しを含めコンピュータ・システムの作動のすべてのフ
ェーズの間新しいRAMは元のROMアドレス空間にマップさ
れたままとなる。
Perform all necessary steps to protect and
After initializing the computer system for use in the mode embodiment, the RAM mapped to the original ROM address space in the reserved memory 503 is relocated to the TSR, device driver or network interface program. It can be used for various purposes, including. The new RAM remains mapped to the original ROM address space during all phases of operation of the computer system, including the ROM call.

システムが再構成され予約メモリ503内の元のROMアド
レス空間の再割り振りが可能となってからROMアクセス
・インタセプタが使用される。システムの何らかのソフ
トウェアがROMへのアクセスを試みた場合、ROMアクセス
・インタセプタが試みられたアクセスをインターセプト
し、ROMアクセス・ハンドラを活性化してROMのコード又
はデータにアクセスできるようにしなければならない。
ほとんどのROMのルーチンがソフトウェア割り込みによ
ってアクセスされるものであるから、ROMのアクセスを
インターセプトするもっとも簡単な方法は上述のように
割り込みテーブルを変更することである。アプリケーシ
ョン・ソフトウェアの中には割り込みを使用せずに直接
ROMへのアクセスを試みるものがあるため、ROMのアドレ
スに対する照会についてアプリケーション・ソフトウェ
アを調べ、これらの照会をリダイレクトして、アプリケ
ーション・ソフトウェアがエクステンデッド・メモリ内
の新しいROMイメージにアクセスするようにすることが
望ましい。
The ROM access interceptor is used after the system is reconfigured and the original ROM address space in the reserved memory 503 can be reallocated. If any software in the system attempts to access the ROM, the ROM access interceptor must intercept the attempted access and activate the ROM access handler to allow access to ROM code or data.
Since most ROM routines are accessed by software interrupts, the simplest way to intercept ROM access is to modify the interrupt table as described above. Directly without using interrupts in application software
Check the application software for queries for the address of the ROM because there are attempts to access the ROM and redirect these queries so that the application software accesses the new ROM image in extended memory. Is desirable.

もちろん、ROMデータ・テーブルを元の位置に保持し
ておくという上述の代替手順を使用した場合にはROMデ
ータ・テーブルにアクセスしようとするROMアクセスを
行うことができ、インターセプト及びリダイレクトは行
われない。
Of course, if the above-described alternative procedure of keeping the ROM data table in its original location is used, the ROM access that attempts to access the ROM data table can be performed, and no interception and redirection is performed. .

ROMアクセス・ハンドラはエクステンデッド・メモリ
内の新しいROMイメージにアクセスし、ROMの実行を収納
し、ROMアクセスの完了後にアプリケーション・ソフト
ウェアの実行を継続できる状態にコンピュータ・システ
ムを復元する方法を提供する。
The ROM access handler provides a way to access a new ROM image in the extended memory, house the execution of the ROM, and restore the computer system to a state in which the execution of the application software can continue after the ROM access is completed.

ROMアクセス・ハンドラの作動を示す流れ図を第15図
に示す。プロセスはステップ1501から始まる。ステップ
1502においてアクセスされる特定の割り込みサービス・
ルーチンに対するROMアクセス・ハンドラはCPUをリング
・ゼロというプロテクト・レベルでプロテクト・モード
にする。オプションのステップ1503において割り込みの
サービスはROMへ行かずに行われ、制御が呼出しプログ
ラムに戻される。オプションのステップを実行しない場
合、プロセスは次のようになる。
FIG. 15 is a flowchart showing the operation of the ROM access handler. The process starts at step 1501. Steps
Specific interrupt services accessed in 1502
The ROM access handler for the routine puts the CPU in protected mode with a protection level of ring zero. In optional step 1503, interrupt servicing is performed without going to ROM and control is returned to the calling program. If you do not perform the optional steps, the process is as follows:

ステップ1504において必要ならば新しいプロテクト・
モード・セレクタを反映するように入力リアル・モード
・セグメント・レジスタが調節される。ステップ1505に
おいて、ROMが戻るアドレスがプロテクト・モード・ス
タックに設定される。
If necessary in step 1504
The input real mode segment register is adjusted to reflect the mode selector. In step 1505, the address to which the ROM returns is set in the protected mode stack.

ステップ1506においてリング・スリー・プロテクト・
モードのCS:IPを変更し、再配置されたROM入口点をポイ
ントするようにする。ステップ1507において該当するIO
PLを設定する。ステップ1508において再配置されたROM
入口点でリング・スリー・プロテクト・モードに移行す
る。
In Step 1506, Ring Three Protect
Change the mode CS: IP to point to the relocated ROM entry point. IO corresponding in step 1507
Set the PL. ROM relocated in step 1508
Transition to ring three protection mode at entry point.

ステップ1509においてROMは実行可能とされ、障害が
あればそれを処理する。ステップ1510においてROMは制
御をステップ1505で設定されたアドレスに戻す。ステッ
プ1511において再度プロテクト・モードへ移行し、ルー
チンを終了する。
In step 1509, the ROM is enabled, and if there is a fault, it is processed. In step 1510, the ROM returns control to the address set in step 1505. In step 1511, the mode shifts to the protect mode again, and the routine ends.

ステップ1512においてリアル・モードのCS:IPを変更
し、呼出しプログラムの戻りアドレスをポイントするよ
うにする。必要に応じステップ1513において戻りポイン
タを変更し、リダイレクトされたROMデータをポイント
するようにする。ステップ1514において呼出しプログラ
ムの戻りアドレスでリアル・モードに移行する。
In step 1512, the real mode CS: IP is changed to point to the return address of the calling program. If necessary, the return pointer is changed in step 1513 to point to the redirected ROM data. In step 1514, a transition is made to the real mode at the return address of the calling program.

[マッピングの実施例] 本発明のマッピングの実施例も当初ROMに割り振られ
ていた予約メモリ503のアドレス空間を他の用途に再割
り振りすることを可能とする。しかしながら、本発明の
マッピングの実施例はプロテクト・モードを使用するこ
とを必要とするものではなく、したがって、プロテクト
・モードの作動をサポートしていない8088及び8086マイ
クロプロセッサとの互換性を有し、プロテクト・モード
動作をサポートしない。本発明のマッピングの実施例は
80386又は80486マイクロプロセッサのプロテクト・モー
ドを必要としないがメモリ空間を再マップする機能は必
要である。80386及び80486においてこの機能はV86仮想
モードによって提供される。8088、8086及び80286マイ
クロプロセッサにおいてこの機能はエクスパンデッド・
メモリ仕様(EMS)ボード又はその他のメモリ管理ハー
ドウェアのいずれかによって提供される。
[Embodiment of Mapping] The embodiment of mapping according to the present invention also makes it possible to reallocate the address space of the reserved memory 503 initially allocated to the ROM for another use. However, the mapping embodiments of the present invention do not require the use of protected mode, and are therefore compatible with 8088 and 8086 microprocessors that do not support protected mode operation, Does not support protected mode operation. An embodiment of the mapping of the invention is
It does not require the protected mode of the 80386 or 80486 microprocessor, but does require the ability to remap memory space. On 80386 and 80486 this function is provided by V86 virtual mode. For the 8088, 8086, and 80286 microprocessors, this feature is
Provided either by a memory specification (EMS) board or other memory management hardware.

本発明の初期化ルーチンのマッピングの実施例を示す
流れ図を第16図に示す。プロセスはステップ1601から始
まる。ステップ1602においてアドレス空間が再割り振り
されるROMを捜し出す。
FIG. 16 is a flowchart showing an embodiment of the mapping of the initialization routine of the present invention. The process starts at step 1601. Step 1602 finds the ROM whose address space is to be reallocated.

ステップ1603においてROMコードにアクセスする割り
込みハンドラが確認される。ステップ1604においてROM
データ・テーブルのアドレス及び長さが確認される。
In step 1603, the interrupt handler that accesses the ROM code is confirmed. ROM in step 1604
The address and length of the data table are ascertained.

ステップ1605においてROMが実行されるEMSのページ・
フレームのリアル・モード・アドレス空間が割り振られ
る。オプションのステップ1606においてROMのアドレス
をオーバーレイするために使用するエクステンデッド・
メモリが割り振られる。
EMS page where ROM is executed in step 1605
The real mode address space of the frame is allocated. The extended address used to overlay the ROM address in optional step 1606
Memory is allocated.

ROMのデータ・テーブルはステップ1607においてコン
ベンショナル・メモリにコピーされる。ステップ1608に
おいて割り込みハンドラのインターセプトが配置され
る。ステップ1609においてROMデータに対するポインタ
がコンベンショナル・メモリ内のデータのコピーをポイ
ントするようにリダイレクトされる。オプションでステ
ップ1610においてROMアドレスがエクステンデッド・メ
モリによってオーバーレイされる。制御はステップ1611
においてオペレーティング・システムに戻される。
The ROM data table is copied to conventional memory in step 1607. In step 1608, an interrupt handler intercept is located. In step 1609, the pointer to the ROM data is redirected to point to a copy of the data in conventional memory. Optionally, in step 1610, the ROM address is overlaid by the extended memory. Control proceeds to step 1611
Is returned to the operating system.

ROMデータ・テーブルに対する照会がすべて見つから
なかった場合、あるいはこれらがすべて見つからないよ
うなことを回避したい場合には上記の手順の変形を行
う。その位置に関して公表されている情報を照会する
か、あるいはROMの内容の分析によるかのいずれかによ
ってROMデータ・テーブルの位置を捜し出してから、元
のROMアドレス空間のこれらが占める部分をこれらに予
約されているものとすることができる。ROMデータ・テ
ーブルは元のROMアドレス空間の元の位置にマップされ
る。ROMデータ・テーブルが占めるスペース以外の予約
メモリ内の元のROMアドレス空間は割り振り解放され、
他のリアル・モードでの目的に使用できるようになる。
割り振りされていない適切なエクステンデッドRAMを見
つけだし、元のROMアドレス空間を割り振り解放済みの
予約メモリ503に収める必要がある。このRAMを次いで割
り振らなければならない。このRAMを予約メモリ503内の
割り込み解除されたROMアドレス空間にマップしなけれ
ばならない。
If all queries to the ROM data table are not found, or if it is desired to avoid missing them all, the above procedure is modified. Locate the location of the ROM data table either by querying published information about its location or by analyzing the contents of the ROM, and then reserve them for the portion of the original ROM address space that they occupy. It can be assumed that it is. The ROM data table is mapped to the original location in the original ROM address space. The original ROM address space in reserved memory other than the space occupied by the ROM data table is deallocated,
It can be used for other real mode purposes.
It is necessary to find a suitable unallocated extended RAM and store the original ROM address space in the allocated reserved memory 503. This RAM must then be allocated. This RAM must be mapped to the interrupted ROM address space in the reserved memory 503.

第16図の初期化ルーチンが一回完了すると、コンピュ
ータを正常に使用することができ、また当初ROMが占め
ていたメモリ空間をTSR,デバイス・ドライバ及びネット
ワーク・インターフェース・プログラムの再配置を含む
他の用途に割り振ることができる。
Once the initialization routine of FIG. 16 is completed, the computer can be used normally, and the memory space originally occupied by the ROM can be re-allocated including the relocation of the TSR, device drivers, and network interface programs. Can be allocated to applications.

マッピングの実施例のROMアクセス・インタセプタはR
OMを照会するすべての命令をインターセプトし実行が混
乱するのを防止しなければならない。ほとんどのアプリ
ケーション・ソフトウェアがソフトウェア割り込みによ
ってROMコードにアクセスしているため割り込みテーブ
ルを修正することによって、ROMコードに対する呼出し
をインターセプトし、リダイレクトすることが可能であ
る。ROMデータ・テーブルに対する照会をリダイレクト
することが望ましいので、ソフトウェアを調べ、ROMデ
ータ・テーブルに対するアクセスの試みを捜し出さなけ
ればならず、またROMデータ・テーブル・ポインタに対
する変更を行って、アクセスが適切にリダイレクトされ
るようにしなければならない。ROMデータ・テーブルを
元の位置に保持しておくという上述の代替手順を使用し
た場合にはROMデータ・テーブルにアクセスしようとす
るROMアクセスを行うことができ、インターセプト及び
リダイレクトは行われない。ROMアクセス・インタセプ
タはROMアクセスの試みをインターセプトした場合には
実行をROMアクセス・ハンドラに渡す。
ROM access interceptor in mapping embodiment is R
All instructions that query the OM must be intercepted to prevent disruption of execution. By modifying the interrupt table because most application software accesses ROM code through software interrupts, it is possible to intercept and redirect calls to ROM code. Because it is desirable to redirect queries to the ROM data table, the software must be examined to find attempts to access the ROM data table, and changes to the ROM data table pointer must be made to ensure that access is appropriate. Must be redirected to If the above-described alternative procedure of keeping the ROM data table in its original location is used, a ROM access attempting to access the ROM data table can be made, and no interception and redirection is performed. If the ROM access interceptor intercepts the ROM access attempt, it passes execution to the ROM access handler.

本発明のROMアクセス・ハンドラのマッピングの実施
例を第17図の流れ図に示す。流れ図はステップ1701から
操作を開始する。
An embodiment of the mapping of the ROM access handler of the present invention is shown in the flowchart of FIG. The flowchart starts operation from step 1701.

ステップ1702においてアクセスされる特定の割り込み
サービス・ルーチンのためのハンドラに対するプロテク
ト・モードへの移行が行われる。オプションのステップ
1703においてROMへ進むことなくサービスが行われ、シ
ステムは次いで呼出しプログラムに戻る。オプションの
ステップ1703を行わない場合にはプロセスは次のように
継続する。
A transition is made to protected mode for the handler for the particular interrupt service routine accessed in step 1702. Optional steps
At 1703 the service is performed without going to the ROM and the system then returns to the calling program. If optional step 1703 is not performed, the process continues as follows.

ステップ1704においてページ・フレームの現行のマッ
ピングが呼出しプログラムのリアル・モード・スタック
にオプションでセーブされる。ステップ1705においてRO
Mが戻るアドレスがリアル・モード・スタックに設定さ
れる。ステップ1706においてリアル・モードCS:IPを変
更し、再配置されたROM入口点をポイントする。ステッ
プ1707においてROMがページ・フレームにマップされ
る。ステップ1708において再配置されたROM入口点にお
けるリアル・モードへの移行が行われる。ROMはステッ
プ1709において実行可能となる。
In step 1704, the current mapping of the page frame is optionally saved to the calling program's real mode stack. RO in step 1705
The address where M returns is set in the real mode stack. In step 1706, the real mode CS: IP is changed to point to the relocated ROM entry point. In step 1707, the ROM is mapped to a page frame. In step 1708, a transition is made to the real mode at the relocated ROM entry point. The ROM becomes executable in step 1709.

ステップ1710において制御はステップ1705で設定され
たアドレスに戻される。システムはプロテクト・モード
へ再移行し、ステップ1711でルーチンを終了する。ステ
ップ1712においてリアル・モードCS:IPを変更し、呼出
しプログラムの戻りアドレスをポイントする。
In step 1710, control is returned to the address set in step 1705. The system re-enters protected mode and ends the routine at step 1711. In step 1712, the real mode CS: IP is changed to point to the return address of the calling program.

必要に応じステップ1713において戻りポインタを修正
し、リダイレクトされたROMデータをポイントするよう
にする。ページ・フレームの元のマッピングはステップ
1714において呼出しプログラムのリアル・モード・スタ
ックに格納されているデータからオプションで復元され
る。ステップ1715においてシステムは呼出しプログラム
の戻りアドレスでリアル・モードに再移行する。
If necessary, in step 1713, the return pointer is modified to point to the redirected ROM data. The original mapping of the page frame is a step
At 1714, optionally restored from the data stored in the real mode stack of the calling program. In step 1715, the system re-enters real mode at the return address of the calling program.

CPUのプロテクト・モードを使用した本発明の実施形
態は多数の利点をもたらすものであるが、ROMは通常プ
ロテクト・モードではなくリアル・モード(又はV86モ
ード)で作動している。ROMにはリアル・モードでアク
セスするものとしているシステム・ソフトウェア及びア
プリケーション・ソフトウェアとの互換性を維持するた
め、プロテクト・モードでアクセスされるROMに対して
リアル・モードの作動をシミュレートするステップを行
わなければならない。
While embodiments of the present invention using the protected mode of the CPU provide a number of advantages, ROMs are typically operating in real mode (or V86 mode) rather than protected mode. To maintain compatibility with system and application software that requires ROM access in real mode, simulate real mode operation for ROMs accessed in protected mode. It must be made.

本発明をセグメント・レジスタのローディング時の試
みをトラップする方法を含むように実施することができ
る。CPUがプロテクト・モードであるときにセグメント
・レジスタをロードしようとする試みをCPUによって検
出し、一般保護例外ハンドラ(general protection exc
eption handler)に対する呼出しを自動的に行う。一般
保護例外ハンドラはプロテクト・モードの規則に違反す
る命令の位置を戻す。
The invention can be implemented to include a method for trapping attempts at loading segment registers. An attempt by the CPU to load a segment register when the CPU is in protected mode is detected by the CPU and the general protection exception handler
Makes a call to the eption handler automatically. The general protection exception handler returns the location of the instruction that violates the protected mode rules.

これが発生するのを補うために一般保護例外ハンドラ
が指定した位置にある命令を調べデコードする。デコー
ディングはすべての命令のオペコード(opcode)を含ん
でいるルックアップ・テーブルにある命令のオペコード
を調べることによって行われる。命令の分析によりリア
ル・モードにおいて命令が意図している効果を判断する
ことができ、かつ意図している効果をプロテクト・モー
ドでエミュレートすることができる。意図している効果
がもたらされるので障害をもたらしたコードを適切に動
作させることができ、実行がそのコードに渡されそのコ
ードを完了することが可能となる。
To compensate for this, the general protection exception handler examines and decodes the instruction at the specified location. Decoding is performed by looking up the opcode of the instruction in a look-up table that contains the opcodes of all instructions. By analyzing the instruction, the intended effect of the instruction in real mode can be determined, and the intended effect can be emulated in protected mode. The code that caused the failure can be properly operated because the intended effect is provided, and execution can be passed to the code to complete it.

本発明が適切に作動できるようにするため、I/O命令
をトラップしI/O特権レベル(I/O Privelege Level)IO
PLの特権レベルを高くできるので(低い特権レベル番号
で表される)IOPLセンシティブI/O命令を実行しようと
いう試みは一般保護例外障害をもたらす。発生した障害
を処理し、これが本発明の動作と衝突しないようにする
ことができる。
In order for the present invention to operate properly, I / O instructions are trapped and I / O Privilege Level (IO)
An attempt to execute an IOPL-sensitive I / O instruction (represented by a lower privilege level number) results in a general protection exception fault because the PL privilege level can be increased. Any faults that occur can be handled so that they do not conflict with the operation of the present invention.

いくつかのマイクロプロセッサの割り込みフラグは注
意をほとんど必要としない態様で作動するが、I/O命令
をトラップする場合などのようにI/O特権が拒否された
場合、割り込みフラグの動作が異なるものとなることが
ある。割り込みフラグに関連したある種のマイクロプロ
セッサの命令はI/Oレベルに敏感である(IOPL−sensiti
ve)。80286又は80386マイクロプロセッサ・ベースのシ
ステムにおいて、I/O特権が拒否された場合に割り込み
可能フラグ・クリア(clear interrupt enable flag)C
LI命令又は割り込み可能フラグ設定(set interrupt en
able flag)STI命令の実行を試みると一般保護例外障害
が生じる。
Some microprocessor interrupt flags operate in a manner that requires little attention, but behave differently when I / O privileges are denied, such as when trapping I / O instructions. It may be. Certain microprocessor instructions associated with interrupt flags are I / O level sensitive (IOPL-sensiti
ve). On 80286 or 80386 microprocessor-based systems, clear interrupt enable flag C when I / O privileges are denied
LI instruction or interrupt enable flag setting (set interrupt en
able flag) Attempting to execute an STI instruction causes a general protection exception fault.

本発明は割り込みフラグを変更するソフトウェアによ
る試みの監視、ならびに適切な割り込みフラグの挙動の
エミュレーションの問題を解決する方法も含んでいる。
これらの問題はプロテクト・モードにおけるPOPF及び割
り込み戻り(interrupt return)IRET命令の不適切な動
作によって生じる。POPF命令は最上位のワードをスタッ
クから取り出し、その内容をCPUのフラグ・レジスタに
入れるものであると考えられる。IRET命令は上位3ワー
ドをスタックから取り出し、そのワードの内容をCPUフ
ラグ・レジスタに入れる。しかしながら、プロテクト・
モードではPOPF命令もIRET命令も割り込みフラグを変更
しないし、また一般保護例外も発生しない。それ故、コ
ンピュータがプロテクト・モードのときに割り込みフラ
グのリアル・モードでの挙動をエミュレートするために
一般保護例外ハンドラを使用すると完全なエミュレーシ
ョンは行われず、適正な作動が行われなくなる。
The present invention also includes a method for overcoming software attempts to change interrupt flags, as well as emulating the behavior of appropriate interrupt flag behavior.
These problems are caused by improper operation of the POPF and interrupt return IRET instructions in protected mode. The POPF instruction is supposed to take the top word off the stack and put its contents into the CPU's flag register. The IRET instruction pops the top three words off the stack and places the contents of that word into the CPU flag register. However, the protection
In the mode, neither the POPF instruction nor the IRET instruction changes the interrupt flag, and no general protection exception occurs. Therefore, if the general protection exception handler is used to emulate the real mode behavior of the interrupt flag when the computer is in protected mode, full emulation will not be performed and proper operation will not be performed.

従来、POPF命令をトラップできなかったため、満足で
きるリアル・モードのエミュレーションを提供できたも
のは誰もいない。「DOS Protected Mode Interface Spe
cification,Version 1.0」には次のように記載されてい
る。「...クライアントはIRET(D)又はPOPFを使用し
て、割り込みフラグを変更できないが、これはこれらの
命令が物理的割り込みフラグにアクセスするものであ
り、クライアントの特権レベルのためCPUによって無視
されるからである。」 本発明の特徴の1つはPOPF及びIRET命令に一般保護例
外を発生させることである。本発明は一般保護例外ハン
ドラのみに依存する代わりに、代替方法を使用してPOPF
命令又はIRET命令をトラップすることによってプロテク
ト・モード時にリアル・モードの挙動の適切なエミュレ
ーションを提供する。
Previously, no one could provide satisfactory real-mode emulation because they could not trap the POPF instruction. `` DOS Protected Mode Interface Spe
cification, Version 1.0 "states as follows. "... The client cannot change the interrupt flag using IRET (D) or POPF, but these instructions access the physical interrupt flag and are ignored by the CPU due to the privilege level of the client. One of the features of the present invention is to generate a general protection exception for the POPF and IRET instructions. Instead of relying solely on the general protection exception handler, the present invention uses an alternative
Providing proper emulation of real mode behavior during protected mode by trapping instructions or IRET instructions.

POPF命令又はIRET命令が普通、プログラム内のコード
の予測可能なシーケンスの一部として使用されているの
で、本発明はこの規則性を利用してPOPF命令をトラップ
する。
The present invention takes advantage of this regularity to trap POPF instructions, since the POPF or IRET instructions are commonly used as part of a predictable sequence of code in a program.

普通は、プログラムはPUSHF命令を使用してフラグ・
レジスタの内容をセーブし、CLI又はSTI命令を使用して
割り込みをロックし、割り込みがロックされている間に
各種のコードを実行し、その後、POPF命令を使用してフ
ラグ・レジスタの内容を復元している。
Normally, programs use the PUSHF instruction to flag
Save register contents, lock interrupts using CLI or STI instruction, execute various codes while interrupts are locked, then restore flag register contents using POPF instruction are doing.

POPF命令をトラップするためにCLI又はSTI命令の実行
によってもたらされる一般保護例外が生じる場合には、
常にスタックの限界を現行のスタック・ポインタと等し
く設定する。このようなスタックの限界を設けた場合、
POPF又はIRETを実行するとスタックの限界を越え、これ
によって、一般保護例外が発生する。
If a General Protection Exception caused by the execution of a CLI or STI instruction to trap a POPF instruction occurs,
Always set the stack limit equal to the current stack pointer. With such a stack limit,
Executing POPF or IRET would exceed the stack limit, causing a general protection exception.

本発明は第5図に示すようにマップされたメモリ・ア
ドレスを有するコンピュータ・システムに限定されるも
のではない。たとえば、ROM用に予約されたメモリ・ア
ドレスが他の位置にあることがある。たとえば、PS/2な
どのオペレーティングシステムの場合、ROM用のメモリ
・アドレスは0E000などの位置に予約されている。
The present invention is not limited to computer systems having mapped memory addresses as shown in FIG. For example, memory addresses reserved for ROM may be in other locations. For example, in an operating system such as PS / 2, a memory address for ROM is reserved at a location such as 0E000.

本発明はマッピング方法にプロテクト・モードを利用
しているが、これは必須ではない。マッピング方法のた
めにプロテクト・モードとすることを必要としない他の
メモリ管理システムを使用することができる。
Although the present invention utilizes protected mode for the mapping method, this is not required. Other memory management systems that do not need to be in protected mode for the mapping method can be used.

したがって、パフォーマンスを大幅に劣化させること
がなく、またCPU,ROM又はアプリケーションのいずれに
も特有のものではない態様で容易にアクセスできるメモ
リをより多く利用可能にする方法が提供される。
Thus, a method is provided that does not significantly degrade performance and makes more available memory easily accessible in a manner that is not specific to any of the CPU, ROM, or application.

フロントページの続き (56)参考文献 小高輝真,“用途別最適RAM利用 術”,月刊アスキー,株式会社アスキ ー,平成3年6月,第15巻,第6号, p.218−219 (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 - 12/06 Continuation of the front page (56) References Terumasa Odaka, "Optimal RAM Usage by Application", Monthly ASCII, ASCII Corporation, June 1991, Vol. 15, No. 6, p. 218-219 (58) Field surveyed (Int. Cl. 7 , DB name) G06F 12/00-12/06

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】リアル・モード及びプロテクト・モードで
作動可能なプロセッサを有し、読み取り専用メモリ(RO
M)のために予約されているメモリ・アドレス空間を含
む第1の範囲のメモリ・アドレス空間、コンベンショナ
ル・メモリとして指定されているメモリ・アドレス空間
およびエクステンデッド・メモリ・アドレス空間とを有
するコンピュータ・システムにおいて、前記プロセッサ
によって前記の第1範囲のメモリ・アドレス空間を利用
する方法において: 前記第1範囲のメモリ・アドレス空間内のROMのアドレ
スを確認し; 前記ROMにアクセスするための割り込みハンドラを確認
し; 前記ROMに格納されているROMデータ・テーブルのアドレ
スを確認し; 前記第1範囲のメモリ・アドレス空間にある前記ROMを
前記エクステンデッド・メモリ・アドレス空間に割り振
るとともにマツプし; 前記ROMデータ・テーブルを前記コンベンショナル・メ
モリにコピーし; 前記割り込みハンドラに対するアドレス空間を前記コン
ベンショナル・メモリ内に割り振り; 前記割り込みハンドラを前記割り振られたアドレス空間
にコピーし; 前記コピーされた割り込みハンドラと、前記コンベンシ
ョナル・メモリ内にコピーされた前記ROMデータ・テー
ブルとを対応付けし; 前記第1範囲のメモリ・アドレス空間内の前記ROMアド
レスをエクステンデッド・メモリによってオーバーレイ
する; ステップからなる方法。
A read only memory (RO) having a processor operable in a real mode and a protected mode.
M) a computer system having a first range of memory address space, including a memory address space reserved for M, a memory address space designated as conventional memory, and an extended memory address space. A method of utilizing said first range of memory address space by said processor: ascertaining an address of a ROM within said first range of memory address space; and identifying an interrupt handler for accessing said ROM. Confirming the address of a ROM data table stored in the ROM; allocating and mapping the ROM in the first range of memory address space to the extended memory address space; Copy the table to the conventional memory Allocating an address space for the interrupt handler in the conventional memory; copying the interrupt handler to the allocated address space; and copying the copied interrupt handler and the copied information in the conventional memory. Associating with a ROM data table; overlaying the ROM address in the first range of memory address space with an extended memory;
【請求項2】前記ROMに対するグローバル及びローカル
ディスクリプタ・テーブル自体を前記エクステンデッド
・メモリ・アドレス空間内に作成するステップをさらに
含んでいる特許請求の範囲第1項記載の方法。
2. The method of claim 1 further comprising the step of creating global and local descriptor tables for said ROM itself in said extended memory address space.
【請求項3】前記プロセッサを第1保護レベルのプロテ
クト・モードにし; 戻りアドレスを前記プロテクト・モードのスタック上に
設定し; コードセグメント:命令ポインタ(CS:IP)を変更し
て、再配置されたROM入口点をポイントするようにし; 前記プロセッサを前記プロテクト・モードの第2保護レ
ベルとし; 前記ROMアクセスを実行し; 制御を前記戻りアドレスに戻し; 前記CS:IPを呼び出しプログラムの戻りアドレスに変更
し; 前記ROMアクセスの実行の出力を調べ、必要に応じ、該
出力を修正し; 前記プロセッサを前記リアル・モードとする; ステップをさらに含んでいる特許請求の範囲第1項記載
の方法。
3. The method according to claim 1, wherein the processor is in a protected mode with a first protection level; a return address is set on the protected mode stack; and a code segment is relocated by changing an instruction pointer (CS: IP). Setting the processor to the second protection level of the protected mode; executing the ROM access; returning control to the return address; and setting CS: IP to the return address of the calling program. 2. The method of claim 1 further comprising the steps of: changing; examining the output of the execution of the ROM access, modifying the output if necessary; placing the processor in the real mode.
【請求項4】リアル・モード及びプロテクト・モードで
作動可能なプロセッサを有し、読み取り専用メモリ(RO
M)のために予約されているメモリ・アドレス空間を含
む第1の範囲のメモリ・アドレス空間、コンベンショナ
ル・メモリとして指定されているメモリ・アドレス空間
およびエクステンデッド・メモリ・アドレス空間とを有
するコンピュータ・システムにおいて、前記プロセッサ
によって前記の第1範囲のメモリ・アドレス空間を利用
する方法において: 前記第1範囲のメモリ・アドレス空間内のROMのアドレ
スを確認し; 前記ROMにアクセスするための割り込みハンドラを確認
し; 前記ROM内のROMデータ・テーブルのアドレスを確認し; ROMが実行されるエクスパンデッド・メモリ仕様(EMS)
ページ・フレームに対するリアル・モードのアドレスを
割り振り; 前記ROMデータ・テーブルをコンベンショナル・メモリ
にコピーし; 前記コンベンショナル・メモリ内のアドレス空間を前記
割り込みハンドラに割り振り; 前記ROMデータ・テーブルに対する前記割り込みハンド
ラ内のポインタを修正し、前記コンベンショナル・メモ
リ内の前記ROMデータ・テーブルのコピーをポイントす
るようにし; 前記第1範囲のメモリ・アドレス空間内の前記ROMアド
レスをエクステンデッド・メモリによってオーバーレイ
する ステップからなる方法。
4. A read-only memory (RO) having a processor operable in a real mode and a protected mode.
M) a computer system having a first range of memory address space, including a memory address space reserved for M, a memory address space designated as conventional memory, and an extended memory address space. A method of utilizing said first range of memory address space by said processor: ascertaining an address of a ROM within said first range of memory address space; and identifying an interrupt handler for accessing said ROM. Check the address of the ROM data table in the ROM; Expanded Memory Specification (EMS) where the ROM is executed
Allocate real mode addresses for page frames; Copy the ROM data table to conventional memory; Allocate address space in the conventional memory to the interrupt handler; In the interrupt handler for the ROM data table Modifying the pointer to point to a copy of the ROM data table in the conventional memory; and overlaying the ROM address in the first range of memory address space with extended memory. .
【請求項5】前記プロセッサを第1保護レベルのプロテ
クト・モードにし; 前記EMSページ・フレームの現行のマッピングをセーブ
し; 戻りアドレスを前記リアル・モードのスタック上に設定
し; コード・セグメント:命令ポインタ(CS:IP)を変更し
て、再配置されたROM入口点をポイントするようにし; 前記プロセッサを前記リアル・モードとし; 前記ROM内のコードを実行し; 制御を前記戻りアドレスに戻し; 前記CS:IPを呼び出しプログラムの戻りアドレスに変更
し; 前記ROMアクセスの実行の出力を調べ、必要に応じ、該
出力を修正し; 前記ページ・フレームの元のマッピングを復元し; 前記プロセッサを前記リアル・モードとする; ステップをさらに含んでいる特許請求の範囲第4項記載
の方法。
5. Putting the processor in protected mode with a first protection level; saving the current mapping of the EMS page frame; setting a return address on the real mode stack; Changing the pointer (CS: IP) to point to the relocated ROM entry point; placing the processor in the real mode; executing code in the ROM; returning control to the return address; Changing the CS: IP to the return address of the calling program; examining the output of the ROM access execution and modifying the output if necessary; restoring the original mapping of the page frame; 5. The method of claim 4, further comprising the step of: real mode.
JP50293493A 1991-07-15 1992-07-15 Memory management method Expired - Fee Related JP3268310B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US730,244 1991-07-15
US07/730,244 US5237669A (en) 1991-07-15 1991-07-15 Memory management method
PCT/US1992/005925 WO1993002417A1 (en) 1991-07-15 1992-07-15 Memory management method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2001150838A Division JP3571667B2 (en) 1991-07-15 2001-05-21 Interrupt flag management method

Publications (2)

Publication Number Publication Date
JPH06508952A JPH06508952A (en) 1994-10-06
JP3268310B2 true JP3268310B2 (en) 2002-03-25

Family

ID=24934552

Family Applications (2)

Application Number Title Priority Date Filing Date
JP50293493A Expired - Fee Related JP3268310B2 (en) 1991-07-15 1992-07-15 Memory management method
JP2001150838A Expired - Fee Related JP3571667B2 (en) 1991-07-15 2001-05-21 Interrupt flag management method

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2001150838A Expired - Fee Related JP3571667B2 (en) 1991-07-15 2001-05-21 Interrupt flag management method

Country Status (12)

Country Link
US (2) US5237669A (en)
EP (1) EP0595880B1 (en)
JP (2) JP3268310B2 (en)
KR (1) KR0132696B1 (en)
AT (1) ATE174137T1 (en)
AU (1) AU2339592A (en)
BR (1) BR9206286A (en)
CA (1) CA2113565C (en)
DE (1) DE69227774T2 (en)
FI (1) FI940168A (en)
NO (1) NO940148L (en)
WO (1) WO1993002417A1 (en)

Families Citing this family (79)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5202994A (en) * 1990-01-31 1993-04-13 Hewlett-Packard Company System and method for shadowing and re-mapping reserved memory in a microcomputer
US5640507A (en) * 1992-03-02 1997-06-17 Microsoft Corporation Method and apparatus for identifying read only memory
US5404438A (en) * 1992-03-03 1995-04-04 Compaq Computer Corporation Method and apparatus for operating text mode software in a graphics mode environment
CA2091075A1 (en) * 1992-03-06 1993-09-07 Eric Straub Method and apparatus for storing dos program in high memory area
US5455919A (en) * 1992-11-03 1995-10-03 International Business Machines Corporation Installation and use of plural expanded memory managers
US5596755A (en) * 1992-11-03 1997-01-21 Microsoft Corporation Mechanism for using common code to handle hardware interrupts in multiple processor modes
US5371867A (en) * 1992-11-10 1994-12-06 International Business Machines Corporation Method of using small addresses to access any guest zone in a large memory
JPH0773046A (en) * 1992-12-07 1995-03-17 Intel Corp Method and equipment for emulation of circuit in computer system
US5835926A (en) * 1992-12-15 1998-11-10 Siemens Business Communication Systems, Inc. Multiple memory addressing using adjustable chip select
CN1090780C (en) * 1993-03-09 2002-09-11 诺威尔股份有限公司 Method and apparatus for memory management
US6147696A (en) * 1993-06-24 2000-11-14 Nintendo Co. Ltd. Electronic entertainment and communication system
US5581270A (en) * 1993-06-24 1996-12-03 Nintendo Of America, Inc. Hotel-based video game and communication system
US6762733B2 (en) 1993-06-24 2004-07-13 Nintendo Co. Ltd. Electronic entertainment and communication system
US5959596A (en) * 1993-06-24 1999-09-28 Nintendo Co., Ltd. Airline-based video game and communications system
US6684261B1 (en) * 1993-07-19 2004-01-27 Object Technology Licensing Corporation Object-oriented operating system
US5473777A (en) * 1993-07-19 1995-12-05 Moeller; Christopher P. Wrapper for enabling an object otented application to maintain virtual memory using procedural function calls
US5379432A (en) 1993-07-19 1995-01-03 Taligent, Inc. Object-oriented interface for a procedural operating system
US5537597A (en) * 1993-09-27 1996-07-16 Intel Corporation Method and apparatus for supporting real mode card services clients with a protected mode card services implementation
US5526503A (en) * 1993-10-06 1996-06-11 Ast Research, Inc. Virtual addressing buffer circuit
US5517651A (en) * 1993-12-29 1996-05-14 Intel Corporation Method and apparatus for loading a segment register in a microprocessor capable of operating in multiple modes
US5577221A (en) * 1994-04-14 1996-11-19 Industrial Technology Research Institute Method and device for expanding ROM capacity
JPH07302254A (en) * 1994-05-06 1995-11-14 Mitsubishi Electric Corp Microcomputer system
US5664139A (en) * 1994-05-16 1997-09-02 Compaq Computer Corporation Method and a computer system for allocating and mapping frame buffers into expanded memory
US5699542A (en) * 1994-09-30 1997-12-16 Intel Corporation Address space manipulation in a processor
AUPN105495A0 (en) * 1995-02-10 1995-03-09 Aristocrat Leisure Industries Pty Ltd Dram emulator
WO1996038784A1 (en) * 1995-06-02 1996-12-05 Systemsoft Corporation Digital data processing method and apparatus for peripheral device control
US5829012A (en) * 1996-04-19 1998-10-27 Unisys Corporation System for programmably providing modified read signals within a ROM-based memory
US6081664A (en) * 1996-09-30 2000-06-27 Intel Corporation Method for monitoring a BIOS
US5940850A (en) * 1996-10-31 1999-08-17 International Business Machines Corporation System and method for selectively enabling load-on-write of dynamic ROM data to RAM
JP3011120B2 (en) * 1997-02-13 2000-02-21 日本電気株式会社 Layout information generating apparatus and layout information generating method
US5983310A (en) 1997-02-13 1999-11-09 Novell, Inc. Pin management of accelerator for interpretive environments
US5987581A (en) * 1997-04-02 1999-11-16 Intel Corporation Configurable address line inverter for remapping memory
US5978882A (en) * 1997-04-25 1999-11-02 Novell, Inc. Real-mode, 32-bit, flat-model execution apparatus and method
US7441254B1 (en) 1997-07-09 2008-10-21 International Business Machines Corporation Simulation of memory-mapped I/O
US6686936B1 (en) 1997-11-21 2004-02-03 Xsides Corporation Alternate display content controller
US6639613B1 (en) * 1997-11-21 2003-10-28 Xsides Corporation Alternate display content controller
US6330010B1 (en) * 1997-11-21 2001-12-11 Xsides Corporation Secondary user interface
US6337717B1 (en) 1997-11-21 2002-01-08 Xsides Corporation Alternate display content controller
US6018332A (en) * 1997-11-21 2000-01-25 Ark Interface Ii, Inc. Overscan user interface
US7024512B1 (en) * 1998-02-10 2006-04-04 International Business Machines Corporation Compression store free-space management
US6356996B1 (en) 1998-03-24 2002-03-12 Novell, Inc. Cache fencing for interpretive environments
US6141732A (en) * 1998-03-24 2000-10-31 Novell, Inc. Burst-loading of instructions into processor cache by execution of linked jump instructions embedded in cache line size blocks
US6578193B1 (en) 1998-03-24 2003-06-10 Novell, Inc. Endian-neutral loader for interpretive environment
JP2995030B2 (en) * 1998-03-31 1999-12-27 三洋電機株式会社 Computer system and program and data correction method in computer system
US6637023B1 (en) * 1999-03-03 2003-10-21 Microsoft Corporation Method and system for updating read-only software modules
US6590592B1 (en) 1999-04-23 2003-07-08 Xsides Corporation Parallel interface
WO2000072123A2 (en) 1999-05-21 2000-11-30 Xsides Corporation Parallel graphical user interface
US6282647B1 (en) * 1999-06-02 2001-08-28 Adaptec, Inc. Method for flashing a read only memory (ROM) chip of a host adapter with updated option ROM bios code
US6543006B1 (en) * 1999-08-31 2003-04-01 Autodesk, Inc. Method and apparatus for automatic undo support
US6630943B1 (en) 1999-09-21 2003-10-07 Xsides Corporation Method and system for controlling a complementary user interface on a display surface
US6677964B1 (en) 2000-02-18 2004-01-13 Xsides Corporation Method and system for controlling a complementary user interface on a display surface
US20040226041A1 (en) * 2000-02-18 2004-11-11 Xsides Corporation System and method for parallel data display of multiple executing environments
US7539828B2 (en) * 2000-08-08 2009-05-26 Faronics Corporation Method and system for automatically preserving persistent storage
US6884171B2 (en) * 2000-09-18 2005-04-26 Nintendo Co., Ltd. Video game distribution network
US7058177B1 (en) 2000-11-28 2006-06-06 Xilinx, Inc. Partially encrypted bitstream method
US7818808B1 (en) * 2000-12-27 2010-10-19 Intel Corporation Processor mode for limiting the operation of guest software running on a virtual machine supported by a virtual machine monitor
US6834384B2 (en) * 2001-03-14 2004-12-21 General Instrument Corporation Methods and apparatus for upgrading firmware in an embedded system
US6938111B2 (en) * 2002-04-19 2005-08-30 Siemens Aktiengesellschaft Method for operating automation control equipment applications
US7171546B2 (en) * 2002-05-23 2007-01-30 Adams Phillip M CPU life-extension apparatus and method
US7305680B2 (en) * 2002-08-13 2007-12-04 Sharp Laboratories Of America, Inc. Listening module for asynchronous messages sent between electronic devices of a distributed network
US7134006B2 (en) * 2003-06-03 2006-11-07 Gateway Inc. Method and system for changing software access level within or outside a host protected area
US7451267B1 (en) * 2003-09-23 2008-11-11 Netlogic Microsystems, Inc. Method and apparatus for learn and related operations in network search engine
US7403936B2 (en) * 2004-03-05 2008-07-22 Siemens Medical Solutions Usa, Inc. Optimizing database access for record linkage by tiling the space of record pairs
US7764183B2 (en) * 2005-04-22 2010-07-27 Infratab, Inc. Apparatus and method for monitoring and communicating data associated with a product
US7495558B2 (en) 2004-04-27 2009-02-24 Infratab, Inc. Shelf-life monitoring sensor-transponder system
US7380095B2 (en) 2004-06-30 2008-05-27 Intel Corporation System and method for simulating real-mode memory access with access to extended memory
US7840962B2 (en) 2004-09-30 2010-11-23 Intel Corporation System and method for controlling switching between VMM and VM using enabling value of VMM timer indicator and VMM timer value having a specified time
US7734741B2 (en) * 2004-12-13 2010-06-08 Intel Corporation Method, system, and apparatus for dynamic reconfiguration of resources
US7738484B2 (en) * 2004-12-13 2010-06-15 Intel Corporation Method, system, and apparatus for system level initialization
CN100561446C (en) * 2004-12-31 2009-11-18 北京中星微电子有限公司 Access method and access device thereof by indirect addressing extension storage space
US20080126590A1 (en) * 2006-06-29 2008-05-29 Rothman Michael A Semiconductor based host protected addressing in computing devices
US8032687B2 (en) * 2009-02-12 2011-10-04 Unisys Corporation Method, system, and apparatus for supporting limited address mode memory access
JP2011003072A (en) * 2009-06-19 2011-01-06 Toshiba Corp Multi-core processor system
US9128625B1 (en) * 2012-03-26 2015-09-08 Emc Corporation Method and system for physical memory reservation for user-space programs
EP4307264A3 (en) 2012-10-09 2024-03-20 Infratab, Inc. Inference electronic shelf life dating system for perishables
KR102511363B1 (en) * 2016-02-04 2023-03-17 삼성전자주식회사 A display apparatus and a display method
US11307779B2 (en) * 2019-09-11 2022-04-19 Ceremorphic, Inc. System and method for flash and RAM allocation for reduced power consumption in a processor
US12007902B2 (en) 2022-11-09 2024-06-11 Andes Technology Corporation Configurable memory system and memory managing method thereof
CN116820785B (en) * 2023-08-30 2024-01-02 紫光同芯微电子有限公司 Method and device for managing memory, resource-constrained device and storage medium

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4141068A (en) * 1977-03-24 1979-02-20 Xerox Corporation Auxiliary ROM memory system
US4442484A (en) * 1980-10-14 1984-04-10 Intel Corporation Microprocessor memory management and protection mechanism
US4386773A (en) * 1981-06-22 1983-06-07 Bronstein John M TV Game cartridge with expandable memory
JPS6068441A (en) * 1983-09-22 1985-04-19 Fujitsu Ltd 1-chip microcomputer
US5027273A (en) * 1985-04-10 1991-06-25 Microsoft Corporation Method and operating system for executing programs in a multi-mode microprocessor
US4761736A (en) * 1986-01-02 1988-08-02 Commodore Business Machines, Inc. Memory management unit for addressing an expanded memory in groups of non-contiguous blocks
US5109521A (en) * 1986-09-08 1992-04-28 Compaq Computer Corporation System for relocating dynamic memory address space having received microprocessor program steps from non-volatile memory to address space of non-volatile memory
US4831522A (en) * 1987-02-17 1989-05-16 Microlytics, Inc. Circuit and method for page addressing read only memory
US4928237A (en) * 1987-03-27 1990-05-22 International Business Machines Corp. Computer system having mode independent addressing
US4926322A (en) * 1987-08-03 1990-05-15 Compag Computer Corporation Software emulation of bank-switched memory using a virtual DOS monitor and paged memory management
US5091850A (en) * 1987-09-28 1992-02-25 Compaq Computer Corporation System for fast selection of non-cacheable address ranges using programmed array logic
JP3046310B2 (en) * 1988-09-13 2000-05-29 株式会社東芝 Memory system
US5125087A (en) * 1988-11-07 1992-06-23 Microsoft Corporation Method of resetting sequence of access to extended memory disrupted by interrupt processing in 80286 compatible system using code segment register
US5083259A (en) * 1988-12-07 1992-01-21 Xycom, Inc. Computer bus interconnection device
US5123098A (en) * 1989-02-28 1992-06-16 Hewlett-Packard Company Method for executing programs within expanded memory of a computer system using MS or PC DOS
US4985871A (en) * 1989-11-13 1991-01-15 Chips And Technologies, Inc. Memory controller for using reserved dram addresses for expanded memory space

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小高輝真,"用途別最適RAM利用術",月刊アスキー,株式会社アスキー,平成3年6月,第15巻,第6号,p.218−219

Also Published As

Publication number Publication date
NO940148L (en) 1994-03-14
EP0595880B1 (en) 1998-12-02
BR9206286A (en) 1994-11-08
JP3571667B2 (en) 2004-09-29
US5237669A (en) 1993-08-17
JPH06508952A (en) 1994-10-06
WO1993002417A1 (en) 1993-02-04
US5367658A (en) 1994-11-22
CA2113565A1 (en) 1993-01-16
ATE174137T1 (en) 1998-12-15
FI940168A0 (en) 1994-01-13
DE69227774D1 (en) 1999-01-14
FI940168A (en) 1994-03-04
KR0132696B1 (en) 1998-04-24
DE69227774T2 (en) 1999-07-22
AU2339592A (en) 1993-02-23
CA2113565C (en) 1998-05-05
NO940148D0 (en) 1994-01-14
JP2002024003A (en) 2002-01-25
EP0595880A4 (en) 1997-07-02
EP0595880A1 (en) 1994-05-11

Similar Documents

Publication Publication Date Title
JP3268310B2 (en) Memory management method
CA1304166C (en) Software emulation of bank-switched memory using a virtual dos monitorand paged memory management
US8127098B1 (en) Virtualization of real mode execution
US11210239B2 (en) Protection key management and prefixing in virtual address space legacy emulation system
EP0288606B1 (en) Computer system employing a cpu having two mutually incompatible addressing modes
US6813522B1 (en) Method of sharing memory in a multi-processor system including a cloning of code and data
US7120778B2 (en) Option ROM virtualization
EP0464988A2 (en) Personal Computer system
US20020129233A1 (en) Data processor having bios packing compression/decompression architecture
US8135899B1 (en) Expansion of virtualized physical memory of virtual machine
WO2006012007A1 (en) A system and method for simulating real-mode memory access with access to extended memory
JPS6248258B2 (en)
US20040122834A1 (en) Apparatus and method for switching mode in a computer system
US5940869A (en) System and method for providing shared memory using shared virtual segment identification in a computer system
JPH0328943A (en) Overlay management method
JPH0916461A (en) System and method for provision of efficient shared memory at inside of virtual memory system
US7293207B2 (en) Method for testing memory in a computer system utilizing a CPU with either 32-bit or 36-bit memory addressing
US8091090B2 (en) Method for providing scratch registers for use by a virtual-machine monitor
JPH06332803A (en) Tlb control method in virtual computer system
AU632542B2 (en) Ring reduction logic mechanism
JP6708860B2 (en) Protected Key Management and Prefix Translation in Virtual Address Space Legacy Emulation System
WO1991001024A2 (en) A method and apparatus for information management in a computer system
CN111527480A (en) Address translation in a data processing apparatus

Legal Events

Date Code Title Description
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

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R370 Written measure of declining of transfer procedure

Free format text: JAPANESE INTERMEDIATE CODE: R370

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080118

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090118

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090118

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100118

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110118

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees