JP2002149426A - Method for executing program - Google Patents

Method for executing program

Info

Publication number
JP2002149426A
JP2002149426A JP2000347817A JP2000347817A JP2002149426A JP 2002149426 A JP2002149426 A JP 2002149426A JP 2000347817 A JP2000347817 A JP 2000347817A JP 2000347817 A JP2000347817 A JP 2000347817A JP 2002149426 A JP2002149426 A JP 2002149426A
Authority
JP
Japan
Prior art keywords
program
data
ram
bios program
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000347817A
Other languages
Japanese (ja)
Inventor
Hiroyuki Okada
浩幸 岡田
Takashi Kobayashi
敬 小林
Koichi Satake
浩一 佐竹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000347817A priority Critical patent/JP2002149426A/en
Publication of JP2002149426A publication Critical patent/JP2002149426A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent such a case being generated recently that a preliminarily decided area on an RAM is not large enough to store a BIOS program in a certain CPU to be used due to the inclination of the increase of the size of the BIOS program. SOLUTION: A BIOS program to be executed on an RAM is allowed to directly refer to a data part stored in an ROM so that the function of the BIOS program to be executed by a segment preliminarily decided on the RAM can be added.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータのR
OMに格納される基本入出力システム(BIOS)プロ
グラムのサイズ量の削減方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to a method for reducing the size of a basic input / output system (BIOS) program stored in an OM.

【0002】[0002]

【従来の技術】従来、コード部分とデータ部分が一緒に
圧縮されて読み出し専用メモリ(ROM)の決められた
サイズの領域に格納されているBIOSプログラムは、
コンピュータ起動時に読み書き可能メモリ(RAM)上
の予め決められた領域(以下では、この領域をセグメン
トと称する)にコード部分とデータ部分が一緒に伸張さ
れて実行されていた。なお、セグメントのサイズや占有
するセグメントの個数は中央処理演算装置(CPU)に
よって異なっていた。
2. Description of the Related Art Conventionally, a BIOS program in which a code portion and a data portion are compressed together and stored in an area of a predetermined size in a read-only memory (ROM) includes:
When a computer is started, a code area and a data area are expanded together in a predetermined area on a readable / writable memory (RAM) (hereinafter, this area is referred to as a segment) and executed. The segment size and the number of occupied segments differed depending on the central processing unit (CPU).

【0003】図4は、RAM上に伸張された従来のBI
OSプログラムのプログラムコード例である。
FIG. 4 shows a conventional BI expanded on a RAM.
It is a program code example of an OS program.

【0004】図4において、4は伸張されたBIOSプ
ログラムが格納されるRAM上のBIOSプログラム動
作領域、41はBIOSプログラム動作領域4内のBI
OSプログラムのデータ部分が格納されるデータ領域、
42はBIOSプログラム動作領域4内のBIOSプロ
グラムのプログラムコード部分が格納されるコード領域
である。
In FIG. 4, reference numeral 4 denotes a BIOS program operation area on the RAM in which an expanded BIOS program is stored, and 41 denotes a BIOS program operation area in the BIOS program operation area 4.
A data area for storing a data portion of the OS program,
Reference numeral 42 denotes a code area in which the program code portion of the BIOS program in the BIOS program operation area 4 is stored.

【0005】また、データ領域41内の「XX DAT
A 128」は「XXは128という数値を示すデータ
名である」ことを示しており、また、「YY DATA
32」は「YYは32という数値を示すデータ名であ
る」ことを示している。
In the data area 41, "XX DAT"
A 128 "indicates that" XX is a data name indicating a numerical value of 128 ", and" YY DATA
32 "indicates that" YY is a data name indicating a numerical value of 32 ".

【0006】また、コード領域42内の「MOVE E
AX,[LABEL41:XX]」(LABEL41は
BIOSプログラム動作領域4内のデータ領域41のア
ドレスを示すラベル)は「レジスタEAXにデータ領域
41内のXXという名前がついているデータを入力す
る」ことを示しており、また、「COMPARE EB
X,[LABEL41:YY]」は「レジスタEBXの
データをデータ領域41内のYYという名前がついてい
るデータと比較する」ことを示している。
In the code area 42, "MOVE E
AX, [LABEL41: XX] ”(LABEL41 is a label indicating the address of the data area 41 in the BIOS program operation area 4) means that“ input the data named XX in the data area 41 to the register EAX ”. And "COMPARE EB"
X, [LABEL41: YY] "indicates that" the data in the register EBX is compared with the data named YY in the data area 41 ".

