Summary of the invention
In view of this, the object of the present invention is to provide the synchronous method for updating of a kind of BIOS and OS, make it when carrying out the application layer program design, can utilize nonstandard parameter to upgrade BIOS and operating system simultaneously, satisfy users ' individualized requirement.
In order to achieve the above object, the invention provides a kind of BIOS and OS system synchronization method for updating, this method comprises:
Set in advance executivecontrol function the application function administration module, preserve the application software under nonstandard parameter information and the public information unit of running state of programs, at least a BIOS layer user function module and at least a operating system, wherein, nonstandard parameter information comprises and comprises the solution type at least, application software under the corresponding at least BIOS layer user function module of every type solution and a kind of operating system, this method is further comprising the steps of:
A. when startup self-detection, BIOS calls the application function administration module automatically, this module judges whether the user has carried out hot key for operating, if, then record has carried out hot key for operating in the public information unit, show that the nonstandard parameter information in the public information unit selects the solution type for the user, and in the public information unit the selected solution type of recording user;
B. when startup self-detection once more, BIOS calls BIOS layer application function administration module automatically, this module inquiry public information unit, whether carry out hot key for operating and whether the user has selected the solution type according to the user who writes down in the public information unit, judge whether the user selects to carry out the operation of application scheme, if, execution in step C, otherwise, jump out this flow process;
C. start the application function administration module, the application function administration module calls the BIOS layer user function module of selected solution type correspondence, and after the program run under BIOS finishes, enters operating system;
D. behind the os starting, automatically move the application program of application function administration module under operating system, this program is according to the record of public information unit, judge whether the user has chosen application solution under the BIOS, if select, the application software corresponding with this application solution then is installed under operating system, otherwise, jump out this flow process.
The described hot key for operating that carries out is: supress predefinedly, be used to represent that the user need carry out the hot key of the operation of application scheme;
Steps A further comprises: the information that is pressed at public information unit record hot key;
Whether carried out hot key for operating according to the user who writes down in the public information unit among the step B and whether the user has selected the solution type, judged that the operation whether user selects to carry out application scheme comprises:
Hot key information according to the public information unit record, determine whether the user needs to carry out the operation of application scheme, if determine that the user has supressed hot key, then continue solution type parameter according to user's selection of writing down in the public information unit, judge whether the user has selected certain application solution in operation in the past, if select, then carry out the operation of application scheme; Otherwise, if do not select, perhaps determine the user and do not press hot key, then do not carry out the operation of application scheme.
Described record has carried out hot key for operating, with hot key parameter set corresponding in the described BIOS parameter storage list.
Described public information unit comprises described BIOS parameter storage list and distinctive mark bit table, and described BIOS parameter storage list comprises hot key parameter, application solution type, functional module State Control information; Described distinctive mark position storage list comprises the controlled flag position, and expression is running state of programs in the application program operational process.
Described BIOS parameter storage list is arranged in the internal memory.
Described distinctive mark bit table is arranged among the CMOS.
After step C, this method further comprises: when installing application software, the application program under the operating system is with installment state parameter set corresponding in the public information unit.
If the user does not have to select to carry out the operation of application scheme among the step B, then before jumping out this flow process, comprising: system's operation standard start-up course.
The present invention is in conjunction with BIOS and Programming Methodology, numerous factors such as the complexity of using from software design, user, routine interface how appropriate are considered, by application program under the BIOS in the applied function module and the function of application under the Windows, finish the seamless link of application program under BIOS application and the OS, thereby realize that application synchronization is upgraded under BIOS and the OS.This method has satisfied the needs of different user to the design of system applies function, and the user can select according to self needs, and convenient, safety, is easy to management.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Referring to shown in Figure 2, realize that method of the present invention may further comprise the steps:
Step 201: public information unit, at least a BIOS layer user function module and at least a application software of the application function administration module is set in advance, preserving at least a nonstandard parameter information in BIOS.Here, the application function administration module is used to carry out the control operation of flow process, finishes the monitoring of all user's modes of operation, the setting of the nonstandard parameter in public information unit, the work that functional module is called.Nonstandard parameter information comprises solution type, the definition of keyboard hot key, functional module State Control information etc., wherein, and the application software under the corresponding at least BIOS layer user function module of every type solution and a kind of OS; Whether keyboard hot key definition designated user uses the operation key assignments of this method; Functional module State Control information has write down the applied function module under the dissimilar solutions and the running status of application program, and main contents comprise: whether Application Type, installation, unloading are finished.
Step 202: when startup self-detection, BIOS calls operation application function administration module automatically, this module is according to the operational circumstances of user to keyboard, be whether the user carries out hot key for operating and whether select solution, this user's of record operation information in the relevant parameters zone bit in the public information unit.These information relate to the application solution type of hot key state, user's selection etc., and to the solution type of this nonstandard parameter correspondence of subsequent calls, promptly BIOS layer user function module and application software provide foundation.
Step 203: when startup self-detection once more, BIOS starts the application function administration module automatically, will be according to the hot key information of public information unit record, determine whether the user needs to carry out the operation of application scheme, if determine that the user has pressed hot key, then continue solution type parameter according to user's selection of writing down in the public information unit, judge whether the user has selected certain application solution in operation in the past, finish if selected, then utilize in the step 201 the nonstandard parameter that is provided with solution type one by one, start pairing BIOS layer user function module, the program under BIOS is finished, when entering operating system, execution in step 204, otherwise the operative norm start-up course is jumped out this flow process then.
Step 204: after the os starting, automatically move the application program of application function administration module under OS, the solution type that this program is selected under BIOS according to the user of public information unit record, judge whether should the call operation system under the application software of this solution correspondence, if selected clear and definite solution type, then install and start the pairing application software of this nonstandard parameter.Certainly, when installing application software, this program should be with installment state parameter set corresponding in the public information unit.
Need to prove that the public information unit can be the storage space among internal memory and the CMOS.The public information unit comprises BIOS parameter storage list and distinctive mark position storage list.Such as, BIOS parameter storage list can be set in internal memory, this storage list comprises various hot key parameters, application solution type, functional module State Control information, this control information represents to exist register position among the CMOS, management mode etc.Distinctive mark position storage list can be arranged among the CMOS, can comprise a series of controlled flag position, when running state of programs takes place in the application program operational process, finish the parameter information transmission of different operation phase, and then realize the application synchronization renewal by these controlled flag positions.
Here, method of the present invention can be divided into two stages: parameter is provided with stage and parameter application stage.
Parameter is provided with the stage, mainly is the process that the user participates in application solution, and the user will be provided with BIOS parameter storage list and CMOS distinctive mark position according to self needs.In order to realize the parameter setting, present embodiment need set in advance hot key, and whether system can press key by judging the user, determines whether the user needs to select nonstandard parameter, thereby carries out the renewal of self-defining application program.
The parameter application stage mainly is system finishes the application program of BIOS and operating system according to user's setting a renewal process.
Further specify the process that the present invention realizes that parameter is provided with below in conjunction with Fig. 3.Before execution parameter is provided with, public information unit, application function administration module, BIOS layer user function module, application software etc. need be set in computer system.
Referring to shown in Figure 3, the present invention realizes that the idiographic flow of parameter setting up procedure is as follows:
Step 301~302: behind computer booting, carry out power-on self-test; In the self check stage, judge whether the user presses hot key, if, then with the hot key parameter set of public information unit correspondence, otherwise, execution in step 305.
Step 303: start the application function administration module, show all nonstandard parameters that the public information unit is preserved.
Step 304: judge whether the user selects solution,, then, change use over to solution type parameter set corresponding in the public information unit if select, process ends, otherwise, execution in step 305.
Step 305: start the standard system startup process, and process ends.
For example, the parameter information of public information unit in store " whether hot key is pressed " and " which kind of solution the user selects ", when specifically being provided with, be the related system status information after 13H and 0AH deposit user's operation successively with the side-play amount in the BIOS parameter storage list in this public information unit, wherein, side-play amount 13H set has " 0/1 " two kinds of selections, and " 1 " representative of consumer has been pressed shortcut " F4 ", and " 0 " representative of consumer is not carried out any operation to hot key " F4 " key.Side-play amount 0AH set has " 0/1/2 " three kinds of selections, and " 0 " representative of consumer is not also selected any application solution; " 1 " represents solution one; " 2 " represent solution two.Simultaneously, in concrete flow scheme design, also comprise the control information of a lot of solution executing states, these control informations are important parameters contents in the public information unit, determined the committed step that scheme implementation and parameter synchronization are upgraded, in concrete specifications design, all state of a control flag informations are all concentrated in certain register that is kept at CMOS, and this register is that the 0CH place specifies by side-play amount in the BIOS parameter storage list of public information unit.
Referring to shown in Figure 4, the idiographic flow of parameter use is as follows in the inventive method:
Step 401~402: in the POST self check, judge whether the public information unit has the hot key parameter to be set, if having, then starts the application function administration module, execution in step 403, otherwise the application function administration module of startup standard is jumped out this flow process.
Step 403~406: application function administration module inquiry public information unit, determine the BIOS layer user function module of the nonstandard parameter correspondence that is set in the public information unit, start this BIOS layer user function module, and after the operation of user function module finishes, return normal system standard start-up course, enter the OS system afterwards.
Step 407~409: the solution type in the inquiry public information unit inquiry public information unit, judge whether the user chooses application solution under the BIOS,, then under operating system, install and the supporting application software of this solution if select, otherwise, jump out this flow process.
Step 410~411:, and under operating system, move this application software, process ends with installation corresponding in the public information unit, the set of running status zone bit with this application software.
From said process as can be seen, in the parameter use, BIOS will operate according to user key-press, with hot key parameter set in the BIOS parameter storage list (being kept in the internal memory) in the public information unit, BIOS calls the application function administration module automatically then, this module determines according to whether set of hot key parameter in the public information unit whether the user needs the application function of using system design; If be not set, think that then the user does not have demand, can directly enter the arm's length standard start-up course.If set, the application function administration module will be inquired about the solution type in the public information unit, confirm whether the user chooses certain application solution in setting up procedure, and then, determine whether to call and call which applied function module under the BIOS according to this selection result.When the applied function module under the BIOS be called finish after, system returns the arm's length standard start-up course, thereby enters into operating system.After this, the program that system automatically performs will directly be inquired about the public information unit, user for confirmation and program operating process and the operating result under BIOS, thus determine operation under operating system.Operating system will be according to the customer solution information of preserving in the public information unit, install and startup and the supporting application software of this solution, thereby reach the cooperation of application software under the applied function module and OS under the BIOS, the serial application solution that the user is selected can break through the information barrier of BIOS and OS, reaches the complete unification of solution.
The present invention provides a chance of selecting application solution to the user, by the public information unit, the result that the user selects can be preserved, and becomes the foundation of follow-up work.The information that this method has effectively been broken between application of BIOS layer and the application of OS layer is transmitted estrangement, has solved the difficulty problem that the complicated applications solution is designed and developed, and has guaranteed user's ease of use in system's different application stage.Simultaneously, the present invention has also finished the seamless link of application program under BIOS application and the OS, help the unitarity and the integrality of system applies design, provide public general information platform for expanding new user program, computer system is promoted the application added value certain help.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.