CN102789397A - Switching method of multi-operating system in computer system - Google Patents

Switching method of multi-operating system in computer system Download PDF

Info

Publication number
CN102789397A
CN102789397A CN2011101383074A CN201110138307A CN102789397A CN 102789397 A CN102789397 A CN 102789397A CN 2011101383074 A CN2011101383074 A CN 2011101383074A CN 201110138307 A CN201110138307 A CN 201110138307A CN 102789397 A CN102789397 A CN 102789397A
Authority
CN
China
Prior art keywords
mentioned
operating system
computer system
environment parameter
internal 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.)
Granted
Application number
CN2011101383074A
Other languages
Chinese (zh)
Other versions
CN102789397B (en
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.)
Asustek Computer Inc
Original Assignee
Asustek Computer Inc
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 Asustek Computer Inc filed Critical Asustek Computer Inc
Priority to CN201110138307.4A priority Critical patent/CN102789397B/en
Publication of CN102789397A publication Critical patent/CN102789397A/en
Application granted granted Critical
Publication of CN102789397B publication Critical patent/CN102789397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a switching method of a multi-operating system in a computer system, which is used for quickly switching the multi-operating system and comprises the following steps of: triggering the system management interrupt under a first operating system, so that the computer system enters a system management mode and transmitting the right of control of the computer system from the first operating system to a basic input and output system; duplicating first environment parameters of the first operating system; judging whether the computer system has second environment parameters; when the computer system has no second environment parameter, normally starting a second operating system; and when the computer system has the second environment parameters, starting the second operating system according to the second environment parameters.

Description

