TW201229901A - Method for rapidly switching operation system - Google Patents

Method for rapidly switching operation system Download PDF

Info

Publication number
TW201229901A
TW201229901A TW100100246A TW100100246A TW201229901A TW 201229901 A TW201229901 A TW 201229901A TW 100100246 A TW100100246 A TW 100100246A TW 100100246 A TW100100246 A TW 100100246A TW 201229901 A TW201229901 A TW 201229901A
Authority
TW
Taiwan
Prior art keywords
operating system
memory
area
exclusive
computer
Prior art date
Application number
TW100100246A
Other languages
Chinese (zh)
Other versions
TWI524274B (en
Inventor
Nai-Yi Su
Original Assignee
Insyde Software 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 Insyde Software Corp filed Critical Insyde Software Corp
Priority to TW100100246A priority Critical patent/TWI524274B/en
Publication of TW201229901A publication Critical patent/TW201229901A/en
Application granted granted Critical
Publication of TWI524274B publication Critical patent/TWI524274B/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

Disclosed is a method for rapidly switching operation systems, allowing a user to switch to another operation system without having the user save the working state of an operation system in operation into a storage apparatus, but to switch to another operation system while enabling the operation system in operation to enter a standby mode. Because the data in the memory will not be lost when the system memory enters a standby mode, this invention allows rapid switching into another operation system, and switching to various operation systems in accordance with the needs of the user.

Description

201229901 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明係有關於一種快速切換作業系統之方法,特別有 關於一種利用 BlOS(Basic Input Output System,式 本輪入輸出系統)在維持目前工作狀態下快速切換作業系 * 統之方法。 【先前技術] [00〇2] 目前市面上的作業系統有很多種,其中Linux以及微軟201229901 VI. Description of the Invention: [Technical Field of the Invention] [0001] The present invention relates to a method for quickly switching an operating system, and more particularly to a method for maintaining a BasOS (Basic Input Output System) using BlOS (Basic Input Output System) The method of quickly switching the operating system in the current working state. [Prior Art] [00〇2] There are many operating systems on the market today, including Linux and Microsoft.

Windows為大多數人所使用。許多使用者想在一電腦μ ^ ◎ 均上同 時使用兩種不同的作業系統,而且使用者想要在維持辱、 本工作狀態的作業系統切換至另一個作業系統,一種選 擇是安裝虛擬作業系統程式’但建構於虛擬程式之作業 系統無法完全的利用到硬體系統資源,造成另一作業系 統在操作上困擾;另一種選擇則需要將其中一個作業系 統的資料先存入儲存裝置中,並利用系統重啟 (Restart)或進入休眠(Hibernation)的方法來達成目 Q 的’但此方法不僅麻煩又耗時。 【發明内容】 [〇〇〇3]本發明提供一種快速切換作業系統之方法,其讓使用者 不需將操作中作業系統之工作狀態存入儲存裝置的情況 下’利用讓系統使操作中作業系統進入待命模式的方式 而來切換到另外一個作業系統,由於系統記憶體在進入 待命模式時記憶體資料不會流失’可快速地切換到另一 個作業系統’並依使用者的需求切換多個不同的作業系 統0 100100246 表單編號A0101 第3頁/共19頁 1002000411-0 201229901 [0004] 本發明之第一態樣係提供一種快速切換作業系統之方法 ,其將第一作業系統切換至第二作業系統,由一電腦執 行下列步驟: [0005] 由第一作業系統使用一共用區及專屬第一作業系統所使 用之作業系統專屬區之記憶體以存取資料及執行命令; [0006] 在第一作業系統之程序中,觸發作業系統之切換,由 BIOS執行第一作業系統進入待命模式之程序; [0007] 將該共用區之記憶體中之第一作業系統之傳統記憶體資 料、喚醒起始位址及第一作業系統備份資料儲存於一暫 存區之記憶體中; [0008] 將第一作業系統進入待命模式; [0009] 由BIOS將該電腦之系統的硬體設定回復至第一次開機之 狀態; [0010] 由BIOS指定該共用區及專屬第二作業系統所使用之作業 系統專屬區之記憶體以供第二作業系統使用;以及 [0011] 完成BIOS開機程序,進入第二作業系統之程序,第二作 業系統使用該共用區及專屬第二作業系統所使用之作業 系統專屬區之記憶體。 [0012] 根據本發明之第一態樣之方法,更包含下列步驟: [0013] 在BIOS第一次開機階段設定該電腦之系統的硬體,將該 電腦之記憶體分成該共用區、複數個作業系統專屬區及 該暫存區, 100100246 表單編號A0101 第4頁/共19頁 1002000411-0 201229901 [0014] [0015] [0016] [0017] Ο [0018] [0019] [0020]Windows is for most people. Many users want to use two different operating systems simultaneously on a computer, and the user wants to switch the operating system to another operating system while maintaining the working status. One option is to install the virtual operating system. The program 'but the operating system built on the virtual program can not fully utilize the hardware system resources, causing another operating system to be troubled in operation; the other option is to store the data of one of the operating systems into the storage device first, and Use the system restart (Restart) or go to sleep (Hibernation) to achieve the goal of Q 'but this method is not only cumbersome and time consuming. SUMMARY OF THE INVENTION [3] The present invention provides a method for quickly switching an operating system, which allows a user to operate the operating system without having to store the operating state of the operating system in the operating device. The system enters the standby mode to switch to another operating system. Since the system memory does not lose memory data when it enters the standby mode, it can quickly switch to another operating system and switch multiple according to the user's needs. Different operating systems 0 100100246 Form No. A0101 Page 3 / Total 19 pages 1002000411-0 201229901 [0004] A first aspect of the present invention provides a method of quickly switching an operating system that switches a first operating system to a second The operating system performs the following steps by a computer: [0005] The first operating system uses a shared area and a memory of the operating system exclusive area used by the dedicated first operating system to access data and execute commands; [0006] In the program of the first operating system, the switching of the operating system is triggered, and the BIOS executes the first operating system to enter the standby mode. [0007] storing the traditional memory data, the wake-up start address, and the first operating system backup data of the first operating system in the memory of the shared area in a memory of a temporary storage area; [0008] An operating system enters a standby mode; [0009] the hardware setting of the computer system is restored to the first power-on state by the BIOS; [0010] the shared area and the operating system used by the dedicated second operating system are specified by the BIOS The memory of the exclusive area is used by the second operating system; and [0011] completing the BIOS booting process and entering the second operating system program, the second operating system using the shared area and the operating system exclusive to the exclusive second operating system The memory of the district. [0012] According to the method of the first aspect of the present invention, the method further includes the following steps: [0013] setting the hardware of the computer system in the first booting phase of the BIOS, dividing the memory of the computer into the shared area, and plural Operating system exclusive area and the temporary storage area, 100100246 Form No. A0101 Page 4 / Total 19 pages 1002000411-0 201229901 [0014] [0016] [0017] [0019] [0020]