【0007】このように、従来のBIOSプログラムが
参照するデータはプログラムコードが格納されているR
AM上のBIOSプログラム動作領域4内と同じ領域内
に格納されていた。
[0007] As described above, the data referred to by the conventional BIOS program is the R in which the program code is stored.
It was stored in the same area as the BIOS program operation area 4 on the AM.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、近年、
コンピュータの機能の多様化や処理の複雑化にともなっ
てBIOSプログラムのサイズが増加傾向にあり、コン
ピュータで使用するCPUによっては、BIOSプログ
ラムがRAM上の予め決められたセグメントでは実行で
きない場合が発生してきている。
However, in recent years,
With the diversification of computer functions and the complexity of processing, the size of BIOS programs tends to increase, and depending on the CPU used in the computer, the BIOS program may not be able to be executed in a predetermined segment on the RAM. ing.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に、本発明では、RAM上で実行されるBIOSプログ
ラムがROMに格納されたデータ部分を直接参照できる
ようにすることで、RAM上の予め決められたセグメン
トで実行されるBIOSプログラムの機能追加を図るこ
とを目的とする。
In order to solve the above-mentioned problems, the present invention allows a BIOS program executed on a RAM to directly refer to a data portion stored in the ROM, thereby enabling the BIOS program to be executed on the RAM. It is an object of the present invention to add a function of a BIOS program executed in a predetermined segment.

【0010】[0010]

【発明の実施の形態】以下に、本発明の実施の形態につ
いて、図1〜図3を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS.

【0011】(実施の形態1)図1は、本実施の形態に
おける情報処理装置のシステム構成図である。
(Embodiment 1) FIG. 1 is a system configuration diagram of an information processing apparatus according to the present embodiment.

【0012】図1において、1は情報処理装置全体を制
御するCPU、2はBIOSプログラムなどのプログラ
ムやデータが格納されているROM、3は情報処理装置
の起動後に実行されるBIOSプログラムを格納するR
AMである。
In FIG. 1, 1 is a CPU for controlling the entire information processing apparatus, 2 is a ROM in which programs and data such as a BIOS program are stored, and 3 is a BIOS program executed after the information processing apparatus is started. R
AM.

【0013】図2は、CPUが認識するRAMとROM
のアドレスマップである。
FIG. 2 shows a RAM and a ROM recognized by the CPU.
Is an address map.

【0014】図2において、ROM領域としてはアドレ
ス(4GB−512KB)〜アドレス4GBの512K
Bが割り当てられており、RAM領域としてはアドレス
0〜アドレス128MBの128MBが割り当てられて
いる。
In FIG. 2, the ROM area includes addresses (4 GB-512 KB) to 512 KB of address 4 GB.
B is allocated, and 128 MB from address 0 to address 128 MB is allocated as a RAM area.

【0015】また、21は圧縮されたBIOSプログラ
ムが格納されている圧縮BIOSプログラム領域、22
はBIOSデータの一部が格納されているBIOS拡張
データ領域、23は情報処理装置の起動後に実行される
BIOSプログラムが格納されるCPUによってサイズ
が制限されたBIOSプログラム動作領域であり、圧縮
BIOSプログラム領域21に格納された圧縮されたB
IOSプログラムはBIOSプログラム動作領域23上
に伸張され、伸張されたBIOSプログラムはROMの
BIOS拡張データ領域22に格納されているBIOS
データの一部を参照して動作する。
Reference numeral 21 denotes a compressed BIOS program area in which a compressed BIOS program is stored.
Reference numeral 23 denotes a BIOS extended data area in which a part of the BIOS data is stored. Reference numeral 23 denotes a BIOS program operation area whose size is limited by a CPU in which a BIOS program to be executed after the information processing apparatus is started is stored. Compressed B stored in area 21
The BIOS program is decompressed on the BIOS program operation area 23, and the decompressed BIOS program is stored in the BIOS extension data area 22 of the ROM.
It operates by referring to a part of the data.