Multiple operating system changing method in the computer system
Technical field
The invention relates to a kind of computer system, and particularly relevant for the multiple operating system changing method in a kind of computer system.
Background technology
In general, can there be a plurality of operating systems in the computer system.Behind computer system boot-strap, computer system can show that a plurality of operating systems supply the user to select by menu mode.Behind the selected specific operation system of user, computer system promptly loads above-mentioned specific operation system.And after specific operation system loaded completion, computer system can be carried out relevant application program under the environment of above-mentioned specific operation system.
Because the user need determine the operating system of loading when start.In case after selecting,, then must close computer system and restart and select another operating system if when user's desire gets into another operating system.In other words, except shutdown reselection procedure operating system, the known electric brain system also can't be reached the mutual switching way of operating system.And the stand-by period of operating system handoff procedure also can be long.
Summary of the invention
The present invention proposes the changing method of the multiple operating system in a kind of computer system; Comprise the following steps: under first operating system; The triggering system management interrupt makes above-mentioned computer system get into SMM, and the control of computer system is gone to Basic Input or Output System (BIOS) by first operating system; Back up the first environment parameter of first operating system; Judge whether computer system has the second environment parameter; And when not having the second environment parameter, normally start second operating system; When having the second environment parameter,, start second operating system according to the second environment parameter.
The present invention proposes a kind of computer system of tool multiple operating system, comprising: central processing unit; Control chip group is connected to central processing unit; Internal memory is connected to control chip group; Hard disk is connected to control chip group; And Basic Input or Output System (BIOS), be connected to control chip group; Wherein, Computer system under first operating system, the triggering system management interrupt, central processing unit makes computer system get into SMM; And the first environment parameter that backs up first operating system is to internal memory, and utilizes starting basic input and output system second operating system.
In sum, the original state of the present invention when not needing when operating system is switched to carry out that computer system is reduced to start need not get into sleep pattern yet, therefore can save the time of switching between the operating system.
In order to addressing other aspects on the present invention better understanding to be arranged, hereinafter is special lifts preferred embodiment, and cooperates appended graphicly, elaborates as follows.
Description of drawings
Shown in Figure 1 is the computer system of one embodiment of the invention.
Shown in Figure 2 is the changing method process flow diagram of the operating system of one embodiment of the invention.
Embodiment
The present invention uses the SMM (system management mode is called for short SMM) of central processing unit (CPU), and it can be used to control the mistake of (handle) internal memory or chipset, perhaps power management running (power management operation).And when getting into SMM, the control of computer system can be transferred to Basic Input or Output System (BIOS) (basic input output system is called for short BIOS) by operating system.
In other words; Computer system is when getting into SMM; Computer system can be kept in the background data (CPU context) of central processing unit earlier; After control was transferred to Basic Input or Output System (BIOS), this moment, we need back up temporary background data (CPU context) and operating system is stored in the data in the internal memory.And the data that the background data of central processing unit and operating system are stored in the internal memory can be referred to as environmental parameter.
Because very of short duration of the time that computer system gets into SMM; The user almost can't discover; Therefore add under the recovery that need not restart or sleep, can save because of use and restart or mode such as the recovery of sleeping when switching the required execution time corresponding of the application program in the operating system, driver, service or the like; Therefore, the present invention promptly utilizes SMM to reach the present invention's purpose of switching operating system apace.
Please with reference to Fig. 1, it is depicted as the computer system of one embodiment of the invention.Computer system 100 comprises: central processing unit 110, control chip group 120, internal memory 130, hard disk 140, Basic Input or Output System (BIOS) (BIOS) 150.Wherein, comprise in the control chip group 120: north bridge chips 122, with South Bridge chip 126.Wherein, central processing unit 110 utilizes Front Side Bus (front side bus) to be connected to north bridge chips 122, and north bridge chips 122 utilizes rambus (memory bus) to be connected to internal memory 130.South Bridge chip 126 utilizes privately owned bus to be connected to north bridge chips 122, and is connected to hard disk 140 and Basic Input or Output System (BIOS) (BIOS) 150.
According to embodiments of the invention, be divided at least in the hard disk 140 and store first operating system in first cut section 145 and second cut section, 148, the first cut sections 145, store second operating system in second cut section 148.Moreover Basic Input or Output System (BIOS) 150 can be divided into first storage area 135 and second storage area 138 with internal memory 130 at least at start process.
When computer system 100 loads first operating system; Basic Input or Output System (BIOS) (BIOS) 150 can start (boot) first operating system by first cut section 145 of hard disk 140; And when the environment of first operating system, all data of first operating system all are temporarily stored in first storage area 135 of internal memory 130.In like manner; When computer system 100 loads second operating system; Basic Input or Output System (BIOS) (BIOS) 150 can start (boot) second operating system by second cut section 148 of hard disk 140; And when the environment of second operating system, all data of second operating system all are temporarily stored in second storage area 138 of internal memory 130.
According to embodiments of the invention; In first operating system and second operating system, all install and switch driver module (swap driver); When the user desires to carry out the operating system switching, utilize hardware button or software program mode to let the switching driver send advanced configuration and power-management interface (advanced configuration and power interface is called for short ACPI) calling; Produce triggering system management interrupt (system management interrupt is called for short SMI).At this moment, the control of computer system can be transferred to Basic Input or Output System (BIOS) (BIOS) 150 by operating system, and can carry out the action that operating system is switched by Basic Input or Output System (BIOS) (BIOS) 150.
For instance, when the user desired to switch to second operating system by first operating system, said method control promptly capable of using was switched driver and is sent advanced configuration and power-management interface (ACPI) calling, and triggering system management interrupt (SMI).When system management interrupt (SMI) when being triggered; Central processing unit 110 gets into SMM (SMM) at once; The first environment parameter of backup this moment under first operating system; That is the background data of central processing unit (CPU context) can be temporarily stored in the internal memory 130, and the data in first operating system can back up in first storage area 135.Afterwards, write down first breakpoint of above-mentioned first operating system.After above-mentioned action was accomplished, Basic Input or Output System (BIOS) (BIOS) 150 promptly can load second operating system.
If this computer system never loads second operating system, when just not having the second environment parameter of second operating system in the internal memory 130, Basic Input or Output System (BIOS) (BIOS) 150 can normally start (boot) program and load second operating system.That is, start (boot) second operating system by second cut section 148 of hard disk 140, and when the environment of second operating system, all data of second operating system all are temporarily stored in second storage area 138 of internal memory 130.
Otherwise; If the computer system ever loaded is crossed second operating system; Then backed up the second environment parameter of second operating system in the internal memory 130; Basic Input or Output System (BIOS) (BIOS) 150 can reduction have before backed up in internal memory 130 second environment parameter under second operating system environment, and background data (CPU context) reduction (restore) that also is about to central processing unit is to central processing unit 110, and reduced the data of second operating system in second storage area 138.Afterwards, can get back to second operating system, second breakpoint originally and get back to the environment of second operating system once more.
Please with reference to Fig. 2, it is depicted as the changing method process flow diagram of one embodiment of the invention operating system.When computer system was in first operating system environment (step S502), the user desired to switch to second operating system environment.At this moment, control is switched driver triggering system management interrupt (SMI) and is got into SMM (SMM), and control is transferred to Basic Input or Output System (BIOS) (BIOS) (step S504).Then, back up the first environment parameter under first operating system and write down first breakpoint (step S506).That is to say, earlier first background data of backup central processing unit and first data in the internal memory.
Afterwards, judge whether computer system once started second operating system (step S508).That is, judge the second environment parameter that whether backs up second operating system in the computer system.
When computer system had not started second operating system, then Basic Input or Output System (BIOS) (BIOS) 150 can utilize hard disk to start (boot) second operating system (step S510).Finally, get into second operating system environment (step S514).
Otherwise when computer system once started second operating system, then the second environment that can reduction have before backed up in internal memory 130 of Basic Input or Output System (BIOS) (BIOS) 150 was mixed number, and gets into second operating system (step S512) by second breakpoint.That is to say; To reduce (restore) at second background data (CPU context) of the central processing unit under second operating system environment to central processing unit 110; And second data in the reduction internal memory; And get into second operating system by second breakpoint, finally get into second operating system environment (step S514).
According to embodiments of the invention, when operating system is switched, switch to second operating system environment (step S514) through step S512 by first operating system environment (step S502), need spend any stand-by period hardly.That is the user does not need the switching of stand-by period between promptly can the complete operation system.Certainly, method flow and Fig. 2 of being switched to first operating system by second operating system are also identical, therefore repeat no more.
Advantage of the present invention is the multiple operating system changing method that proposes in a kind of computer system.The present invention need not get into sleep pattern under first operating system can carry out the switching of operating system, and the user also can feel the switching that operating system is carried out apace, almost without any need for the stand-by period.
Another advantage of the present invention is the multiple operating system changing method that proposes in a kind of computer system.Therefore the original state of the present invention when not needing when operating system is switched to carry out that computer system is reduced to start can save the time of switching between the operating system.
In sum, though the present invention discloses as above with preferred embodiment, so it is not in order to limit the present invention.Anyly have the knack of this art, do not breaking away from the spirit and scope of the present invention, when can doing various changes and retouching, so protection scope of the present invention is as the criterion when looking claims person of defining.