[0021] [0022] 由BIOS指定該共用區及專屬第一作業系統所使用之作業 系統專屬區之記憶體以供第一作業系統使用;以及 完成BIOS開機程序,進入第一作業系統之程序。 根據本發明之第一態樣之方法,其中,該暫存區之記憶 體的容量大於或等於(N-1)個該共用區之記憶體的容量, 而N為該電腦使用不同作業系統之數量。 本發明之第二態樣係提供一種快速切換作業系統之方法 ,其將第二作業系統切換至第一作業系統,由一電腦執 行下列步驟: 由第二作業系統使用一共用區及專屬第二作業系統所使 用之作業系統專屬區之記憶體以存取資料及執行命令; 在第二作業系統之程序中,觸發作業系統之切換,由 BIOS執行第二作業系統進入待命模式之程序; 將該共用區之記憶體中之第二作業系統之傳統記憶體資 料、操作起始位址及第二作業系統備份資料儲存於一暫 存區之記憶體中,第二作業系統之該等資料儲存於該暫 存區之記憶體之位址不同於第一作業系統之該等資料儲 存於該暫存區之記憶體之位址; 將第二作業系統進入待命模式; 由B10 S將該電腦之系統的硬體設定回復至第一次開機之 狀態; 由BIOS指定該共用區及專屬第一作業系統所使用之作業 系統專屬區之記憶體以供第一作業系統使用; 100100246 表單編號A0101 第5頁/共19頁 1002000411-0 [0023] 201229901 圃*BIGS將於該暫存區之記憶體巾之卜作業丨統之傳統 記憶體資料、喚醒起始位址及第—作業系統備份資料儲 存於該共用區之記憶體中;以及 障5] 開機程序,第一作業系統回復於觸發作業系統 之切換前之狀態。 闕根據本發明之第二態樣之方法,更包含下列步驟: 闕由BIGS再-次開機階段設定該電腦之系統的硬體以回復 至第-次職之狀態’而將該電腦之記龍分成該共用 區、複數個作業系統專屬區及該暫存區,其中第一作業 系統已進入待命模式’第一作業系統之傳統記憶體資料 、喚醒起純址及第—作業純備份資料已儲存於該暫 存區之記憶體中; 闕W聊旨㈣制區及專屬帛二作鮮、統所使狀作業 系統專屬區之記憶體以供第二作業系統使用;以及 [0〇29]完成BI〇S開機程序,進入第二作業系統之程序。 圆根據本發明之第二態社方法,其巾,該暫存區之記憶 體的容量大於或等於(N-1Mgj該共用區之記憶體的容量, 而N為該電腦使用不同作業系統之數量。 【實施方式】 [0〇31]參考以下附圖以說明本發明之較佳實施例。 _2] 為本發明之快速切換作業“之方法之流程圖。在圖 1中’在開啟電腦的電源後,BI0S執行開機程序,例如對 各系統測試及初始設定電腦各硬體裝置,亦即p〇sT , 100100246 表單編號A0101 第6頁/共19頁 1002000411-0 201229901 POST ’ Power On Self Test , 電源啟動自我檢測)程 式 [0033] Ο [0034] [0035] ❹ 在打開電源或重新啟動電腦時’電腦將會啟動存放在 娜中的POST程序,順主要的工作是負t對電腦各硬 體設備做好減設定與基本測I作,以保證電腦能正 常運作。例如確認實體記憶體(RAM)大小及硬體⑽, 例如,硬碟、鍵盤、顯示器、磁碟機、Serial P0rt、 系統時間等,檢查這些設備是否存在或可否運作。一旦 娜執行完自己的·程序之後,其域在電腦中自定 有自己Bios的介面卡(例如’顯示卡)也會執行其自定的 POST工作程序。 在完成POST程序後,刪會將位於開機硬碟中的啟動程 式載入記憶體中執行,此時BIGS也就將執行權交給電 腦系統的開機程序關始執行作業系統之程序。 為了能使電腦執行數财_ #系統,β丨Gs在第—次開 機階段設定電職_硬體,並將電腦之記憶體分絲 個區域(步驟S20)’如圖2為本發明之記憶體分成數個區 域之不意圖所^在圖2巾,記憶㈣分成制區12、第 -作業系統專屬區14、第二作業系統專屬區16及暫存區 18 ’本實施例係以在—電腦操作兩個不同作業系統作為 說明’然而該說明並非限制本發狀方法,本實施例可 適用於-電腦操作三個或以上之不同作業系統。 =用區12之記憶體容量視第—作業系統及第二作業系統 存取傳統記憶體資料所需之最大容量而定。第-作業系 100100246 表單編號A0101 第7頁/共19頁 1002000411-0 [0036] 201229901 統專屬區14及第二作業系統專屬區16之記憶體容量分別 視第作業系統及第二作業系統存取系統資料所需之容 里而定。暫存區18之記憶體容量大於或等於(n_d個共用 區12之記憶體容量’而N為電腦使用不同作業系統之數量 ,例如有二個不同作業系統,暫存區丨8之記憶體容量大 於或等於(2-1 = 1)個共用區12之記憶體容量,例如有三 個不同作業系統,暫存區18之記憶體容量大於或等於 (3-1 = 2)個共用區12之記憶體容量,以此類推。 [0037] 接著,由BIOS指定共用區丨2及第一作業系統專屬區14之 記憶體區域以供第一作業系統存取資料及執行命令之用( 步驟S22)。在完成bios開機程序後,電腦系統執行第一 作業系統,進入第一作業系統之程序,由第一作業系統 使用共用區12及第一作業系統專屬區〗4之記憶體區域以 存取資料及執行命令(步驟S24)。 [0038] 在第一作業系統之程序中,發生將第一作業系統切換至 第二作業系統之觸發事件(例如,、timer、軟體 觸發等)時,由Bios執行第一作業系統進入待命模式 (Suspend to RAM > ACPI(Advance Configuration and Power· lnterface,高階配置電源管理介面)S3) 之程序(步驟S26)。 [0039] 其中,ACPI的電源管理特性從以前只適用行動式電腦( 例如膝上型電腦)到一般桌上型電腦、工作站和伺服器 皆有應用。例如,系統可能會進入極低功率消耗狀態。 這些就是可利用在多數桌上型電腦上的「睡眠」和「休 眠」設定。 100100246 表單編號A0101 第8頁/共19頁 1002000411-0 201229901 [0040] ACPI S3 :在BIOS甲叫做「掛到内部記憶體(如叩㈣ to RAM/STR)」,在Wind〇ws χρ以後的Wind〇ws版本 和一些Linux發行版中叫做「待命(Standby)」,在[0022] The memory of the shared area and the operating system exclusive area used by the exclusive first operating system is specified by the BIOS for use by the first operating system; and the BIOS booting process is completed to enter the first operating system. According to a first aspect of the present invention, the memory of the temporary storage area has a capacity greater than or equal to (N-1) the capacity of the memory of the shared area, and N is a different operating system of the computer. Quantity. A second aspect of the present invention provides a method for quickly switching an operating system, which switches a second operating system to a first operating system, and the following steps are performed by a computer: a shared area and a dedicated second are used by the second operating system The memory of the operating system exclusive area used by the operating system to access the data and execute the command; in the program of the second operating system, triggering the switching of the operating system, and the BIOS executes the program of the second operating system to enter the standby mode; The traditional memory data, the operation start address and the second operating system backup data of the second operating system in the memory of the shared area are stored in the memory of a temporary storage area, and the data of the second operating system is stored in The address of the memory of the temporary storage area is different from the address of the memory of the first operating system stored in the temporary storage area; the second operating system is put into the standby mode; the system of the computer by the B10 S The hardware setting is restored to the state of the first booting; the memory of the operating system exclusive area used by the shared area and the exclusive first operating system is specified by the BIOS For the first operating system; 100100246 Form No. A0101 Page 5 / Total 19 pages 1002000411-0 [0023] 201229901 圃 *BIGS will be in the memory area of the memory area of the memory of the traditional memory data, wake up The start address and the first-operation system backup data are stored in the memory of the shared area; and the barrier 5] starts the program, and the first operating system returns to the state before the switching of the trigger operating system. The method according to the second aspect of the present invention further comprises the following steps: 设定 setting the hardware of the computer system to the first-second job status by the BIGS re-boot phase and the computer Divided into the shared area, a plurality of operating system exclusive areas and the temporary storage area, wherein the first operating system has entered the standby mode, the traditional memory data of the first operating system, the wake-up pure address, and the first-operational pure backup data have been stored. In the memory of the temporary storage area; 阙WTalking (4) zone and the exclusive memory of the exclusive operation system of the system for the second operating system; and [0〇29] completed The BI〇S boot program enters the program of the second operating system. According to the second aspect of the present invention, the memory of the temporary storage area has a capacity greater than or equal to (N-1Mgj the capacity of the memory of the shared area, and N is the number of different operating systems used by the computer. [Embodiment] [0〇31] The following drawings are used to explain the preferred embodiment of the present invention. _2] is a flowchart of the method of the fast switching operation of the present invention. In Fig. 1, the power supply of the computer is turned on. After that, BI0S executes the booting process, for example, testing and initial setting of each hardware device of the system, that is, p〇sT, 100100246 Form No. A0101 Page 6/19 pages 1002000411-0 201229901 POST 'Power On Self Test, power supply Start self-test) program [0033] Ο [0034] [0035] ❹ When turning on the power or restarting the computer, the computer will start the POST program stored in Na, the main job is negative t to the computer hardware devices Do a good job of reducing the settings and basic tests to ensure that the computer can operate normally. For example, confirm the size of the physical memory (RAM) and hardware (10), for example, hard disk, keyboard, display, disk drive, Serial P0rt, system Wait, check if these devices are available or not. Once you have finished your own program, your domain will have its own Bios interface card (such as 'display card') in the computer to perform its own POST work. After completing the POST program, the deletion will load the boot program located on the bootable hard disk into the memory for execution. At this time, BIGS will transfer the execution right to the boot program of the computer system to start the execution of the operating system program. The computer can execute the financial system _# system, β丨Gs sets the electric job_hard body in the first booting stage, and divides the memory of the computer into the area (step S20)' as shown in Fig. 2 is the memory of the present invention. The intention is divided into several areas. In Figure 2, memory (4) is divided into zone 12, the first operating system exclusive zone 14, the second operating system exclusive zone 16 and the temporary storage zone 18 'this embodiment is based on - computer Operating two different operating systems as an illustration 'However, the description does not limit the present method, and the present embodiment is applicable to a computer operating three or more different operating systems. = Memory capacity of the area 12 is regarded as the operating system. And the maximum capacity required for the second operating system to access the traditional memory data. The first operating system 100100246 Form No. A0101 Page 7 / Total 19 pages 1002000411-0 [0036] 201229901 System exclusive area 14 and the second operating system The memory capacity of the exclusive area 16 depends on the capacity required by the first operating system and the second operating system to access the system data. The memory capacity of the temporary storage area 18 is greater than or equal to (the memory capacity of the n_d shared areas 12) 'And N is the number of different operating systems used by the computer. For example, there are two different operating systems. The memory capacity of the temporary storage area 大于8 is greater than or equal to (2-1 = 1) the memory capacity of the shared area 12, for example, three. For a different operating system, the memory capacity of the temporary storage area 18 is greater than or equal to (3-1 = 2) the memory capacity of the shared area 12, and so on. [0037] Next, the memory area of the shared area 丨2 and the first operating system exclusive area 14 is designated by the BIOS for the first operating system to access the data and execute the command (step S22). After completing the bios booting process, the computer system executes the first operating system and enters the first operating system program, and the first operating system uses the shared area 12 and the memory area of the first operating system exclusive area 4 to access the data and The command is executed (step S24). [0038] in the program of the first operating system, when a trigger event (eg, timer, software trigger, etc.) for switching the first operating system to the second operating system occurs, the first operating system is executed by the Bios to enter the standby mode ( The program of Suspend to RAM > ACPI (Advance Configuration and Power lnterface) S3) (step S26). [0039] Among them, ACPI's power management features have been applied from previous mobile computers (such as laptops) to general desktops, workstations, and servers. For example, the system may enter a very low power consumption state. These are the “sleep” and “sleep” settings available on most desktop computers. 100100246 Form No. A0101 Page 8 of 19 1002000411-0 201229901 [0040] ACPI S3: In BIOS, it is called "hanging to internal memory (such as 叩(4) to RAM/STR)", Wind after Wind〇ws χρ The 〇ws version and some Linux distributions are called "Standby".

