CN101782854A - Communication method and system for selection read-only memory modules - Google Patents

Communication method and system for selection read-only memory modules Download PDF

Info

Publication number
CN101782854A
CN101782854A CN200910005502A CN200910005502A CN101782854A CN 101782854 A CN101782854 A CN 101782854A CN 200910005502 A CN200910005502 A CN 200910005502A CN 200910005502 A CN200910005502 A CN 200910005502A CN 101782854 A CN101782854 A CN 101782854A
Authority
CN
China
Prior art keywords
module
rom
objective function
function
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910005502A
Other languages
Chinese (zh)
Inventor
吴明城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CN200910005502A priority Critical patent/CN101782854A/en
Publication of CN101782854A publication Critical patent/CN101782854A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a communication method for selection read-only memory modules, comprising the following steps of: judging at least one objective function for communicating a run-time module and at least one application module from a plurality of functions, wherein the functions are from selection read-only memory firmware; modifying the function call of the objective function to an interrupt instruction call corresponding to the objective function; and segmenting the selection read-only memory firmware into a plurality of selection read-only memory modules according to the use limit of the interrupt instruction call. The invention also discloses a communication system for the selection read-only memory modules.

Description

Be used to select communication method and system between ROM module
Technical field
The invention relates to a kind of communication method and system that is used to select between ROM module, and particularly relevant for a kind of method and system of utilizing interrupt instruction to link up module.
Background technology
When the program of computer system power-on, before os starting, must do initialized action, so that operating system can be carried out the access of data to these peripheral units to peripheral unit.Firmware part with peripheral unit relevant information usually exists and selects in the ROM (read-only memory) (Option ROM), with when the computer system power-on, is loaded in the system random access internal memory of computer system, for initialization.Yet, usually the system random access internal memory only provides limited memory sections partly to use for firmware, add that existing Basic Input or Output System (BIOS) (BIOS) provides more and more many functions, its required memory space is also strengthened thereupon, under the internal memory condition of limited, the selection ROM module that all need can not be downloaded simultaneously, a plurality of modules must be divided into.
Therefore, design a kind of communication method of new intermodule, make between module and the module communication fast and convenient.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of communication method and system that is used to select between ROM module, so that the communication between module and the module fast and convenient.
To achieve these goals, a kind of communication method that is used to select between ROM module is proposed in a preferred embodiment of the present invention, may further comprise the steps: judge at least one objective function in order to communication module working time and at least one application module in several functions, wherein several functions are to come to select the ROM (read-only memory) firmware; The function call of modified objective function is that the interrupt instruction of corresponding objective function is called out; And, will select the ROM (read-only memory) firmware to be divided into several and select ROM module according to the use restriction that interrupt instruction is called out.
To achieve these goals, a kind of communication system that is used to select between ROM module is proposed in another preferred embodiment of the present invention, comprise: select the ROM (read-only memory) firmware, comprise module and at least one application module working time, wherein working time, module and application module comprised several functions separately; The system random access internal memory is selected the ROM (read-only memory) firmware in order to load; Processor, in order in several functions, to judge at least one objective function in order to communication module working time and application module, the function call of processor modified objective function is that the interrupt instruction of corresponding objective function is called out, and the use restriction of calling out according to interrupt instruction, with working time module and application module be divided into several and select ROM module.
Utilize communication method and system between selection ROM module of the present invention and the module, need not know that Basic Input or Output System (BIOS) can carry out the core position of these module loading, make that the communication between the module reaches conveniently very fast.
Description of drawings
For above and other objects of the present invention, feature, advantage and embodiment can be become apparent, being described in detail as follows of appended accompanying drawing:
Fig. 1 is used to select communication method process flow diagram between ROM module according to one embodiment of the invention a kind of;
Fig. 2 is a kind of calcspar that is used to select the communication system between ROM module according to another embodiment of the present invention.
[primary clustering symbol description]
102-110: step 226: second application module
212: select ROM (read-only memory) firmware 232: processor
214: system random access internal memory 236: the parameter decision unit
222: working time, module 250: peripheral unit
224: the first application modules
Embodiment
Next please refer to the detailed description of the embodiment of the invention, wherein the example of being mentioned can together describe together with accompanying drawing.In the case of any possible, employed same reference number mark has all been represented identical or similar assembly in accompanying drawing and the explanation.
Selecting the ROM (read-only memory) firmware to be divided under the situation of a plurality of modules, in the time of need using wherein certain module, each module can be downloaded on the positions different in the system random access internal memory, and each module can be downloaded to unfixed position in different time points, if when having function (function) to communicate with each other between module and the module, very difficulty is with inconvenient.The present invention discloses a kind of communication method of selecting between ROM module and the module, and it is convenient to reach very fast.
With reference to Fig. 1, it shows according to one embodiment of the invention a kind of and is used to select communication method process flow diagram between ROM module.This communication method comprises following steps (should be appreciated that mentioned in the present embodiment step except that chatting bright its order person especially, all can be adjusted its front and back order according to actual needs, even possibility while or part execution simultaneously):
(1) in function (function), judges in order to link up a working time (run time) module and at least one objective function (step 102) of at least one application module.Wherein the function of being mentioned is to come from the power function of selecting in the ROM (read-only memory) firmware, these power functions are carried out its specific function, and select the corresponding peripheral unit of ROM (read-only memory) firmware, the purpose of this step is to determine that all are used in the objective function of linking up between the module.Moreover wherein the application module of being mentioned can be used to refer to other module except that the working time module at this.This step also can comprise another step: all of corresponding each objective function of judgement are imported parameter (step 104) into.When carrying out function call (function call), generally all parameters that need use can be imported in the lump, for instance, can begin to list in regular turn from AX=01.
(2) function call of modified objective function is the interrupt instruction calling (step 106) of corresponding objective function.For example, in one embodiment, but the function call of modified objective function is the calling of INT 21h power function in the dos operating system.Dos operating system provides 130 useful Interrupt Process functions nearly, and this place can use the INT instruction to carry out the interruption that is numbered 21h and implement this step.
(3) the use restriction of calling out according to interrupt instruction will be selected the ROM (read-only memory) firmware to be divided into several and select ROM module (step 108).For example, in one embodiment,, will select the ROM (read-only memory) firmware to be divided into selection ROM module less than 64kb according to the use of dos operating system restriction.
(4) the call interruption instruction is with the communication (step 110) between execution module working time and the application module.Each application module all be by call interruption instruction come with working time module link up.In one embodiment, can be by calling out INT 21h power function with the communication between execution module working time and the application module.
Please refer to Fig. 2, it shows a kind of calcspar that is used to select the communication system between ROM module according to another embodiment of the present invention.This communication system comprises: select ROM (read-only memory) firmware 212, system random access internal memory 214 and processor 232.Select ROM (read-only memory) firmware 212 corresponding peripheral units 250.Select ROM (read-only memory) firmware 212 to comprise (run time) module 222 and at least one application module (be example explanation with first application module 224 and second application module 226 in this embodiment) working time.System random access internal memory 214 is selected ROM (read-only memory) firmware 212 in order to load.
Select ROM (read-only memory) firmware 212 module 222 working time, first application module 224, and second application module 226 comprise several functions separately.Processor 232 be in order in these functions, judge in order to link up working time module 222 and first application module 224 or working time module 222 and at least one objective function of second application module 226, the function call of processor 232 modified objective functions (function call) is that the interrupt instruction of corresponding objective function is called out, and the use restriction of calling out according to interrupt instruction, with working time module 222, first application module 224, and second application module 226 be divided into the selection ROM module that meets restriction.
Wherein processor 232 can comprise parameter decision unit 236.Parameter decision unit 236 is to import parameter in order to all that judge corresponding objective function.Application module call interruption instruction with working time module link up.In this embodiment, the function call of processor 232 modified objective functions is the calling of INT 21h power function in the dos operating system, and according to the use of dos operating system restriction, with working time module 222, first application module 224, and second application module 226 be divided into selection ROM module less than 64kb.First application module 224 and second application module 226 respectively consider oneself as border in fact need call out in the dos operating system INT 21h power function with working time module 222 link up.
Generally speaking, the foregoing description disclose to be selected communication method and the system between ROM module and the module, need not know that Basic Input or Output System (BIOS) can carry out the core position of these module loading, makes that the communication between the module reaches conveniently very fast.
Though the present invention discloses as above with embodiment; right its is not in order to qualification the present invention, those of ordinary skill in the art, without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is as the criterion when looking the accompanying Claim person of defining.

Claims (10)

1. one kind is used to select the communication method between ROM module, comprises following steps:
A. in a plurality of functions, judge in order to link up one working time module with at least one objective function of at least one application module, wherein those functions are to come from a selection ROM (read-only memory) firmware;
B. the function call of revising this objective function is for calling out a interrupt instruction that should objective function; And
C. the use restriction of calling out according to this interrupt instruction should select the ROM (read-only memory) firmware to be divided into a plurality of selection ROM modules.
2. method according to claim 1 is characterized in that, step a in a plurality of functions, judge in order to link up one working time module and at least one objective function of at least one application module also comprise following steps:
All of corresponding each objective function of judgement are imported parameter into.
3. method according to claim 1 is characterized in that, the function call that step b revises this objective function comprises for a interrupt instruction that should objective function is called out:
The function call of revising this objective function is the calling of INT 21h power function in the dos operating system.
4. method according to claim 3 is characterized in that, the use restriction that step c calls out according to this interrupt instruction should be selected the ROM (read-only memory) firmware to be divided into a plurality of selection ROM modules and comprise:
Use restriction according to this dos operating system is divided into a plurality of selection ROM modules less than 64kb with this selection ROM (read-only memory) firmware.
5. method according to claim 4 is characterized in that, also comprises following steps:
Call out an INT 21h power function with carry out this working time module and this application module between communication.
6. one kind is used to select the communication system between ROM module, it is characterized in that, comprises:
One selects the ROM (read-only memory) firmware, comprise one working time module and at least one application module, wherein should working time module and each self-contained a plurality of function of this application module;
One system random access internal memory is in order to load this selection ROM (read-only memory) firmware; And
One processor, in order in those functions, to judge in order to link up this of module and at least one objective function of this application module working time, the function call that this processor is revised this objective function is for calling out a interrupt instruction that should objective function, and the use restriction of calling out according to this interrupt instruction, should working time module and this application module be divided into a plurality of selection ROM modules.
7. system according to claim 6 is characterized in that, this selects the corresponding peripheral unit of ROM (read-only memory) firmware.
8. system according to claim 6 is characterized in that, this processor comprises a parameter decision unit, in order to judge to should objective function all import parameter into.
9. system according to claim 6, it is characterized in that, the function call that this processor is revised this objective function is the calling of INT 21h power function in the dos operating system, and, this selection ROM (read-only memory) firmware is divided into a plurality of selection ROM modules less than 64kb according to the use of this dos operating system restriction.
10. system according to claim 9 is characterized in that, this application module call out in this dos operating system INT 21h power function with this working time module link up.
CN200910005502A 2009-01-19 2009-01-19 Communication method and system for selection read-only memory modules Pending CN101782854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910005502A CN101782854A (en) 2009-01-19 2009-01-19 Communication method and system for selection read-only memory modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910005502A CN101782854A (en) 2009-01-19 2009-01-19 Communication method and system for selection read-only memory modules

Publications (1)

Publication Number Publication Date
CN101782854A true CN101782854A (en) 2010-07-21

Family

ID=42522866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910005502A Pending CN101782854A (en) 2009-01-19 2009-01-19 Communication method and system for selection read-only memory modules

Country Status (1)

Country Link
CN (1) CN101782854A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN1369788A (en) * 2001-02-12 2002-09-18 英业达股份有限公司 Method for implementing software interrupt in Windows operating system
CN1467751A (en) * 2002-07-12 2004-01-14 光宝科技股份有限公司 Flash memory and program planning thereof and method for repetitive recording
US6813765B1 (en) * 2000-05-16 2004-11-02 Palm Source, Inc. Binding using absolute memory references
CN1943160A (en) * 2003-10-29 2007-04-04 高通股份有限公司 System for invoking a privileged function in a device
WO2008058101A2 (en) * 2006-11-07 2008-05-15 Sandisk Corporation Memory controllers for performing resilient firmware upgrades to a functioning memory

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US6813765B1 (en) * 2000-05-16 2004-11-02 Palm Source, Inc. Binding using absolute memory references
CN1369788A (en) * 2001-02-12 2002-09-18 英业达股份有限公司 Method for implementing software interrupt in Windows operating system
CN1467751A (en) * 2002-07-12 2004-01-14 光宝科技股份有限公司 Flash memory and program planning thereof and method for repetitive recording
CN1943160A (en) * 2003-10-29 2007-04-04 高通股份有限公司 System for invoking a privileged function in a device
WO2008058101A2 (en) * 2006-11-07 2008-05-15 Sandisk Corporation Memory controllers for performing resilient firmware upgrades to a functioning memory

Similar Documents

Publication Publication Date Title
CN102662708B (en) A kind of (SuSE) Linux OS and video driver device thereof
CN102469207A (en) Multi-operation system mobile phone and implementation method thereof
CN104199759B (en) Application program identification method and device causing terminal temperature rise and terminal
CN112631664B (en) Signal distribution method, signal distribution device, computer equipment and readable storage medium
CN104601798B (en) A kind of custom application starting control method and device
CN102053887A (en) Method for automatically changing boot hardware setup to test power consumption pressure
CN107436839B (en) Process load acquisition method, electronic terminal and computer readable storage medium
CN108932146A (en) Page display method, device and computer readable storage medium
CN105912417B (en) The detection method and related software operation method and relevant apparatus of virtual system
CN110413167B (en) Screen capturing method of terminal equipment and terminal equipment
CN101782854A (en) Communication method and system for selection read-only memory modules
CN107450907A (en) Compatibility method, mobile terminal and the device with store function of fingerprint module
CN107315947A (en) Pay class application management method, device and mobile terminal
CN110413531A (en) Realize IOMT automatic test approach, device, computer equipment and storage medium
CN109460241A (en) A kind of pre-installation method, system, electronic equipment and the storage medium of operating system
CN213690596U (en) Program detection device and electronic equipment
CN106294143B (en) Debugging method and device for chip register
CN109254820A (en) Close method, apparatus, terminal and computer readable storage medium
CN104572199B (en) The method and apparatus that a kind of No starting item starts
CN111459572B (en) Program loading method, controller, chip and electronic equipment
CN105138666B (en) A kind of method and terminal of data processing
CN107168510A (en) A kind of method and device for extinguishing screen
KR101118111B1 (en) Mobile communication terminal and booting method thereof
CN100517251C (en) Test system and method
CN115586981B (en) Method, system, computer and storage medium for preventing SIO signal loss

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100721