Claims (12)

1. the changing method of the multiple operating system in the computer system is characterized in that said method comprises the following steps:
Under first operating system, the triggering system management interrupt makes above-mentioned computer system get into SMM, and the control of above-mentioned computer system is gone to Basic Input or Output System (BIOS) by above-mentioned first operating system;
Back up the first environment parameter of above-mentioned first operating system;
Judge whether above-mentioned computer system has the second environment parameter; And
When not having above-mentioned second environment parameter, normally start second operating system; When having above-mentioned second environment parameter,, start above-mentioned second operating system according to above-mentioned second environment parameter.
2. method according to claim 1 is characterized in that, wherein triggering the said system management interrupt is in above-mentioned first operating system, to load to switch driver, sends advanced configuration and power-management interface and calls out, and produces and triggers the said system management interrupt.
3. method according to claim 1; It is characterized in that; Wherein above-mentioned first environment parameter comprises first background data of central processing unit and first data in the internal memory, and above-mentioned second environment parameter comprises second background data of above-mentioned central processing unit and second data in the above-mentioned internal memory.
4. method according to claim 3 is characterized in that, wherein comprises first storage area and second storage area in the above-mentioned internal memory of above-mentioned computer system, and above-mentioned first data backup is in above-mentioned first storage area, and above-mentioned second data backup is in above-mentioned second storage area.
5. method according to claim 1 is characterized in that, wherein starts above-mentioned second operating system, is to use the hard disk of above-mentioned computer system to start.
6. method according to claim 5 is characterized in that, wherein above-mentioned hard disk comprises first cut section and second cut section, stores above-mentioned first operating system in above-mentioned first cut section, stores above-mentioned second operating system in above-mentioned second cut section.
7. the computer system of a tool multiple operating system is characterized in that, above-mentioned computer system comprises:
Central processing unit;
Control chip group is connected to above-mentioned central processing unit;
Internal memory is connected to above-mentioned control chip group;
Hard disk is connected to above-mentioned control chip group; And
Basic Input or Output System (BIOS) is connected to above-mentioned control chip group;
Wherein, Computer system is under first operating system; The triggering system management interrupt; Above-mentioned central processing unit makes above-mentioned computer system get into SMM, and the first environment parameter that backs up above-mentioned first operating system is to above-mentioned internal memory, and utilizes above-mentioned starting basic input and output system second operating system.
8. computer system according to claim 7; It is characterized in that; Wherein triggering the said system management interrupt is in above-mentioned first operating system, to load to switch driver module, makes and sends advanced configuration and power-management interface calling, produces and triggers the said system management interrupt.
9. computer system according to claim 7; It is characterized in that;, be to check when above-mentioned computer system does not back up the second environment parameter of above-mentioned second operating system, wherein by above-mentioned second operating system of above-mentioned hard disk startup with above-mentioned second operating system of above-mentioned starting basic input and output system; When the above-mentioned second environment parameter of backup,, start above-mentioned second operating system according to above-mentioned second environment parameter.
10. computer system according to claim 9 is characterized in that, wherein above-mentioned first environment parameter comprises first background data of above-mentioned central processing unit and first data in the above-mentioned internal memory; And above-mentioned second environment parameter comprises second background data of above-mentioned central processing unit and second data in the above-mentioned internal memory.
11. computer system according to claim 10; It is characterized in that; Comprise first storage area and second storage area in the wherein above-mentioned internal memory; Above-mentioned first data backup of above-mentioned first environment parameter is in above-mentioned first storage area, and above-mentioned second data backup of above-mentioned second environment parameter is in above-mentioned second storage area.
12. computer system according to claim 7 is characterized in that, wherein above-mentioned hard disk comprises first cut section and second cut section, stores above-mentioned first operating system in above-mentioned first cut section, stores above-mentioned second operating system in above-mentioned second cut section.
CN201110138307.4A 2011-05-18 2011-05-18 Switching method of multi-operating system in computer system Active CN102789397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110138307.4A CN102789397B (en) 2011-05-18 2011-05-18 Switching method of multi-operating system in computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110138307.4A CN102789397B (en) 2011-05-18 2011-05-18 Switching method of multi-operating system in computer system