Windows Vista和Mac OS X則叫做「睡眠(sieep)j, 雖然ACPI規範僅僅提到術語「幻」和「睡眠(sieep)」 : 。在這個狀態下,主記憶體(Ram)仍然有電源供給,儘管 . 它也是幾乎唯一的有電源供給的裝置。因為作業系統、 所有應用程式和被開啟的檔案等等的狀態都是保存在主 記憶體中,使用者可以把工作恢復到正好上次他們保持 〇 的狀態,即電腦從S3狀態回來聘主記憶體的内容和它進 入S3狀態時候的内容是相同的。如此來說幻有兩個好處 :電腦恢復的過程比重新開機要快,第二,如果任何正 在執行的應用程式(被開啟的檔案等等)有資料存在記憶 體中,這些資料是不會被寫到硬碟上的。 [0041] BIOS在執行第一作業系統進入待命模式之程序時,b〇is 將共用區1 2之記憶體中之第一作業系統之傳統記憶體資 Q 料(如檔案資料等)、喚醒起始位址(FACS(Fir>mwaFe ACPI Control Structure,韌體ACPI控制結構)Windows Vista and Mac OS X are called "sieep", although the ACPI specification only mentions the terms "magic" and "sieep": . In this state, the main memory (Ram) still has a power supply, although it is also the only device with a power supply. Because the status of the operating system, all applications, and the files that are opened are saved in the main memory, the user can restore the work to the state that they last remained stunned, that is, the computer returns from the S3 state to the main memory. The content of the body is the same as when it entered the S3 state. There are two advantages to this: the computer recovery process is faster than rebooting. Second, if any of the executing applications (opened files, etc.) have data stored in the memory, the data will not be Written on the hard drive. [0041] When the BIOS executes the program of the first operating system to enter the standby mode, the b〇is will wake up the traditional memory resources (such as archive data) of the first operating system in the memory of the shared area 12. Starting address (FACS (Fir>mwaFe ACPI Control Structure)

Waking Vector)及第一作業系統備份資料等儲存於暫存 區18之記憶體區域中(步驟S28)。 [0042] FACS係為讀寫内部記憶體中的一種結構,BI〇s用它來實 作勃體和os之間的資訊交換(handshaking)。透過 FADT(Fixed ACPI Description Table,固定ACPI描 述表),FACS被轉到相容ACPI的作業系統中。FACS包含 上次啟動時的系統硬體簽名,韌體喚醒向量 100100246 表單編號A0101 第9頁/共1Q百 ' R 1002000411-0 201229901 [0043] [0044] [0045] [0046] [0047] waking vector)及Global Lock。 接著,BIOS將第一作業系統進入待命模式(步驟S3〇), 電腦僅提供電源給記憶體1 〇。 然後,由BIOS將電腦之各系統的硬體設定回復至第一次 開機時之狀態(步驟S32)。在此階段雖然是^〇5之開機 程序,但無需對電腦之各系統的硬體進行測試,如此可 節省大量的BO IS階段之開機時間。 在BIOS開機階段,由BIOS指定共用區12及第二作業系統 專屬區16之圮憶體區域以供第二作業系統使用(步驟4 ) 。在完成上述步驟S32、S34之BIOS開機程序後,電腦系 統執行第二作業系統,進入第二作業系統之程序,由第 一作業系統使用共用區12及第二作業系蜣專屬區16之記 憶體區域以存取資料及執行命令(步驟Mg)。 在第二作業系統之程序中,發生將第二作業系統切換至 第一作業系統之觸發事件(声如,h〇tkey、timer '軟體 觸發等)時,如同上述,由BIG—行第二作業系統進入待 命模式(Suspend t0 RAM,ACPI S3)之程序(步驟幻8) ο BIOS在執行第二作業系統進入待命模式之程序時,刖u 將共用區12之記憶龍域中之第二作業系統之傳統記憶 體資料(如檔案資料等)、喚醒起始位址(FACS Wakhg Vector)及第二作業系統備份資料等儲存於暫存區Μ之 記憶體區域t (步驟S4G)。其中,第二作業系統之該等資 料儲存於暫存區18之記憶體區域之位址係不同於第一作、 100100246 表單編號A01〇1 第10頁/共19頁 1002000411-0 201229901 [0048] [0049] ❹ [0050] 〇 業系統之該等f㈣存㈣树18之記籠區域之位址 ,二避免第二作業系統之該等資料覆蓋掉第一作業系統 之"亥等貝料,導致在喚醒第—作業系統時因第—作業系 統的資料遺失而喚醒程序失敗。 接著Bios將第m魏入待命模式(步驟S42), 電月旬僅提供電源給記憶體1()。然後,由BIGS將電腦之各 系統的硬體〜回復至第—次開機時之狀態(步驟⑽)。 在BIOS開機階段,由BI〇s指定共用區12及第一作業系統 專屬區U之記憶體區域以供第—作業系統使用(步驟s46) 。由B10 S將第-作業系統進入待命模式前儲存於暫存區 18之記憶體區域中之第_作f系統之傳統記憶體資料、 操作起始位址及第—作業系統備份資料儲存回共用區U 之記憶體區域中(步驟S48)。 在疋成上述步驟S44、S46、S48之BIOS開機程序後,電 腦系統根據儲存回共用區12之記憶體區域申之第一作業 系統之傳統記憶體資料、操作起始位埤及第一作業系統 備份資料,以執行喚醒第一作業系統之程序,進入第一 作業系統之程序,由第_作業系統使用共用區12及第— 作業系統專屬區14之記憶體區域,使第一作業系統回復 到在觸發作業系統之切換前之狀態來存取資料及執行命 令(步驟S50)。 本實施例雖然以兩個不同作業系統操作於一電腦上作為 說明,但並非用以限制本發明,只要電腦之記憶體容量 足夠大’電腦可同時操作在三個或以上不同作業系統, 100100246 表單編號A0101 第II頁/共19頁 1002000411-0 [0051] 201229901 而將圖2之記憶體1 0分割為三個或以上作業系統專屬區, 而暫存區的容量為等於或大於(Ν-1)個共用區的容量,其 中Ν為3或以上。而電腦同時操作三個或以上不同作業系 統之方法如同上述圖1所述之流程步驟,並無太大差別。 [0052] 本發明之優點係提供一種快速切換作業系統之方法,其 讓使用者不需將操作中作業系統之工作狀態存入儲存裝 置的情況下,利用讓系統使操作中作業系統進入待命模 式的方式而來切換到另外一個作業系統,由於系統記憶 體在進入待命模式時記憶體資料不會流失,可快速地切 換到另一個作業系統,並依使用者的需求切換多個不同 的作業系統。 [0053] 雖然本發明已參照較佳具體例及舉例性附圖敘述如上, 惟其應不被視為係限制性者。熟悉本技藝者對其形態及 具體例之内容做各種修改、省略及變化,均不離開本發 明之範圍。 【圖式簡單說明】 [0054] 圖1為本發明之快速切換作業系統之方法之流程圖;以及 [0055] 圖2為本發明之記憶體分成數個區域之示意圖。 【主要元件符號說明】 [0056] 1 0記憶體 [0057] 1 2共用區 [0058] 14第一作業系統專屬區 [0059] 16第二作業系統專屬區 100100246 表單編號Α0101 第12頁/共19頁 1002000411-0 201229901 [0060] 18暫存區 ΟThe Waking Vector) and the first operating system backup data and the like are stored in the memory area of the temporary storage area 18 (step S28). [0042] FACS is a structure in reading and writing internal memory, and BI〇s uses it to implement information exchange between Botswan and os. Through the FADT (Fixed ACPI Description Table), the FACS is transferred to an operating system compatible with ACPI. FACS contains the system hardware signature at the last startup, firmware wake-up vector 100100246 Form number A0101 page 9 / total 1Q hundred ' R 1002000411-0 201229901 [0044] [0046] [0047] [0047] waking vector ) and Global Lock. Then, the BIOS enters the first operating system into the standby mode (step S3〇), and the computer only supplies power to the memory 1 . Then, the hardware setting of each system of the computer is restored by the BIOS to the state at the time of the first power-on (step S32). At this stage, although it is a boot program of ^〇5, it is not necessary to test the hardware of each system of the computer, which can save a lot of boot time of the BO IS stage. In the BIOS boot phase, the shared area 12 and the second operating system exclusive area 16 are designated by the BIOS for use by the second operating system (step 4). After completing the BIOS booting process of steps S32 and S34, the computer system executes the second operating system and enters the program of the second operating system, and the memory of the shared area 12 and the second operating system exclusive area 16 is used by the first operating system. Area to access data and execute commands (step Mg). In the program of the second operating system, when a trigger event (sound such as h〇tkey, timer 'soft triggering, etc.) for switching the second operating system to the first operating system occurs, as in the above, the second operation is performed by the BIG-line The program enters the standby mode (Suspend t0 RAM, ACPI S3) (step phantom 8) ο When the BIOS executes the program of the second operating system to enter the standby mode, 刖u will share the second operating system in the memory zone of the shared area 12 The conventional memory data (such as archive data), the FACS Wakhg Vector, and the second operating system backup data are stored in the memory area t of the temporary storage area (step S4G). The address of the second operating system stored in the memory area of the temporary storage area 18 is different from the first work, 100100246, form number A01〇1, 10th page, 19th page, 1002000411-0 201229901 [0048] [0049] The addresses of the f (four) storage (four) tree 18 of the camping system of the industry system, and the avoidance of the data of the second operating system covering the first operating system "Hai and other materials, This causes the program to fail when the data of the first operating system is lost when the first operating system is awakened. The Bios then advances the mth into the standby mode (step S42), and only supplies power to the memory 1 (). Then, the hardware of the respective systems of the computer is restored by the BIGS to the state at the time of the first power-on (step (10)). In the BIOS boot phase, the memory area of the shared area 12 and the first operating system exclusive area U is designated by BI〇s for use by the first operating system (step s46). The traditional memory data, the operation start address, and the first operation system backup data stored in the memory area of the temporary storage area 18 before the first operating system enters the standby mode by the B10 S are stored and shared. In the memory area of the area U (step S48). After the BIOS booting process of the above steps S44, S46, and S48 is performed, the computer system applies the traditional memory data, the operation start position, and the first operating system of the first operating system according to the memory area stored in the shared area 12. Backing up the data to execute the program of waking up the first operating system, entering the program of the first operating system, and using the shared area 12 and the memory area of the exclusive operating area 14 of the operating system by the first operating system to restore the first operating system to The data is accessed and the command is executed in a state before the switching of the operating system is triggered (step S50). Although the present embodiment operates on a computer with two different operating systems as an illustration, it is not intended to limit the present invention as long as the memory capacity of the computer is large enough. The computer can operate on three or more different operating systems at the same time, 100100246 form. No. A0101 Page II / 19 pages 1002000411-0 [0051] 201229901 The memory 10 of FIG. 2 is divided into three or more operating system exclusive areas, and the capacity of the temporary storage area is equal to or greater than (Ν-1) The capacity of a shared area, where Ν is 3 or more. The method of operating three or more different operating systems simultaneously is similar to the process steps described in Figure 1 above, and there is not much difference. [0052] An advantage of the present invention is to provide a method for quickly switching an operating system, which allows a user to enter an operating mode in an operating mode without the user having to store the operating state of the operating system in the operating device. The way to switch to another operating system, because the memory of the system memory will not be lost when entering the standby mode, can quickly switch to another operating system, and switch multiple different operating systems according to the user's needs. . The present invention has been described above with reference to the preferred embodiments and the accompanying drawings, and should not be considered as limiting. Various modifications, omissions and changes may be made without departing from the scope of the invention. BRIEF DESCRIPTION OF THE DRAWINGS [0054] FIG. 1 is a flow chart of a method for quickly switching an operating system of the present invention; and FIG. 2 is a schematic diagram of a memory of the present invention divided into a plurality of regions. [Main component symbol description] [0056] 1 0 memory [0057] 1 2 shared area [0058] 14 First operating system exclusive area [0059] 16 Second operating system exclusive area 100100246 Form number Α 0101 Page 12 of 19 Page 1002000411-0 201229901 [0060] 18 temporary storage areaΟ