【0016】このように、ROM上の圧縮BIOSプロ
グラム領域21以外の空いている領域にBIOSデータ
の一部を格納するBIOS拡張データ領域22を設けて
BIOSプログラムが実行時にBIOS拡張データ領域
22内のBIOSデータの一部を参照することで、RA
M上のサイズが制限されたBIOSプログラム動作領域
23に格納されるBIOSプログラム/データのサイズ
を小さくすることができる。
As described above, the BIOS extended data area 22 for storing a part of the BIOS data is provided in an empty area other than the compressed BIOS program area 21 on the ROM, and the BIOS program is executed when the BIOS program is executed. By referring to a part of the BIOS data, RA
The size of the BIOS program / data stored in the BIOS program operation area 23 whose size on M is limited can be reduced.

【0017】図3は、本実施の形態におけるBIOSプ
ログラムのプログラムコード例である。
FIG. 3 is an example of a program code of the BIOS program in the present embodiment.

【0018】ROM上のBIOS拡張データ領域22内
の「XX DATA 128」は「XXは128という
数値を示すデータ名である」ことを示しており、また、
「YY DATA 32」は「YYは32という数値を
示すデータ名である」ことを示している。
“XX DATA 128” in the BIOS extended data area 22 on the ROM indicates that “XX is a data name indicating a numerical value of 128”.
“YY DATA 32” indicates that “YY is a data name indicating a numerical value of 32”.

【0019】RAM上のBIOSプログラム動作領域2
3のコード領域232内の「MOVE EAX,[LA
BEL221:XX]」(LABEL221はROM上
のBIOS拡張データ領域22のデータ領域221のア
ドレスを示すラベル)は「レジスタEAXにデータ領域
221内のXXという名前がついているデータを入力す
る」ことを示しており、また、「COMPARE EB
X,[LABEL221:YY]」は「レジスタEBX
のデータをデータ領域221内のYYという名前がつい
ているデータと比較する」ことを示している。
BIOS program operation area 2 on RAM
3 in the code area 232 of “MOVE EAX, [LA
BEL221: XX] ”(LABEL221 is a label indicating the address of the data area 221 of the BIOS extension data area 22 on the ROM) indicates that“ data named XX in the data area 221 is input to the register EAX ”. And "COMPARE EB
X, [LABEL 221: YY] ”is the“ register EBX
Is compared with the data named YY in the data area 221. "

【0020】このように、本実施の形態におけるBIO
Sプログラムが参照するデータはプログラムコードが格
納されているRAM上のBIOSプログラム動作領域2
3のデータ領域231内とROM上のBIOS拡張デー
タ領域22内に分かれて格納される。
As described above, the BIO according to the present embodiment
The data referenced by the S program is the BIOS program operating area 2 on the RAM where the program code is stored.
3 is stored separately in the data area 231 and the BIOS extended data area 22 on the ROM.

【0021】なお、BIOSプログラムを幾つかの機能
単位(モジュール)に分割してROM上に格納してお
き、必要時にRAM上のその時には不要である他のモジ
ュールと入れ換えることで、制限されたサイズのBIO
Sプログラム動作領域でもBIOSプログラムを実行さ
せることができる。
Note that the BIOS program is divided into several functional units (modules), stored in the ROM, and replaced with another module which is unnecessary at that time in the RAM when necessary, thereby limiting the size of the BIOS program. BIO
The BIOS program can also be executed in the S program operation area.

【0022】[0022]

【発明の効果】以上詳述したように、本発明によれば、
RAM上の実行されるBIOSプログラムがROMに格
納されているデータ部分を直接参照できるようにするこ
とで、RAM上の予め決められた領域で実行されるBI
OSプログラムの機能追加を図ることができる。
As described in detail above, according to the present invention,
By allowing the BIOS program executed on the RAM to directly refer to the data portion stored in the ROM, the BIOS program executed in a predetermined area on the RAM can be executed.
The function of the OS program can be added.

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

【図1】本発明の実施の形態1における情報処理装置の
システム構成図
FIG. 1 is a system configuration diagram of an information processing apparatus according to a first embodiment of the present invention.

【図2】本発明の実施の形態1におけるCPUが認識す
るRAMとROMのアドレスマップを示す図
FIG. 2 is a diagram showing an address map of a RAM and a ROM recognized by a CPU according to the first embodiment of the present invention;