Publications (2)

Publication Number Publication Date
CN102789397A true CN102789397A (en) 2012-11-21
CN102789397B CN102789397B (en) 2015-04-15

Family

ID=47154804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110138307.4A Active CN102789397B (en) 2011-05-18 2011-05-18 Switching method of multi-operating system in computer system

Country Status (1)

Country Link
CN (1) CN102789397B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853664A (en) * 2012-11-28 2014-06-11 联想(北京)有限公司 Method and electronic device for achieving multiple operating systems
US9342243B2 (en) 2012-11-28 2016-05-17 Lenovo (Beijing) Co., Ltd. Method and electronic apparatus for implementing multi-operating system
CN111221677A (en) * 2018-11-27 2020-06-02 环达电脑(上海)有限公司 Debugging backup method and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402124A (en) * 2001-08-22 2003-03-12 英业达股份有限公司 Method and system for enabling multiple PDA operation systems by menu
CN1658185A (en) * 2004-02-18 2005-08-24 国际商业机器公司 Computer system with mutual independence symbiont multiple eperation system and its switching method
CN1955934A (en) * 2005-10-25 2007-05-02 神基科技股份有限公司 Method for quickly swithover different operation system in computer of multi-operation system
CN101149690A (en) * 2006-09-22 2008-03-26 三星电子株式会社 Computer system including device conducting independent system management operation and control method thereof
CN102043670A (en) * 2009-10-22 2011-05-04 系微股份有限公司 Method for switching different operation systems by computer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402124A (en) * 2001-08-22 2003-03-12 英业达股份有限公司 Method and system for enabling multiple PDA operation systems by menu
CN1658185A (en) * 2004-02-18 2005-08-24 国际商业机器公司 Computer system with mutual independence symbiont multiple eperation system and its switching method
CN1955934A (en) * 2005-10-25 2007-05-02 神基科技股份有限公司 Method for quickly swithover different operation system in computer of multi-operation system
CN101149690A (en) * 2006-09-22 2008-03-26 三星电子株式会社 Computer system including device conducting independent system management operation and control method thereof
CN102043670A (en) * 2009-10-22 2011-05-04 系微股份有限公司 Method for switching different operation systems by computer

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853664A (en) * 2012-11-28 2014-06-11 联想(北京)有限公司 Method and electronic device for achieving multiple operating systems
US9342243B2 (en) 2012-11-28 2016-05-17 Lenovo (Beijing) Co., Ltd. Method and electronic apparatus for implementing multi-operating system
CN103853664B (en) * 2012-11-28 2017-06-27 联想(北京)有限公司 A kind of method and electronic equipment for realizing multiple operating system
CN111221677A (en) * 2018-11-27 2020-06-02 环达电脑(上海)有限公司 Debugging backup method and server
CN111221677B (en) * 2018-11-27 2023-06-09 环达电脑(上海)有限公司 Error detection backup method and server