100100246 表單編號Α0101 第13頁/共19頁 1002000411-0100100246 Form number Α0101 Page 13 of 19 1002000411-0

Claims (1)

201229901 七、申明專利範圍 ·:=換作業系統之方法,其將第-作業系統切換至 使用=^广電腦執行下列步驟:由第-作業系統 。用:,、用區及專屬第-作業系統所使用之作業系統專屬 區之S己憶體以存取資料及執行命 ..... 序中,觸發作業系統之切換,由Biost第一作業系統之程 、佳P士入 、由Bios執行第—作業系統 進入待中模式之程序;將該共用區之記憶體中之第一作業 系統之傳統記憶體資料、唤醒起始位址及第 2料儲存於—暫存區之記憶體中;將第—作業系統進入 待命模式,·由請s將該電腦之系統的硬體設定回復至第 —次開機之狀態,· w⑽指定該共賴及專屬第二作業 糸統所使用之作業系統專屬區之記憶趙以供第二作業系統 使用’以及完成BIOS開機程序,進人第二作業系統之程 序,第二作業系統使用該共用區及專屬第二作業系統所使 用之作業系統專屬區之記憶體。 如申請專利範圍第!項之方法,更包含下❹驟:在MM 第一’次開機階段設㈣電勝之系統的硬體,將該電腦之記 憶體分成該共用區、複數個作業线專屬區及該暫存區; 由BIOS指定該制區及專屬第—作業系統所使用之作業 系統專屬區之記憶體以供第—作業系統使用;以及完成 機程序,進入第_作業系統之程序。 如申請專利範圍第W之方法,其中,該暫存區之記憶體 的容量大於或等於(Μ)個該共用區之記憶體的容量,而 N為該電腦使用不同作業系統之數量。 一種快速切換作業系統之方法,其將第二作業系統切換至 100100246 表單編號A0101 第14頁/共19頁 1002000411-0 201229901201229901 VII. Declaration of patent scope ·:=The method of changing the operating system, which switches the first-operation system to the computer using the =^ wide computer to perform the following steps: by the first-operation system. Use:,, and the use of the exclusive operating area of the exclusive operating system to access the data and execute the life..... In the sequence, trigger the switching of the operating system, the first job by Biost The program of the system, the best P, the program of the first operating system entering the standby mode by the Bios; the traditional memory data, the wake-up address and the second of the first operating system in the memory of the shared area The material is stored in the memory of the temporary storage area; the first operating system is put into the standby mode, and the hardware setting of the computer system is returned to the state of the first power-on state, and w(10) designates the sharing The memory of the operating system exclusive area used by the exclusive second operating system is used by the second operating system to 'and the BIOS booting process to enter the second operating system. The second operating system uses the shared area and the exclusive system. The memory of the operating system exclusive area used by the second operating system. Such as the scope of patent application! The method of the item further comprises the following steps: setting the hardware of the system in the first 'second booting stage of the MM to divide the memory of the computer into the shared area, the plurality of working line exclusive areas and the temporary storage area; The BIOS specifies the memory of the operating system exclusive area used by the system and the exclusive operating system for the first operating system; and completes the program to enter the _ operating system. For example, the method of claim No. W, wherein the capacity of the memory of the temporary storage area is greater than or equal to the capacity of the memory of the shared area, and N is the number of different operating systems used by the computer. A method of quickly switching an operating system, which switches a second operating system to 100100246 Form No. A0101 Page 14 of 19 1002000411-0 201229901 100100246 fm由—電職行下列步驟··由第二作業系統 ’、用區及專屬第二作業系統所使狀作業系統專屬 二記憶體以存取資料及執行命令;在第二作業系統之程 ,觸發作業系統之切換,由職執行第二作業系統 進入待命模式之程序;將該共用區之記憶體中之第二作業 系統之傳統記憶體資料、操作起始位址及第二作業系統備 份資料儲存於一暫存區之記憶體令,第二作業系統之該等 貝枓儲存於該暫存區之記憶體之位址不同於第一作業系统 之該等資料儲存於該暫存區之記憶體之位址·將第二作業 系統進入待命模式;由訂⑽將該電腦之系統的硬體設定 回復至第—”機之狀態;她嶋定該制區及專屬 第作業系統所使用之作業系統專屬區之記憶體以供第— 作業系統使用,·由BI0S將於該暫存區之記憶體令之第一 作業系統之傳統記憶體資料、唤醒起始值址及第一作業系 統備份資料儲存於該共用區之記憶體中;以及完成ΒΙ〇Γ 開機程序’第-作業系統回復於觸發作業系統之切換前之 狀態。 如申請專職㈣4項之方法,更包含下列步驟:峨⑽ 再-次開機階段設定該電腦之系統的硬體以回復至第一次 開機之狀態,而將該電腦之記憶體分成該共用區、複數個 作業系統專屬區及該暫存區,其中第一作業系統已進入待 命模式,第-作業系統之傳統記憶體資料、唤醒起始位址 及第一作業系統備份資料已儲存於該暫存區之記憶體中; 由BIOS指定該共用區及專屬第二作業系統所使用之作業 系統專屬區之記憶體以供第二作業系統使用;以及完成 BIOS開機程序,進入第二作業系統之程序。 表單編號A010I 第15頁/共19頁 1002000411-0 201229901 6 .如申請專利範圍第4項之方法,其中,該暫存區之記憶體 的容量大於或等於(N-1)個該共用區之記憶體的容量,而 N為該電腦使用不同作業系統之數量。 100100246 表單編號A0101 第16頁/共19頁 1002000411-0100100246 fm is the following steps in the electric service line? · The second operating system', the use area and the exclusive second operating system to make the operating system exclusive two memory to access data and execute commands; in the second operating system , triggering the switching of the operating system, and executing the program of the second operating system to enter the standby mode; and backing up the traditional memory data, the operation start address and the second operating system of the second operating system in the memory of the shared area The data is stored in a memory location of a temporary storage area, and the data stored in the temporary storage area of the second operating system is different from the first operating system and stored in the temporary storage area. The address of the memory enters the second operating system into the standby mode; the hardware setting of the computer system is restored to the state of the first machine by the order (10); she determines the use of the system and the exclusive operating system. The memory of the operating system exclusive area is used by the first operating system, and the traditional memory data, the wake-up starting address and the first operation of the first operating system of the memory of the BI0S in the temporary storage area are used. The backup data is stored in the memory of the shared area; and the completion of the boot process 'the first-operation system returns to the state before the switching of the trigger operating system. If the method of applying for full-time (4) 4 items, the following steps are included: (10) setting the hardware of the computer system to the first boot state in the second booting phase, and dividing the memory of the computer into the shared area, the plurality of operating system exclusive areas, and the temporary storage area, wherein An operating system has entered a standby mode, and the traditional memory data, the wake-up start address, and the first operating system backup data of the first operating system are stored in the memory of the temporary storage area; the shared area and the exclusive area are specified by the BIOS. The memory of the operating system exclusive area used by the second operating system is used by the second operating system; and the BIOS booting process is completed to enter the second operating system program. Form No. A010I Page 15 of 19 1002000411-0 201229901 6. The method of claim 4, wherein the memory of the temporary storage area is greater than or equal to (N-1) memories of the shared area The capacity of the body, and N is the number of different operating systems used by the computer. 100100246 Form No. A0101 Page 16 of 19 1002000411-0
TW100100246A 2011-01-05 2011-01-05 Quickly switch the operating system TWI524274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100100246A TWI524274B (en) 2011-01-05 2011-01-05 Quickly switch the operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100100246A TWI524274B (en) 2011-01-05 2011-01-05 Quickly switch the operating system

Publications (2)

Publication Number Publication Date
TW201229901A true TW201229901A (en) 2012-07-16
TWI524274B TWI524274B (en) 2016-03-01

Family

ID=46934060

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100100246A TWI524274B (en) 2011-01-05 2011-01-05 Quickly switch the operating system

Country Status (1)

Country Link
TW (1) TWI524274B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI767548B (en) * 2021-02-02 2022-06-11 台灣積體電路製造股份有限公司 Methods and systems for operating user devices having multiple operating systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI767548B (en) * 2021-02-02 2022-06-11 台灣積體電路製造股份有限公司 Methods and systems for operating user devices having multiple operating systems

Also Published As

Publication number Publication date
TWI524274B (en) 2016-03-01

Similar Documents

Publication Publication Date Title
EP2329365B1 (en) Turbo boot systems and methods
US7941700B2 (en) Operating system-based application recovery
US11157265B2 (en) Firmware update
TW200805159A (en) Method and apparatus for fast boot of an operating system
TW201232249A (en) Computer system and operating system switching method thereof
JP3777136B2 (en) Computer device, data dead copy method, program, and computer device operating method
JP2003196096A (en) Computer system, its starting control method and program
TW201502764A (en) Specialized boot path for speeding up resume from sleep state
TW201011525A (en) Method and controller for power management
US20120311240A1 (en) Information processing apparatus, information processing method, and storage medium
TW201525869A (en) System and method for dual OS memory switching
US20190004818A1 (en) Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof
CN105874428A (en) Technologies for operating system transitions in multiple-operating-system environments
TW200538926A (en) Dynamic node partitioning utilizing sleep state
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
US20110082987A1 (en) Systems and Methods for Power State Transitioning in an Information Handling System
US9910677B2 (en) Operating environment switching between a primary and a secondary operating system
WO2019041903A1 (en) Nonvolatile memory based computing device and use method therefor
TWI559227B (en) Computer system having two built-in operating devices that can be dynamically powered on or powered off
KR100994723B1 (en) selective suspend resume method of reducing initial driving time in system, and computer readable medium thereof
TW201229901A (en) Method for rapidly switching operation system
TWI518594B (en) Computer system and activation method for computer system
US20060010283A1 (en) Information processing apparatus, memory managing program, and memory managing method
US20150317181A1 (en) Operating system switching method
EP3321767B1 (en) Method for reducing power consumption of memory and computer device