【図3】本発明の実施の形態1におけるBIOSプログ
ラムのプログラムコード例を示す図
FIG. 3 is a diagram showing an example of a program code of a BIOS program according to the first embodiment of the present invention.

【図4】従来のBIOSプログラムのプログラムコード
例を示す図
FIG. 4 is a diagram showing an example of a program code of a conventional BIOS program.

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

1 CPU 2 ROM 3 RAM 1 CPU 2 ROM 3 RAM

───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐竹 浩一 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 Fターム(参考) 5B076 BA00  ──────────────────────────────────────────────────続 き Continuation of front page (72) Inventor Koichi Satake 1006 Kazuma Kadoma, Kadoma-shi, Osaka Matsushita Electric Industrial Co., Ltd. F-term (reference) 5B076 BA00

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】圧縮プログラムとデータを格納するROM
と、前記ROMに格納された圧縮プログラムを伸張する
圧縮プログラム伸張手段と、前記圧縮プログラム伸張手
段が圧縮プログラムを伸張した伸張プログラムを格納す
るRAMと、前記ROMに格納されたデータを参照して
前記RAMに格納した伸張プログラムを実行するプログ
ラム実行手段を有する情報処理装置。
1. A ROM for storing a compression program and data.
A compression program decompression means for decompressing the compression program stored in the ROM; a RAM for storing the decompression program in which the compression program decompression means decompresses the compression program; and An information processing apparatus having a program executing means for executing a decompression program stored in a RAM.
【請求項2】ROMに格納された圧縮プログラムを伸張
する圧縮プログラム伸張手順と、前記圧縮プログラム伸
張手順で圧縮プログラムを伸張した伸張プログラムをR
AMに格納する伸張プログラム格納手順と、前記ROM
に格納されたデータを参照して前記RAMに格納した伸
張プログラムを実行するプログラム実行手順から成るプ
ログラム実行方法。
2. A compression program decompression procedure for decompressing a compression program stored in a ROM, and a decompression program decompressed in the compression program decompression procedure by R
Decompression program storage procedure to be stored in AM, and ROM
A program execution method comprising a program execution procedure for executing a decompression program stored in the RAM by referring to data stored in the RAM.
JP2000347817A 2000-11-15 2000-11-15 Method for executing program Pending JP2002149426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000347817A JP2002149426A (en) 2000-11-15 2000-11-15 Method for executing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000347817A JP2002149426A (en) 2000-11-15 2000-11-15 Method for executing program

Publications (1)

Publication Number Publication Date
JP2002149426A true JP2002149426A (en) 2002-05-24

Family

ID=18821494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000347817A Pending JP2002149426A (en) 2000-11-15 2000-11-15 Method for executing program

Country Status (1)

Country Link
JP (1) JP2002149426A (en)

Similar Documents

Publication Publication Date Title
US6374353B1 (en) Information processing apparatus method of booting information processing apparatus at a high speed
US6496882B2 (en) Method and system for virtual memory compression in an embedded system
EP0658843A1 (en) Method for hibernation file creation
US6195107B1 (en) Method and system for utilizing virtual memory in an embedded system
JPH06348868A (en) Data driving type information processing system
JP2002149426A (en) Method for executing program
EP0787326B1 (en) System and method for processing of memory data and communication system comprising such system
US20040100657A1 (en) Method and apparatus for utilizing memory of printer
JP2001125659A (en) Information processor
JP3019335B2 (en) Program loading method
JPH0394325A (en) Data selector
CN113626092A (en) Embedded system starting method and SOC chip
JPH09198302A (en) Main storage control circuit and main storage device
JPH07152574A (en) Program loading system
JP2839631B2 (en) Personal computer system and configuration change method thereof
JP2000163264A (en) Program storage device for cpu
JPH11134202A (en) Task switching device
JPS60225253A (en) Information processing device
JPH0481934A (en) Information processor
JPH02268355A (en) Output system for control signal
JPH07129463A (en) Memory address space expanding device
JP2002014808A (en) Access instruction device and interruption processor
JPH0991137A (en) Data processor
JPH0255162A (en) Information output device
JPH04163621A (en) Memory switch control system