Also Published As

Publication number Publication date
CN102789397B (en) 2015-04-15

Similar Documents

Publication Publication Date Title
US8874889B2 (en) Method of switching between multiple operating systems of computer system
US8146093B2 (en) Computer multiple operation system switching method
JP6530774B2 (en) Hardware failure recovery system
CN102135910B (en) Method for switching operating systems and electronic device using same
US7360045B2 (en) System and method for backing up data from a quiesced storage device
CN105874428B (en) Technology for the operating system transformation in multiple operating system environments
US20080098246A1 (en) Computer system and control method thereof
KR20130022095A (en) Method for switching the operating system in information processing system
US20110040958A1 (en) Method of switching computer operating systems
US20190004818A1 (en) Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof
KR20200002603A (en) Power button override for persistent memory enabled platforms
CN102880477A (en) Method for realizing computer start and computer
JP2005301639A (en) Method and program for handling os failure
CN102567178B (en) A kind of electronic equipment and dump energy Notification Method thereof and starting method
CN102789397B (en) Switching method of multi-operating system in computer system
CN113630281B (en) BYPASS control method, device, terminal and storage medium
KR20130068630A (en) Method for initializing embedded device and apparatus thereof
CN103870298A (en) Switching method and electronic device
CN101436097B (en) Electronic device and wake-up method thereof
CN103890713A (en) Apparatus and method for managing register information in a processing system
US20120185713A1 (en) Server, storage medium, and method for controlling sleep and wakeup function of the server
CN103870295A (en) Switching method and electronic device
CN103678018A (en) Method and device for recovering data
TWI480801B (en) Method of installing the instant-on operation system
JP5867630B2 (en) Multi-core processor system, multi-core processor system control method, and multi-core processor system control program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant