TW591377B - Dual basic input/output system for a computer cross-reference to related applications - Google Patents

Dual basic input/output system for a computer cross-reference to related applications Download PDF

Info

Publication number
TW591377B
TW591377B TW91122917A TW91122917A TW591377B TW 591377 B TW591377 B TW 591377B TW 91122917 A TW91122917 A TW 91122917A TW 91122917 A TW91122917 A TW 91122917A TW 591377 B TW591377 B TW 591377B
Authority
TW
Taiwan
Prior art keywords
basic input
output system
program
bios
output
Prior art date
Application number
TW91122917A
Other languages
Chinese (zh)
Inventor
Hou-Yuan Lin
Original Assignee
Giga Byte Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US10/097,066 external-priority patent/US6892323B2/en
Application filed by Giga Byte Tech Co Ltd filed Critical Giga Byte Tech Co Ltd
Application granted granted Critical
Publication of TW591377B publication Critical patent/TW591377B/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

A computer system has a central processing unit (CPU), and a chipset for supporting the CPU, and a selectable BIOS system. The chipset has a first general purpose input/output (GPIO) register. The selectable BIOS includes a primary and secondary BIOS programs, a timer circuit for generating a delay signal after power-on of the computer system, and a BIOS switching circuit. The primary BIOS program has confirmation code for generating a confirmation signal on the first GPIO register. The BIOS switching circuit shadows the primary or secondary BIOS program into a predetermined address space of the CPU according to the confirmation signal and the delay signal. While the primary BIOS program is shadowed, if the BIOS switching circuit receives the timer delay signal before receiving the BIOS confirmation signal, then the BIOS switching circuit causes the CPU to be reset and shadows the secondary BIOS program.

Description

591377 五、發明說明(l) ' -----— 發明之領域 本發明係提供一種電腦系統之基本輸出入系統 inout/output system,BIOS)架構,尤指一種包 Slc 可供使用者選擇之基本輸出入系統程式的電腦系統硬數個 背景說明 目前大部分電腦系統於開機時係利用一中央處理器 (central processor unit,CPU)來執行一儲存在&非揮^生 記憶體(non-volat i le memoey)内之基本輸出入系統程 以完成開機的動作。該基本輸出入系統程式除了提供電 系統内元件之驅動程式及作業系統等之基本功能支&外每 另包含一開機自我測試(power on self-test, POST)程 式及一啟動載入程式(bootstrap program)。該p〇sT程式 係用以確保在該電腦系統内的基本元件可以正確地工作, 在執行完該POST程式後,該BIOS程式接著執行該啟動載入 程式,執行該啟動載入程式之目的在於將該作業系統的監 督程式由磁碟機上載入主記憶體,也就是將啟動碼載入該 主5己憶體以啟動該作業系統,上述的程序就是傳統電腦系 統的開機程序。 近年來,新的電腦系統中都已漸漸將該B I 0S程式轉存 在快閃唯讀記憶體(flash read only memory, flash591377 V. Description of the Invention (l) '------ Field of Invention The present invention provides a basic input / output system (BIOS) architecture of a computer system, especially a package Slc for users to choose. Computer system with basic I / O system programs. Several background descriptions. At present, most computer systems use a central processor unit (CPU) to run a non-volatile memory (non- volat i le memoey) to complete the boot-up action. The basic I / O system program includes, in addition to the basic function support of the driver and operating system of the components in the electrical system, a power on self-test (POST) program and a boot loader program ( bootstrap program). The p0sT program is used to ensure that the basic components in the computer system can work correctly. After executing the POST program, the BIOS program then executes the boot loader. The purpose of running the boot loader is to The supervisory program of the operating system is loaded into the main memory from the disk drive, that is, the startup code is loaded into the main memory to start the operating system. The above-mentioned procedure is the booting procedure of the traditional computer system. In recent years, the new computer system has gradually transferred the B I 0S program to flash read only memory (flash read only memory, flash

第5頁 591377Page 5 591377

ROM)内,如此做的優點在於該快閃唯讀記憶體 B I 0S程式直接再程式化,因而可替使用者省去妒狀 置的麻煩,這種程式更新處理之程序基本上很似二 軟體的更新程序。然而,令使許多使用者感到懊的a = 該BIOS程式更新的程序中,若該BI〇s係被不當的】=疋= 該不當更新之BIOS會導至電腦系統當機,在這種产= 使用者只好乖乖地對該快閃唯讀記憶體置執行硬^置換之 麻煩的處理程序。 ' 為了解決上述的問題,許多研究人員提出了許多解決 方案,譬如&6311^〇〜31^等人在199 2年美國專利序號第 、 53275315虎中所提出的名稱為"Data Processing SystemROM), the advantage of doing so is that the flash read-only memory BI 0S program is directly reprogrammed, so it can save the user the trouble of jealousy. The program update process is basically similar to the two software Update procedure. However, it makes a lot of users feel 懊 a = In the BIOS update process, if the BI0s is improper] = 疋 = The improperly updated BIOS will lead to the computer system crashing. = The user has to obediently perform the troublesome process of performing a hard ^ replacement on the flash read-only memory. '' In order to solve the above problems, many researchers have proposed many solutions, such as & 6311 ^ 〇 ~ 31 ^ et al.

Including Corrupt Flash ROM Recovery丨丨之發明,該發 明被本發明列為參考文獻之一,Bealkowski等人之發明提 供一種包含一第二非揮發性記憶元件的電腦系統,該第二 非揮發性記憶元件可以是一可抹除式可程式唯讀記憶體 (erasable and programmable read only memory, EPROM),用以儲存一輔助備份BIO S程式,當儲存在該電腦 系統中之快閃唯讀記憶體内之主B I 0 S程式發生問題時,該 輔助備份B I 0S程式就會替代該主B I 0S程式被載入到該電腦 系統之CPU内的位址空間,然後執行該輔助備份B I 0S程 式。 但Bealkowski等人之發明並不容許使用者自由地選擇The invention of Including Corrupt Flash ROM Recovery, which is listed as one of the references by the present invention. The invention of Bealkowski et al. Provides a computer system including a second non-volatile memory element. It can be an erasable and programmable read only memory (EPROM), which is used to store an auxiliary backup BIO S program, which is stored in the flash read-only memory of the computer system. When a problem occurs with the main BI 0S program, the auxiliary backup BI 0S program will replace the main BI 0S program loaded into the address space in the CPU of the computer system, and then execute the auxiliary backup BI 0S program. But the invention of Bealkowski et al. Does not allow users to choose freely

五 將 之 、發明說明(3) 該主BIOS程式或兮献丄 用 之 位 CPU内的位址空/備份B I 0S程式被載入該電腦系統 B I 0S程式為優先被載入行開機程序,該發明仍以該主 用這種處理模式,在^ ^程式’事實上並非所有情況均適 發明的簡單硬體制二,情況下,因為Beal kowski等人 元組,所以巧吏:以::””⑽程式中的一個 該主BIOS程式就一定是—二^位兀、、且疋正確的,也不代表 BIOS程^ ^ =王,,以至於可能不完整的該主 行開機π床Ϊ ^ 電腦系統之cpu内的位址空間以執 =果當然仍會導至電腦系罐,而且同 银而要繁瑣的硬體維修程序。 發明概述 可可基核,先 系係理 個個的檢整述 入其處 二數要一完上 出,央 少複所供否決 輸組中 至該其提是解。 本片該 含而定統統以題 基晶被 包,設系系,問 式一可 種統接入入統的 擇及一 一 系直出出系發 選器含 供腦者輸輸入引 可理包 提電用本本出所 之處組 於之使基基輸入 中央片 在式由一他本載 統中晶 的程可有其基式 系一該 目統統少核的程 腦含, 要系系至檢整統 電包器 主入入中以完系 一統理 的出出其用不入 於系處 明輸輸,可入出 用腦央 發本本統碼載輸 之電中 本基基系核免本 明該該 此之之入檢避基 發中援 因擇擇出該可主 本其支 選選輪,此定 ,來 供供本碼因設 統用Fifth, the description of the invention (3) The main BIOS program or the address space in the CPU used by the CPU is empty / backup BI 0S program is loaded into the computer system BI 0S program is loaded into the boot process first, the The invention still uses this main processing mode. In the ^ ^ program, in fact, not all cases are suitable for the simple hard system. In the case, because Beal kowski and others tuples, so clever: ":" " ⑽ One of the main BIOS programs must be-two ^ bit, and it is correct, it does not represent the BIOS program ^ ^ = King, so that the main line may be incomplete. Boot the computer. ^ Computer The implementation of the address space in the CPU of the system will of course still lead to the computer system tank, and it will also require tedious hardware maintenance procedures. Summary of the invention Cocoa core, first of all, review and put in place, the second one should be completed, and the central government should provide a solution to the veto. In this film, the content is determined by the basic crystals, and the system is set up. Questions can be selected to access the system and selected directly out of the system. The selector includes input and input for the brain. Bao Dian uses the source of the book to organize the base input into the central tablet. The formula can be based on a basic system, a system with a few cores, and it must be linked to Checking the main input and output of the electrical packager to complete the unified export of the system does not need to be entered in the department. You can enter and exit the brain to send the code to the basic code. It should be clear that this should be avoided. The central aid due to the election can choose the main election round. This decision is for the use of this code.

第7頁 591377 五、發明說明(4) 器程式化之第一通用輸出入暫存器。本發明之該可選擇式 基本輸出入系統包含一主基本輸出入系統程式,其可被該 中央處理器執行並包含有一確認碼,該確認碼係用來產生 一儲存於該第一通用輸出入暫存器之確認訊號。該該可選 擇式基本輸出入系統另包含一副基本輸出入系統程式,其 係可被該中央處理器執行,一時序電路,其係用來於該電 腦系統開機達一預定時間後產生一延遲訊號,以及一 B I 0S 切換電路,用來依據該確認訊號及該延遲訊號將該主基本 輸出入系統程式或該副基本輸出入系統程式映射至該中央 處理器内之一預定的位址空間,其中當該主基本輸出入系 統程式被映射至該預定的位址空間時,若該B I 0S切換電路 於接收該確認訊號之前接收了該延遲訊號,則該B I 0S切換 電路會使該中央處理器進行一第一重開機動作,並將該副 基本輸出入系統程式映射至該預定的位址空間内,以使該 中央處理器可於進行完該第一重開機動作後執行該副基本 輸出入系統程式。 發明之詳細說明 請參考圖一 A。圖一 A所示為依本發明之一電腦系統1 0 的簡略方塊圖,圖一 A並沒有顯示電腦系統1 0所有的元 件,而只顯示和本發明相關的元件。電腦系統1 0包含一中 央處理器(central processing unit, CPU)20、一 連接至 該CPU 2 0之位址解碼器 3 0、一記憶體 4 0、一晶片組Page 7 591377 V. Description of the invention (4) The first general-purpose input / output register stylized by the device. The optional basic input / output system of the present invention includes a main basic input / output system program which can be executed by the central processing unit and includes a confirmation code, which is used to generate a first universal input / output stored in the first universal input / output system. Acknowledge signal from the register. The optional basic input / output system further includes a pair of basic input / output system programs which can be executed by the central processing unit and a sequential circuit which is used to generate a delay after the computer system is turned on for a predetermined time A signal and a BI 0S switching circuit for mapping the main basic input / output system program or the secondary basic input / output system program to a predetermined address space in the central processing unit according to the confirmation signal and the delayed signal, Wherein, when the main basic input / output system program is mapped to the predetermined address space, if the BI 0S switching circuit receives the delayed signal before receiving the confirmation signal, the BI 0S switching circuit will cause the central processing unit to Perform a first restart operation, and map the auxiliary basic input / output system program to the predetermined address space, so that the central processing unit can execute the auxiliary basic input / output after the first restart operation System program. Detailed description of the invention Please refer to FIG. 1A. FIG. 1A is a schematic block diagram of a computer system 10 according to one embodiment of the present invention. FIG. 1A does not show all the components of the computer system 10, but only the components related to the present invention. The computer system 10 includes a central processing unit (CPU) 20, an address decoder 3 0 connected to the CPU 20, a memory 40, and a chipset.

591377 五、發明說明(5) 60、以及一重置電路(reset circuit) 70。CPU位址線23 將一位址傳送到位址解碼器3 0,位址解碼器3 0即根據該 位址解碼而經由匯流排位址線3 4設定該記憶體4 0之輸出 入位址,然後己憶體4 0就根據匯流排位址線3 4所設定 之記憶體位址將記憶體資料經由資料匯流排42傳送到CPU 20〇 以上所述之系統配置處理模式基本上類似於習知技 術’也就是利用位址解碼器3 0將記憶體4 〇内不同配置區域 的資料映射到CPU 20内之位址空間。特別是在重開機動作 中,當CPU 20從重置電路70接收一重置訊號72時,CPU 20 會試著依據C P U位址線2 3所設定的c P u之起始位址擷取其第 一工作指令,典型的32位元CPU中該起始位址通常是十六 進位OxFFFFFFFO,而在該起位址所儲存的通常是一 CPU跳 躍指令,該跳躍指令將使CPU 20依據CPU位址線23所設定 的一預定CPU位址開始擷取指令之動作,該預定CPU位址係 由電腦系統1 0的製造商所決定,而該CPU跳躍指令係被置 於記憶體40的非揮發性記憶區域中。一般而言,該BIOS程 式包含該CPU跳躍指令,就本發明而言,主BIOS程式40p的 最後指令及副BIOS程式40s的最後指令即是該CPU跳躍指 令。在該預定位址配置之資訊輔助下,位址解碼器3 0可依 據從BIOS切換電路50接收之MH IN IT及BH IN IT線,使得CPU 2 0選擇主B I OS程式4 0 p或選擇副B I OS程式4 0 s執行資料擷取 之動作。當該Μ Η I N I T為高準位而該B Η I N I T為低準位時,位591377 V. Description of the invention (5) 60, and a reset circuit 70. The CPU address line 23 transmits a bit address to the address decoder 30, and the address decoder 30 sets the output address of the memory 40 through the bus address line 34 according to the address decoding. Then memory module 40 will transfer the memory data to CPU via data bus 42 according to the memory address set by bus address line 34. The system configuration processing mode described above is basically similar to the conventional technology 'That is, the address decoder 30 is used to map the data of different configuration areas in the memory 40 to the address space in the CPU 20. Especially in the restart operation, when the CPU 20 receives a reset signal 72 from the reset circuit 70, the CPU 20 will try to retrieve its first address according to the starting address of c P u set by the CPU address line 2 3 A work instruction. In a typical 32-bit CPU, the starting address is usually a hexadecimal OxFFFFFFFO, and the starting address is usually a CPU jump instruction. The jump instruction will cause the CPU 20 to follow the CPU address. A predetermined CPU address set on line 23 starts fetching instructions. The predetermined CPU address is determined by the manufacturer of the computer system 10, and the CPU jump instruction is placed in the non-volatile memory 40. In the memory area. Generally, the BIOS program includes the CPU jump instruction. For the purposes of the present invention, the last instruction of the main BIOS program 40p and the last instruction of the sub BIOS program 40s are the CPU jump instructions. With the aid of the information of the predetermined address configuration, the address decoder 3 0 can make the CPU 2 0 choose the main BI OS program 4 0 p or choose the subordinate according to the MH IN IT and BH IN IT lines received from the BIOS switching circuit 50. The BI OS program 4 0 s performs data acquisition. When the M Η I N I T is at a high level and the B Η I N I T is at a low level, the bit

591377 五、發明說明(6) 址解碼器30將使主BIOS程式4Op映射到該預定CPU内之位址 空間,當該ΜΗ I N I T為低準位而該BH I N I T為高準位時,位址 解碼器30則將使副BIOS程式40s映射到該預定CPU内之位址 空間。譬如,根據該CPU跳躍指令,如果由CPU位址線23所 設定之該預定CPU位址為0x0 0 0F 0 0 0 0,則可設定位址解碼 器3 4使得BIOS程式4 Op或4 Os之起始指令依該二條MH IN IT及 Β Η I N I T線映射至位址0 X 0 0 0 F 0 0 0 0。上述該B I 0 S映射功能之 執行方法基本上類似於習知技術。 片組6 0係用以提供C P U 2 0所需之匯流排邏輯支援, 在許多設計中,位址解碼器3 0可以是晶片組β 0内之副零 件,晶片組60基本上包含複數個通用輸出入(generai purpose input/output,GPI0)暫存器,該複數個 GPI〇暫 存器可被C P U 2 0程式化以傳送在電腦系統1 〇内之相關訊號 值到相關之硬體元件。在本發明之一較佳實施例中,晶片 組6 0包含二個GPI0暫存器:一第一 GPI0暫存器gpi(h,係用 以送出一確認訊號61至BIOS切換電路5〇;及一第二(^1〇暫 存器GP^)2,係用以送出一選擇訊號62至bi〇^換電路 50。: f電路80係用以在電腦系統1〇開機一預定延遲時距 後,傳送一延遲訊號85至BI0S切換 距係只用以確保CPU 20在開機後右^ ^591377 V. Description of the invention (6) The address decoder 30 will cause the main BIOS program 4Op to be mapped to the address space in the predetermined CPU. When the MIMO INIT is low and the BH INIT is high, the address is decoded. The device 30 maps the sub-BIOS program 40s to the address space in the predetermined CPU. For example, according to the CPU jump instruction, if the predetermined CPU address set by the CPU address line 23 is 0x0 0 0F 0 0 0 0, the address decoder 3 4 can be set to make the BIOS program 4 Op or 4 Os. The start instruction is mapped to address 0 X 0 0 0 F 0 0 0 0 according to the two MH IN IT and B Η INIT lines. The execution method of the above B I 0 S mapping function is basically similar to the conventional technique. Chip group 60 is used to provide the bus logic support required by CPU 20. In many designs, address decoder 30 can be a sub-component within chipset β 0, and chipset 60 basically contains a plurality of general purpose A general purpose input / output (GPI0) register. The plurality of GPI0 registers can be programmed by the CPU 20 to transmit the relevant signal values in the computer system 10 to the relevant hardware components. In a preferred embodiment of the present invention, the chipset 60 includes two GPI0 registers: a first GPI0 register gpi (h, which is used to send a confirmation signal 61 to the BIOS switching circuit 50; and A second (^ 10 temporary register GP ^) 2 is used to send a selection signal 62 to bi0 ^ for the circuit 50. The f circuit 80 is used after the computer system 10 is turned on for a predetermined delay time. , Transferring a delay signal 85 to BI0S switching distance is only used to ensure that the CPU 20 is right after power on ^ ^

..,Π βπ ^ ^ 风傻有足夠時間以執行主Β10S 程式40ρ内之確認碼40 5,所以電腦备试,n l ^ 4, 定該預定延遲時距之長短時,之設計人:在t 度及從載入主BI〇S程式40p到執行^考义到CPU 20之處=速 机订確涊碼4 0 5之間的所有.., Π βπ ^ ^ Wind silly has enough time to execute the confirmation code 40 5 in the main β10S program 40ρ, so the computer is ready for testing, nl ^ 4, When setting the length of the predetermined delay time, the designer: at t From the loading of the main BIOS program 40p to the execution of the ^ text to the CPU 20 = speed machine confirmation code 4 0 5

第10頁 591377 五、發明說明(7) C P U 2 0可能接收到的介入執行碼,一般而言,大部分電腦 系統1 0在電腦電源穩定後的延遲時距大約是介於半秒到一 秒之間。圖一 B係顯示時序電路80之概略電路圖,如同一 般習知技術,在開機後,延遲訊號線8 5會在一段由電阻8 2 及電容8 4所決定的延遲時距後會轉為高準位。 B I OS切換電路5 〇係被設計用以在電腦系統丨〇開機後, 將ΜΗ I N I T訊號保持高準位及將M I N I T訊號保持低準位,主 BIOS程式40P因此可以被映射至CPu 20之該預定位址空間 内,然後被CPU 20來執行。時序電路80係被設計在開I機後 該預定延遲時距内將延遲訊號8 5先保持在低準位,然後轉 為高準位,並送出延遲訊號8 5到B I 0S切換電路5 〇。晶片組 6 0係被設計在電腦系統丨〇開機後將確認訊號6丨保持S低準 位’也就是說,使確認訊號6 1的起始狀態是在低準位。當 CPU 2 0執行主BIOS程式4Op時,主BIOS程式4Op内之確認^ 4 0 5會設定晶片組6 0内之G Ρ I 01暫存器,用以將確認訊號 6 1轉為南準位’並將確認訊號6 1送到Β I 〇 S切換電路5 〇。在 電腦系統1 0開機後,如果延遲訊號8 5在確認訊號6 1之前被 Β I 0 S切換電路5 0接收到,則Β I 0 S切換電路5 0會將該μ Η I Ν I Τ 设疋為低準位而將該Β Η I Ν I Τ設定為高準位,並送一重置訊 號57到重置電路70以重置CPU 20。在該ΜΗ IN IT為低準位而 該Β Η I Ν I T為高準位的條件下,位址解碼器3 0將副Β I 0 S程式 40s映射到CPU 20的該預定位址空間内,此後重置線72就 不再作用,而C P U 2 0就開始執行副Β I 0 S程式4 0 s。不過如Page 10 591377 V. Description of the invention (7) The intervention execution code that the CPU 2 0 may receive. Generally speaking, the delay time of most computer systems 10 after the computer power is stable is between half a second and one second. between. Figure 1B is a schematic circuit diagram of a sequential circuit 80. As is common in conventional technology, the delay signal line 85 will turn to Micro Motion after a delay time interval determined by the resistor 8 2 and the capacitor 8 4 after the power is turned on. Bit. The BI OS switching circuit 5 is designed to keep the MU INIT signal high and the MINIT signal low after the computer system is turned on. Therefore, the main BIOS program 40P can be mapped to the predetermined CPu 20 The address space is then executed by the CPU 20. Sequential circuit 80 is designed to keep the delay signal 8 5 at a low level within the predetermined delay time after turning on the I machine, and then turn to a high level, and send a delay signal 85 to the B I 0S switching circuit 5. The chipset 60 is designed to ensure that the confirmation signal 6 keeps the S low level after the computer system is turned on. That is, the initial state of the confirmation signal 61 is at the low level. When CPU 2 0 executes the main BIOS program 4Op, the confirmation in the main BIOS program 4Op ^ 4 0 5 will set the G P I 01 register in chipset 60, which will be used to turn the confirmation signal 6 1 to the south level. 'And send a confirmation signal 61 to the BIOS switching circuit 5O. After the computer system 10 is turned on, if the delay signal 8 5 is received by the B I 0 S switching circuit 50 before the confirmation signal 6 1, the B I 0 S switching circuit 50 will set the μ Η I Ν I Τ setting疋 Set the B 位 I Ν Γ to the high level for the low level, and send a reset signal 57 to the reset circuit 70 to reset the CPU 20. Under the condition that the M Η IN IT is low and the B Η I Ν IT is high, the address decoder 30 maps the sub-B I 0 S program 40s into the predetermined address space of the CPU 20, After that, the reset line 72 is no longer active, and the CPU 2 0 starts executing the sub-B I 0 S program 4 0 s. But as

591377 $、發明說明(8) 果確認訊號6 1在延遲訊號8 5之前就已經被B I 0 S切換電路5 0 所接收,則B I 0S切換電路5 0會忽略延遲訊號8 5之作用,此 時,CPU 2 0就不需執行該重置動作。圖二係顯示BIOS切換 電路5 0的操作程序流程圖1 〇 〇,流程圖1 〇 0包含下列詳細工 作步驟: 步驟1 0 1 :所有該等訊號線均被設為開機時之内定值,也 就是說,延遲訊號線8 5被設定為低準位,GP I 〇 1 暫存器被設定為使確認訊號線6 1為低準位, GP I 02暫存器被設定為使選擇訊號線6 2係選擇主 BIOS程式4 Op之訊號值,然後,將該MHIN IT設定 為高準位而將該BH I N I T設定為低準位,用以使 主BIOS程式4Op可以被映射到CPU 20的預定位址 空間内。 步驟1 0 2 :在經過該預定延遲時距後,時序電路§ 〇會使延 遲訊號線8 5轉為而位準,然後送出延遲訊號8 $ 到B I 0 S切換電路5 0,此時如果工作正常,主 β I 0 S程式4 0 p將有足夠時間執行確認碼4 〇 5以使 碟認訊號線6 1轉為高準位,再將確認訊號6 1送 到Β I 0 S切換電路5 0。不過,如果主β I 〇 §程式4 〇 ρ 係為不完整,則確認碼405將不會被執行,而確 認訊號線6 1會保持在低準位,並且沒有確認訊 號6 1會被送到Β I 0S切換電路5 〇。後續虛 關選擇切換至副BIOS程式40s的條件描述中合有 詳細說明。 义丁曰另591377 $, Description of the invention (8) If the confirmation signal 6 1 has been received by the BI 0 S switching circuit 50 before the delayed signal 8 5, then the BI 0S switching circuit 5 0 will ignore the effect of the delayed signal 85. , CPU 20 does not need to perform the reset action. Figure 2 shows the flowchart of the BIOS switching circuit 50 operating procedure 1 00. The flowchart 1 00 includes the following detailed working steps: Step 1 01: All such signal lines are set to the default values when the power is turned on. That is, the delay signal line 85 is set to the low level, the GP I 〇1 register is set to make the confirmation signal line 61 to the low level, and the GP I 02 register is set to make the selection signal line 6 2 is to select the main BIOS program 4 Op signal value, and then set the MHIN IT to a high level and the BH INIT to a low level, so that the main BIOS program 4Op can be mapped to the predetermined position of the CPU 20 Address space. Step 102: After the predetermined delay time elapses, the sequential circuit § 〇 will turn the delay signal line 85 to the normal level, and then send a delay signal 8 $ to the BI 0 S switching circuit 50, if it works at this time Normally, the main β I 0 S program 4 0 p will have enough time to execute the confirmation code 4 0 5 to turn the disc recognition signal line 6 1 to a high level, and then send the confirmation signal 6 1 to the B I 0 S switching circuit 5 0. However, if the main β I 〇§ Formula 4 〇ρ is incomplete, the confirmation code 405 will not be executed, and the confirmation signal line 6 1 will remain at a low level, and no confirmation signal 6 1 will be sent to Β I 0S switching circuit 5 〇. A detailed description is provided in the description of the conditions for subsequent virtual selection to switch to the sub-BIOS program 40s. Yiding said another

591377 五、發明說明(9) 步驟103:如果確認訊號61在延遲訊號85之前被接收’則 繼續執行步驟1 0 4,否則跳到步驟1 0 7。 步驟1 0 4 ··確認已映射之B I 〇 S程式4 0 p或4 0 s疋元整的’故 應保留在所映射的CPU 20之預定位址空間内’ 而延遲訊號則可被忽略。 步驟1 0 5 :檢查選擇訊號6 2是否有改變’如果有改變則繼 續執行步驟1 0 6,否則退回到步驟1 〇 4。591377 V. Description of the invention (9) Step 103: If it is confirmed that the signal 61 is received before the delay signal 85, then continue to step 104, otherwise skip to step 107. Step 1 0 4 ·· Confirm that the mapped B I 〇 S program 40 p or 40 s unit is 'so it should remain in the mapped address space of the mapped CPU 20' and the delay signal can be ignored. Step 1 0 5: Check whether the selection signal 6 2 is changed. ′ If there is a change, continue to step 10 6, otherwise return to step 104.

步驟1 0 6 :如果選擇訊號6 2係顯示所選擇的是主B I OS程式 4 0ρ,則將ΜΗ I Ν I Τ設定為高準位而將ΒΗ I Ν I Τ設定 為低準位,否則將Μ Η I Ν I Τ設定為低準位而將 Β Η I Ν I Τ設定為高準位。重置訊號線5 7係用以要 求重置電路70去重置CPU 20,該重置動作並不 會影響選擇訊號線6 2之值,被選擇之主B I OS程 式4 0 p或副B I OS程式4 0 s因此就根據選擇訊號線 62之值而被映射至CPU 20之預定位址空間内, 然後在CPU重置訊號線72不再作用下,執行所選 擇的B I OS程式,接著跳回到步驟1 0 4。 步驟1 0 7 :如果確認訊號6 1並沒有在延遲訊號8 5之前被Step 106: If the selected signal 6 2 indicates that the main BI OS program 4 0ρ is selected, then set ΜΗ I Ν I Τ to a high level and set ΒΗ I Ν I Τ to a low level, otherwise M Η I Ν I Τ is set to a low level and B Η I Ν I Τ is set to a high level. The reset signal line 5 7 is used to request the reset circuit 70 to reset the CPU 20. The reset action does not affect the value of the selected signal line 62, the selected main BI OS program 4 0 p or the sub BI OS The program 40 s is therefore mapped into the predetermined address space of the CPU 20 according to the value of the selected signal line 62, and then the selected BI OS program is executed with the CPU reset signal line 72 no longer functioning, and then jumps back Go to step 1 0 4. Step 1 0 7: If it is confirmed that the signal 6 1 is not delayed before the delayed signal 8 5

BIOS切換電路50接收,並且主BIOS程式4Op又不 完整,則忽略選擇線6 2,並將ΜΗ I N I T設定為低 準位而將BH I N I T設定為高準位以將副B I 0S程式 4 〇s映射至CPU 20之預定位址空間内,再利用重 置訊號線57要求重置電路70去重置CPU 20,當 完成副BIOS程式40s的映射處理後,CPU 20即在The BIOS switching circuit 50 receives and the main BIOS program 4Op is incomplete, then ignores the selection line 6 2 and sets MU INIT to a low level and BH INIT to a high level to map the sub BI 0S program 4 〇s To the predetermined address space of the CPU 20, and then use the reset signal line 57 to request the reset circuit 70 to reset the CPU 20. When the mapping process of the sub BIOS program 40s is completed, the CPU 20 is in

第13頁 591377 五、發明說明(ίο) 重置動作後執行副B I 0 S程式4 0 s。 步驟1 0 6之程序係使電腦系統丨〇得以執行主b丨〇s程式 4 Op與副BIOS程式40s間之切換選擇,該選擇可由cpu 20利 用GP I 0 2暫存器對選擇訊號線6 2之設定而完成,該電腦系 統1 0因此致能一可供使用者選擇之B丨〇罐作模式。在步驟 102程序中,時序電路80與BI〇s切換電路5〇的工作係用以 確保當主BIOS程式40p不完整時,電腦系統1〇可以自動地 切換到副BIOS程式40s,因為當主BIOS程式4 Op不完整而又 被映射到CPU 20的預定位址空間時,cpu 20必缺會因如鉦 限迴圈(infinite lGQP)之類的非法指令而t機無日法因工如…、 作,此時,確認碼4 0 5就無法被執行,因此在該預定延遲 時距後’電腦系統1 〇也就會切換到副B丨os程式4 〇 s。 記憶體4 0内同時包含揮發性與非揮發性記憶體,豆中 該非揮發性記憶體可以是快閃唯讀記憶體,係用以儲^主 BIOS程式40ρ、δ彳BIOS程式40s、以及複數個Bi〇s安裝參數 40v ’该等BIOS安裝參數40穩用以儲存機器相關資訊,链 如硬碟參數、日期及時間資料、及匯流排參數等等,並^ 為主B I 0S程式4 0 p與副B I 0S程式4 0 s所共用。不過其也可用 另一種可能的設計所取代,也就是有二組BI0S安^參數, 可分別儲存於一個或複數個快閃唯讀記憶體,其中一組 BIOS安裝參數專為主BIOS程式40p所用,而另一組bios安 裝參數則專為副β I 〇S程式4 0 s所用,因此主b I 0S程式4 0 p與Page 13 591377 V. Description of the Invention (ίο) After the reset action, the sub-B I 0 S program is executed for 4 0 s. The procedure of step 106 is to allow the computer system to execute the main b 丨 〇s program 4 Op and the sub BIOS program 40s. This option can be selected by CPU 20 using the GP I 0 2 register to select the signal line 6 The setting of 2 is completed, so the computer system 10 enables a user-selectable B can mode. In step 102, the work of the timing circuit 80 and the BIOs switching circuit 50 is to ensure that when the main BIOS program 40p is incomplete, the computer system 10 can automatically switch to the sub BIOS program 40s, because when the main BIOS program When the program 4 Op is incomplete and is mapped to the predetermined address space of the CPU 20, the CPU 20 will be lacking due to illegal instructions such as infinite lGQP and the machine will have no day-to-day work. At this time, the confirmation code 4 05 cannot be executed, so after this predetermined delay time, the 'computer system 10' will also switch to the sub-Bos program 4 0s. Memory 40 contains both volatile and non-volatile memory. The non-volatile memory in the bean can be flash read-only memory, which is used to store the main BIOS program 40ρ, δ 彳 BIOS program 40s, and plural A Bi0s installation parameter 40v 'These BIOS installation parameters 40 are used to store machine-related information, such as hard disk parameters, date and time data, and bus parameters, etc., and are the main BI 0S program 4 0 p Shared with the sub BI 0S program 40 s. However, it can also be replaced by another possible design, that is, there are two sets of BI0S security parameters, which can be stored in one or more flash read-only memories, one of which is a set of BIOS installation parameters used by the main BIOS program 40p , And the other set of bios installation parameters is specifically for the secondary β I 〇S program 4 0 s, so the main b I 0S program 4 0 p and

第14頁 591377 五、發明說明(11) 副B I 0S程式4 0 s之執行功能可以完全獨立,所以電腦系統 1 0就可以致能二種不同的機器操作模式。基本上,主B I 0 S 程式4 Ο p與副B I 0S程式4 0 s均具有習知B I 0S程式功能之程式 碼,譬如開機自我測試(ρ 〇 w e r - ο n s e 1 f -1 e s t,P 0 S T )碼、 低階元件支援碼、啟動載入程式碼等等,除此之外,主 B I 0S程式4 Ο ρ還包含確認碼4 0 5、檢核碼4 0 4、及選擇碼4 0 3 等。如前所述,CPU 20執行確認碼405内之指令會將該 GP 101暫存器程式化以送出確認訊號61至bios切換電路 5 〇。總之,執行確認碼4 0 5之最主要的功用在於確認主 B I 0 S程式4 0 ρ可以正常工作,也就是確認電腦系統1 〇不需 切換到副β I 〇S程式4 0 s。至於CPU 2 0執行檢核碼4 0 4内之指 々係用以檢核副β I 〇 S程式4 0 s是否存在且完整,該檢核程 f主要是執行對副BIOS程式40s之核對和(checksum)計 ^ 並比較4核對及數值等與記號數值(signature)404s =否,等。選擇碼40 3内之指令係用以使CPU 20致能使用 ^设定在BIOS安裝參數40 v内之一選擇參數40b,並根據 用f數40b設定GP 102暫存器,所以選擇碼4〇 3的主要功 j提供對主Β I 0S程式4 0 ρ與副Β I 0S程式4 0 s之使用者選擇 絲从ΐ參考圖三。圖三所示為依本發明之該基本輸出入系 m 6人擇碼4 〇 3之第一實施例的操作程序流程圖,該流程 團包含下列詳細工作步驟: 乂驟2 0 1 ·將主β I 〇 s程式4 〇 ρ映射至c ρ υ 2 〇之預定位址空間Page 14 591377 V. Description of the invention (11) The execution function of the auxiliary B I 0S program 40 s can be completely independent, so the computer system 10 can enable two different machine operation modes. Basically, the main BI 0 S program 4 Ο p and the sub BI 0S program 4 0 s have the codes of the conventional BI 0S program functions, such as the power-on self test (ρ 〇wer-ο nse 1 f -1 est, P 0 ST) code, low-level component support code, boot load code, etc. In addition, the main BI 0S program 4 Ο ρ also includes a confirmation code 4 0 5, a check code 4 0 4, and a selection code 4 0 3 etc. As mentioned above, the execution of the instructions in the confirmation code 405 by the CPU 20 will program the GP 101 register to send a confirmation signal 61 to the bios switching circuit 5. In short, the most important function of executing the confirmation code 4 0 5 is to confirm that the main B I 0 S program 4 0 ρ can work normally, that is, to confirm that the computer system 1 〇 does not need to switch to the sub β I 〇S program 4 0 s. As for the instructions in the CPU 2 0 execution check code 4 04, it is used to check the existence and completeness of the secondary β I 0S program 40 s. The check process f is mainly to perform a check and check of the secondary BIOS program 40s. (Checksum) count ^ and compare 4 check and value etc. with the sign value (signature) 404s = No, etc. The instruction in the selection code 40 3 is used to enable the CPU 20 to use ^ to set one of the parameters 40b in the BIOS installation parameter 40 v, and to set the GP 102 register according to the f-number 40b, so the selection code 4〇 The main function of 3 is to provide the user with the choice of the main B I 0S program 4 0 ρ and the sub B I 0S program 4 0 s. Refer to Figure 3. Figure 3 shows a flowchart of the operation procedure of the first embodiment of the basic input / output system m 6 human selection code 4 0 3 according to the present invention. The process group includes the following detailed working steps: Step 2 0 1 β I 〇s formula 4 〇ρ maps to the predetermined address space of c ρ υ 2 〇

591377591377

内,然後CPU 20執行主BIOS程式4Op,此時, BIOS程式4Op會執行許多基本開機程序,嬖如f 我測試程序、安裝程序等等,所有這些程% °自 執行時間皆必需小於時序電路70所設之預正 遲時距。 、 步驟2 0 2: CPU 20執行確認碼4 0 5程式化該gp 1〇1暫存器r 送出確認訊號61到BIOS切換電路5〇,因而=$ 圖二之步驟1 0 7狀況發生。在步驟2 〇 1之程序 中,若主BIOS程式4Op已偵測到内部有錯誤發 生,則最好先不執行本步驟2 〇 2,而以迴圈^ 停留在步驟2 0 1 ’並等待β I 〇 §切換電路5 〇將副 BIOS程式40s映射至CPU 20之預定位址空 步驟203:檢查BIOS安裝參數40 v中的選擇參數4〇b,如果 選擇參數4 0b顯示需要切換到副b丨〇s程式4 〇 s, 則繼續執行步驟2 0 4,否則跳至步驟2 〇 7。 步驟2 04:在需要切換到副BI0S程式4〇3的情況下,確 BIOS程式40s是存在的,並對副M〇s程式4〇田 行核對和計算,用以確保該核對和數值等於圮 號數值404s。特別要注意的是主BI〇s程式4〇σρ必 需被設計以知道在CPU位址空間的那裏可以找到 副BIOS程式40S,而這也是製造商的設計技巧之 — 〇 步驟2 0 5:若果副BI0S程式40s是存在且通過核對和數值檢 核測試,則繼續執行步驟2 〇 6,否則,主B丨〇§程Then, the CPU 20 executes the main BIOS program 4Op. At this time, the BIOS program 4Op will execute many basic startup procedures, such as the f test program, the installation program, etc. All of these processes must be less than the self-executing time 70 The pre-set time delay is set. Step 2 0 2: The CPU 20 executes the confirmation code 4 0 5 to program the gp 1〇1 register r to send a confirmation signal 61 to the BIOS switching circuit 50. Therefore, the situation in step 107 of Figure 2 occurs. In the procedure of step 2 〇1, if the main BIOS program 4Op has detected that an internal error has occurred, it is better not to perform this step 2 〇2 first, but stay at step 2 0 1 'with a circle ^ and wait for β I 〇 § Switching circuit 5 〇 Map the sub-BIOS program 40s to the predetermined address of the CPU 20. Step 203: Check the selection parameter 4 〇b in the BIOS installation parameter 40 v. If the selection parameter 4 0b shows that it needs to switch to the sub-b 〇s program 4 〇s, then continue to step 204, otherwise skip to step 207. Step 2 04: In the case where it is necessary to switch to the auxiliary BIOS program 40, make sure that the BIOS program 40s exists, and check and calculate the auxiliary Mos program 40, to ensure that the checksum value is equal to 圮The number value is 404s. It is important to note that the main BI0s program 4〇σρ must be designed to know that the sub-BIOS program 40S can be found in the CPU address space, and this is also one of the manufacturer's design techniques — 〇 Step 2 0 5: If Result If the secondary BIOS program 40s exists and passes the verification and numerical check tests, then proceed to step 2 06; otherwise, the main B 丨 〇§ process

591377 五、發明說明(13) 式4 Ο p必需繼續被執行,並跳至步驟2 〇 7。591377 V. Description of the invention (13) Equation 4 0 p must continue to be executed and skip to step 207.

步驟2 0 6 :設定G P I 0 2之值使得選擇訊號線6 2之值顯示所要 執行的是副B I 0S程式4 0 s,這將改變選擇訊號6 2 之值,並將啟動B I 0S切換電路5 0之步驟1 〇 5程序 而重置CPU 20,副BIOS程式40s因此被映射至 C P U 2 0之該預定位址空間内,在適當設定該 G P I 0 2暫存器後,就等待該重置程序之執行。 步驟2 0 7 :在主B I 0S程式4 0 p必需繼續被執行情況下,繼續 正常B I 0S#作,直到結束載入作業系統之該啟 動載入程式碼的執行動作。 大部分B I 0S程式皆有軟體安裝特性,也就是可以在該 POjT程序中致能使用者去改變bios安裝值4〇v而設定BIOS 組態’主B I OS程式4 0 p與副B I OS程式4 0 s均有此種設定功 能,也就是提供使用者設定及儲存選擇參數4〇b之功能。 μ ί 另一種執行主BI〇S程式40p與副BI0S程式40s f丄丁 ,、擇碼4 0 3之切換操作程序流程圖,該流程圖 包含下列砰細工作步驟:Step 2 0 6: Set the value of GPI 0 2 so that the value of the selected signal line 6 2 indicates that the sub-BI 0S program 4 0 s is to be executed. This will change the value of the selected signal 6 2 and start the BI 0S switching circuit 5 Step 1 of 0 0 resets CPU 20, the sub-BIOS program 40s is therefore mapped to the predetermined address space of CPU 2 0, and after the GPI 0 2 register is set appropriately, it waits for the reset procedure Its implementation. Step 2 0 7: In the case that the main B I 0S program 4 p must continue to be executed, continue the normal B I 0S # operation until the execution of the startup load code of the operating system is finished. Most BI 0S programs have software installation features, that is, in this POjT program, users can be enabled to change the BIOS installation value 40v and set the BIOS configuration 'main BI OS program 4 0 p and sub BI OS program 4 0 s has this kind of setting function, that is, the function of providing the user to set and store the selection parameter 40b. μ ί Another flowchart of the switching operation procedure for executing the main BI0S program 40p and the sub BI0S program 40s f 丄 ding, and the selection code 4 0 3, the flowchart contains the following detailed work steps:

步驟301 ·將主BIOS程式4Op映射至CPU 2〇之預定位址空間 内’然後CPU 20執行主BI0S程式4〇p,此時,主 f%式4 ο P會執行許多基本開機程序,譬如自 ^,試程序、安裝程序等等,所有這些程序的 订時間必需小於時序電路7 〇所設之預定延遲Step 301 · Map the main BIOS program 4Op to the predetermined address space of the CPU 2 ′, and then the CPU 20 executes the main BIOS program 4〇p. At this time, the main f% formula 4 ο P will perform many basic startup procedures, such as ^, Trial procedures, installation procedures, etc., the order time of all these procedures must be less than the predetermined delay set by the sequential circuit 7 〇

第17頁 591377 五、發明說明(14) 時距。 步驟302 :檢查BIOS安裝參數40 ν中的選擇參數4〇b,如果 選擇參數40b顯示需要切換到副Bi〇S程式4〇s, 則跳至步驟3 0 5,否則繼續執行步驟3 〇 3。 步驟3 Ο 4 步驟3 Ο 5 步驟3 0 3 :在主B I 0 S程式4 0 p需要繼續被執行之情況下, CPU 2 0執行確認碼40 5程式化該Gpi〇1暫存器以 送出碹認訊號61到BIOS切換電路5〇,因而;^ 免圖二之步驟1 〇 7狀況發生。 繼續正常BIOS#作,直到結束載入作業系统之 該啟動載入程式碼的執行動作為止。 在需要切換到副BI0S程式4〇s的情況下,確保副 B I 0S程式4 0 s確實存在,並對副B丨〇雄 7執 算,用以確保該核對和數值等於 吕己號數值4 0 4 s。 步驟30 6:^副BI0S程式40蜣存在且通過由檢核碼4〇4 和數值檢核測試,則繼續執行步 驟否則’主BI0S程式4〇p必需繼續被;^ 仃,並跳回至步驟3 0 3。 步驟307:保持f迴圈等待狀態,直到接收從時序電路80 二达而ifsf ϊ ί 85,此時確認碼40 5不會被執 仃,而BIOS切換電路50會執 副BIOS程式40s將被載入並執行。 也就疋 在上述本發明的各種說明步驟中其並非一成不變Page 17 591377 V. Description of the invention (14) Time interval. Step 302: Check the selection parameter 40b in the BIOS installation parameter 40v. If the selection parameter 40b shows that it is necessary to switch to the secondary BiOS program 40s, skip to step 305, otherwise continue to step 303. Step 3 Ο 4 Step 3 Ο 5 Step 3 0 3: In the case where the main BI 0 S program 4 0 p needs to be continuously executed, the CPU 2 0 executes the confirmation code 40 5 to program the Gpi〇1 register to send out. The acknowledgment signal 61 goes to the BIOS switching circuit 50, so; ^ The situation in step 107 of Figure 2 is avoided. Continue the normal BIOS # operation until the execution of the startup load code execution operation of the operating system is finished. In the case that it is necessary to switch to the subsidiary BI0S program 40s, ensure that the subsidiary BI 0S program 40s does exist, and perform a calculation on the subsidiary B 丨 〇 雄 7 to ensure that the checksum value is equal to the value of Lu Ji number 40. 4 s. Step 30 6: ^ The sub BI0S program 40 蜣 exists and passes the check code 4 04 and the numerical check test, then continue to execute the step otherwise 'The main BI0S program 40〇 must continue to be checked; ^ 仃, and skip to step 3 0 3. Step 307: Keep the loop waiting state until receiving the second sequence from the sequential circuit 80 and ifsf ϊ 85, at this time the confirmation code 40 5 will not be executed, and the BIOS switching circuit 50 will execute the sub-BIOS program 40s and will be loaded. Enter and execute. That is to say, it is not static in the various description steps of the present invention.

591377591377

的,譬如說,在某些特殊的硬體組態下,利用選擇碼4〇3 直接程式化重置電路7 0以執行C P U 2 0的重置動作是可倉t 的,在這種況下,當選擇訊號62改變時,M〇s切換^ ^不會產生重置訊號57,而只是等待選擇碼4〇3去執%亍必 需的重置動作。只要對本發明之該較佳實施例做些許之更 ί用電腦系統10具有可支援更多及允許 ,用者k擇專之功能,在這種設計下,也可進一步地去致 月b BlfS切換電路5〇以重置時序電路8〇使得延遲訊號8&係在 執行元所有重置動作後才被接收’而不是在一^ 被接收,在這種處理模式下,每一 BI0Sa式均提= i = t 確涊碼,而BIOS切換電路50則可在所有31〇5程式之間 ,核確認,直到有一 BI〇s程式被BI〇s切換電路5〇成功 復择Ϊ上Ϊ ί外,本發明也可提供一不完整BI0^式的恢 ί ί 說,如果執行主BI〇S程式40p的檢核碼404發 曰1 程式4 0 _為不完整,則檢核碼4 0 4也可令功能完 整= BI0S程式4〇p覆寫人副隨程式4〇s,此時,f = $二副BI0S程式4〇s係完全相同。不過,如前所述, p你t DT〇^式4〇誤有獨立的一組BIOS安裝參數4〇v,則 種袓能仍t式咐和副BI0^式4〇访相同的程式碼,這 处。有允許使用者提供二種獨立機器安裝狀態的功 =—,古主B 1 0 S程式4 〇 p覆寫入副B I 0 S程式4 0 s的程序並不 一疋採直接拷貝之方式來完成,該覆寫操作也可能要根據For example, under some special hardware configurations, it is possible to directly program the reset circuit 7 0 to perform the reset action of the CPU 2 0 by using the selection code 403. In this case, When the selection signal 62 is changed, the M0s switching ^ ^ will not generate a reset signal 57 but only wait for the selection code 403 to perform the necessary reset action. As long as the preferred embodiment of the present invention is made a little more, the computer system 10 has functions that can support more and allow, and the user k selects special functions. Under this design, it can further cause the moon b BlfS switching The circuit 50 resets the sequence circuit 80 so that the delay signal 8 & is received after all the reset actions of the executor are received, rather than being received in one ^. In this processing mode, each BI0Sa formula is raised = i = t confirmation code, and the BIOS switching circuit 50 can verify between all 3305 programs until a BI0s program is successfully selected by the BI0s switching circuit 50. The invention can also provide an incomplete BI0 ^ style restoration. Ί Say, if the execution code 404 of the main BIOS program 40p is issued 404 1 program 4 0 _ is incomplete, the check code 4 0 4 can also be made Complete function = BI0S program 4〇p overwrites the human assistant program 40s. At this time, f = $ 2 BI0S program 4s is exactly the same. However, as mentioned earlier, you have a separate set of BIOS installation parameters 40v, so you can still use the same code as the sub-BI0 ^ 4. Here. There are functions that allow the user to provide two independent machine installation states = —, the program of the ancient master B 1 0 S program 4 〇p overwrites the sub BI 0 S program 4 0 s is not a direct copy to complete, The overwrite operation may also be based on

第19頁 591377 五、發明說明(16) 許多指標、C P U 2 0跳躍指令、及B I 0 S安裝參數40 v的存取 而決定再定位的覆寫狀況’不過這種覆寫操作係屬於習知 技術的範圍’故不在此贅言。以一簡單實施例而言,假設 有一單純的拷貝覆寫操作被執行,使主B I 〇s程式4 0p覆寫 入副B I OS程式4 0 s的記憶體配置區,則利用一零散記憶體 空間配置表或配置演算法,就可以改變副B I os程式4 0 s的 預定配置空間,而副BIOS程式40S之程式功能也可以和主 BIOS程式40p完全相同。同理,副BIOS程式40s也可以被提 供和主B I 0 S程式4 0 p類似的檢核碼,該檢核碼可用以確認 主B I 0S程式4 0p是完整的,並當任何b I 〇s程式被偵測到不 完整時’該檢核碼也可用以修正該不完整之B I 〇 g程式。 如上所述,相較於習知技術,本發明提供一時序電路 配合一 B I 0S切換電路,用以在複數個B丨〇8程式當中選擇一 適當而完整的BIOS程式映射至一電腦系統之cpu的預定位 址空間内。當一被映射的B I 〇s程式無法正常工作時,則不 會傳送一確認訊號到該B I 〇s切換電路,因此當該b I 0S切換 電路從該時序電路接收到一延遲訊號後,就會映射另一 BIOS程式以取代目前不完整的BI0S程式。另外,利用對非 揮發性§己憶體内之選擇參數設定,使用者可自行選擇所要 映射的BIOS程式,並確保至少有一 βΙ 〇s程式可被成功地載 入以啟動該電腦系統。此外,至少有一 B I 0S程式提供一檢 核碼’該檢核碼可用以檢核其他BI〇s程式是否完整,因此 可避免載入不完整的Bi〇s程式。Page 19 591377 V. Description of the invention (16) Overwrite status of many indicators, CPU 20 jump instruction, and BI 0 S installation parameter 40 v access to determine relocation '. However, this overwrite operation is known The scope of technology is not repeated here. In a simple embodiment, suppose a simple copy overwrite operation is performed, so that the main BI 0s program 4 0p is overwritten into the memory configuration area of the sub BI OS program 4 0 s, and a piece of scattered memory is used. The space allocation table or the allocation algorithm can change the predetermined allocation space of the sub BI os program 40 s, and the function of the sub BIOS program 40S can be exactly the same as the main BIOS program 40p. Similarly, the secondary BIOS program 40s can also be provided with a check code similar to the main BI 0 S program 4 0 p. This check code can be used to confirm that the main BI 0S program 4 0p is complete, and when any b I 〇s When the program is detected as incomplete, the check code can also be used to correct the incomplete BI 0g program. As described above, compared with the conventional technology, the present invention provides a sequential circuit and a BI 0S switching circuit, which are used to select an appropriate and complete BIOS program from a plurality of BIOS programs mapped to the CPU of a computer system. Within the predetermined address space. When a mapped BI 0s program cannot work normally, it will not send a confirmation signal to the BI 0s switching circuit, so when the b I 0S switching circuit receives a delayed signal from the sequential circuit, it will Map another BIOS program to replace the currently incomplete BI0S program. In addition, by using the selection parameters in the non-volatile memory, the user can choose the BIOS program to be mapped and ensure that at least one βIOs program can be successfully loaded to start the computer system. In addition, at least one B I 0S program provides a check code, which can be used to check the integrity of other BI 0s programs, so it is possible to avoid loading incomplete Bi 0s programs.

第20頁 591377 五、發明說明(17) 以上所述僅為本發明之較佳實施例,凡依本發明申請 專利範圍所作之均等變化與修飾,皆應屬本發明專利之涵 蓋範圍。 第21頁 11 591377 圖式簡單說明 圖式之簡單說明: 圖一 A為依本發明之一電腦系統的方塊圖。 圖一 B為時序電路之電路圖。 圖二為依本發明之一基本輸出入系統切換電路的流程 圖。 圖三為依本發明之該基本輸出入系統的B I 0S選擇碼之 第一實施例的流程圖。 圖四為依本發明之該基本輸出入系統的B I 0S選擇碼之 第二實施例的流程圖。 圖式之符號說明 10 電 腦 系 統 20 中 央 處 理 器 (CPU) 23 CPU位址線 30 位 址 解 碼 器 34 匯 流 排 位 址 線 40 言己 憶 體 40b 選 擇 參 數 40p 主 基 本 輸 出 入系統 40v 基 本 出 入 系統安 裝參數 40s 副 基 本 輸 出 入系統 42 資 料 匯 流 排 50 基 本 輸 出 入 系統切 換電路 57 重 置 訊 號 線 60 晶 片 組 61 確 認 訊 號 線 62 選 擇 訊 號 線 70 重 置 電 路 72 重 置 訊 號 線 80 時 序 電 路 82 電 阻Page 20 591377 V. Description of the invention (17) The above description is only a preferred embodiment of the present invention. Any equal changes and modifications made in accordance with the scope of the patent application for the present invention shall fall within the scope of the invention patent. Page 21 11 591377 Brief description of the drawings Brief description of the drawings: Figure 1A is a block diagram of a computer system according to the present invention. Figure 1B is a circuit diagram of a sequential circuit. Fig. 2 is a flowchart of a switching circuit of a basic input / output system according to one of the present invention. Fig. 3 is a flowchart of a first embodiment of the BIOS selection code of the basic input / output system according to the present invention. FIG. 4 is a flowchart of a second embodiment of the BIOS selection code of the basic input / output system according to the present invention. Explanation of Symbols of the Drawings 10 Computer System 20 Central Processing Unit (CPU) 23 CPU Address Line 30 Address Decoder 34 Bus Address Line 40 Speech Memory 40b Selection Parameters 40p Main Basic I / O System 40v Basic I / O System Installation Parameter 40s Sub basic I / O system 42 Data bus 50 Basic I / O system switching circuit 57 Reset signal line 60 Chipset 61 Confirm signal line 62 Select signal line 70 Reset circuit 72 Reset signal line 80 Timing circuit 82 Resistance

第22頁 591377 圖式簡單說明 84 電容 85 延遲訊號線 403 選擇碼 404 檢核碼 404s 記號數值 405 確認碼 1 第23頁Page 22 591377 Simple description of the diagram 84 Capacitor 85 Delay signal line 403 Selection code 404 Check code 404s Mark value 405 Confirmation code 1 page 23

Claims (1)

591377591377 1 · 一種用於一電腦系統之可選擇式基本輸出入系統 (basic i nput/output system, BIOS),該電腦系統包人 有·· ,、、、、匕 β 及 一中央處理器(central processing unit CPU);以 一晶片組(chipset),用來支援該中央處理器, 曰 , Α 曰日 片組包含有一可被該中央處理器程式化之第一通用輪出 (general purpose i npu t/output, GPIO)暫存器; 該可選擇式基本輸出入系統包含有: ° ’ 一主基本輸出入系統程式,其可被該中央處理器 並包含有一確認碼,該確認碼係用來產生一儲存於^ 行 通用輸出入暫存器之確認訊號; 一 一副基本輸出入系統程式,其可被該中央處理器執 行; 一時序電路,用來於該電腦系統開機一預定時 產生一延遲訊號;以及 ^ 一 Β I 0S切換電路,用來依據該確認訊號及該延遲 將該主基本輸出入系統程式或該副基本輸出入系統程^ = 射至該中央處理器之一預定的位址空間内; 壬x 、 其中當該主基本輸出入系統程式被映射至該預定 址空間内時,若該β I 0S切換電路於接收該確認訊號之前= 收了該延遲訊號,則該Β丨0S切換電路會使該中央處理$ 行一第一重開機動作,並將該副基本輸出入系統程式映^ 至該預定的位址空間内,以使該中央處理器可於進行J ^1 · A selectable basic input / output system (BIOS) for a computer system. The computer system includes: · ,,,,, and β and a central processing unit. unit CPU); a chipset (chipset) is used to support the central processing unit, the Α Japanese chipset includes a first general purpose i npu t / output, GPIO) register; The optional basic I / O system includes: ° 'A main basic I / O system program that can be used by the CPU and includes a confirmation code, which is used to generate a Confirmation signals stored in the ^ line universal input / output register; a pair of basic input / output system programs that can be executed by the central processing unit; a sequential circuit for generating a delayed signal when the computer system is turned on for a predetermined time ; And ^ a B I 0S switching circuit, which is used to shoot the main basic input / output system program or the secondary basic input / output system program according to the confirmation signal and the delay ^ = to the central processing unit A predetermined address space; if x, when the main basic input / output system program is mapped into the predetermined address space, if the β I 0S switching circuit before receiving the confirmation signal = receives the delayed signal, Then, the B0S switching circuit will cause the central processing line to perform a first restart operation, and map the pair of basic output into a system program to the predetermined address space, so that the central processing unit can perform J ^ 591377 六、申請專利範圍 第一重開機動作後執行該副基本輸出入系統程式。 2. 如申請專利範圍第1項之可選擇式基本輸出入系統, 其中若該B I 0S切換電路於接收該確認訊號之後才接收了該 延遲訊號,則該B I 0S切換電路不會使該中央處理器進行該 第一重開機動作。 3. 如申請專利範圍第2項之可選擇式基本輸出入系統, 其中該延遲訊號傳送至該B I 0S切換電路之時間點係經適當 地設定,以使該中央處理器可於該延遲訊號傳送至該B I 0S 切換電路之前執行該確認碼。 4. 如申請專利範圍第3項之可選擇式基本輸出入系統, 其中該主基本輸出入系統程式另包含有一檢核碼,該中央 處理器可執行該檢核碼以檢核該副基本輸出入系統程式之 資料的完整性。 5. 如申請專利範圍第4項之可選擇式基本輸出入系統, 其中該主基本輸出入系統程式另包含有一選擇碼,用來執 行下列步驟: 呼叫該檢核碼,以判斷該副基本輸出入系統程式是否存在 並且完整; 如果該副基本輸出入系統程式存在且完整,則在該確認碼 被執行之前有效地暫停該中央處理器的運算動作,以等待591377 6. Scope of patent application The first basic input / output system program is executed after the first restart. 2. If the optional basic input / output system of the first patent application scope, wherein if the BI 0S switching circuit receives the delayed signal after receiving the confirmation signal, the BI 0S switching circuit will not make the central processing The device performs the first restarting action. 3. For example, the optional basic input / output system of the scope of patent application, wherein the time point when the delayed signal is transmitted to the BI 0S switching circuit is appropriately set so that the central processor can transmit the delayed signal. The confirmation code is executed before the BI 0S switching circuit. 4. If the optional basic input / output system of item 3 of the patent application scope, wherein the main basic input / output system program further includes a check code, the central processing unit may execute the check code to check the sub basic output. The integrity of the data entered into the system program. 5. If the optional basic input / output system of item 4 of the patent application scope, the main basic input / output system program also contains a selection code for performing the following steps: call the check code to determine the secondary basic output Whether the input system program exists and is complete; if the pair of basic input / output system programs exists and is complete, before the confirmation code is executed, the calculation operation of the central processor is effectively suspended to wait 第25頁 591377 六、申請專利範圍 由該時序電路所產生的該延遲訊號;以及 如果該副基本輸出入糸統程式不存在或不完整,則使該中 央處理器執行該確認碼。 6. 如申請專利範圍第4項之可選擇式基本輸出入系統, 其中該主基本輸出入系統程式另包含有一選擇碼,用來執 行下列步驟: 呼叫該確認碼; 呼叫該檢核碼,以判斷該副基本輸出入系統程式是否存在 並且完整;以及 如果該副基本輸出入系統程式存在且完整,則使該中央處 理器進行一第二重開機動作,並使該B I 0S切換電路將該副 基本輸出入系統程式映射至該預定的位址空間内,以使該 中央處理器可於進行完該第二重開機動作後執行該副基本 輸出入系統程式。 7. 如申請專利範圍第6項之可選擇式基本輸出入系統, 其中該晶片組另包含有一第二通用輸出入暫存器,用來提 供一選擇訊號予該B I 0S切換電路,該B I 0S切換電路會依據 該選擇訊號於該第二重開機動作進行完後將該主基本輸出 入系統程式或該副基本輸出入系統程式映射至該預定的位 址空間内,而該選擇碼另用來執行下列步驟: 如果該副基本輸出入系統程式存在且完整^則使該第二通 用輸出入暫存器產生該選擇訊號,以選擇該副基本輸出入Page 25 591377 VI. Scope of patent application The delayed signal generated by the sequential circuit; and if the basic input / output system program does not exist or is incomplete, the central processor is caused to execute the confirmation code. 6. If the optional basic input / output system of item 4 of the patent application is applied, the main basic input / output system program further includes a selection code for performing the following steps: call the confirmation code; call the check code to Determine whether the pair of basic input / output system programs exists and is complete; and if the pair of basic input / output system programs exists and is complete, make the central processor perform a second restarting operation and make the BI 0S switching circuit replace the pair The basic input / output system program is mapped into the predetermined address space, so that the central processing unit can execute the secondary basic input / output system program after performing the second reboot operation. 7. If the optional basic input / output system of item 6 of the patent scope is applied, the chipset further includes a second general-purpose input / output register for providing a selection signal to the BI 0S switching circuit and the BI 0S The switching circuit will map the primary basic input / output system program or the secondary basic input / output system program to the predetermined address space after the second restart operation is performed according to the selection signal, and the selection code is further used for Perform the following steps: If the secondary basic input / output system program exists and is complete ^, the second general-purpose input / output register generates the selection signal to select the secondary basic input / output 第26頁 591377 六、申請專利範圍 系統程式。 8. 如申請專利範圍第7項之可選擇式基本輸出入系統, 其另包含有一非揮發性記憶體用來保存一選擇參數,該選 擇參數係可被調整且可被該中央處理器讀取,而該選擇碼 會依據該選擇參數來程式化該第二通用輸出入暫存器。 9. 如申請專利範圍第4項之可選擇式基本輸出入系統, 其中在該副基本輸出入系統程式不完整之情形下,該檢核 碼另可用來使該副基本輸出入系統程式被該主基本輸出入 系統程式所覆寫。Page 26 591377 VI. Patent Application System Program. 8. If the optional basic input / output system of item 7 of the patent application scope further includes a non-volatile memory for storing a selection parameter, the selection parameter can be adjusted and can be read by the central processing unit. , And the selection code will program the second universal input / output register according to the selection parameter. 9. If the optional basic input / output system of item 4 of the scope of patent application is applied, where the secondary basic input / output system program is incomplete, the check code can be used to make the secondary basic input / output system program be Overwritten by the main basic input / output system program. 第27頁Page 27
TW91122917A 2002-03-12 2002-10-03 Dual basic input/output system for a computer cross-reference to related applications TW591377B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US10/097,066 US6892323B2 (en) 1999-05-05 2002-03-12 Dual basic input/output system for a computer

Publications (1)

Publication Number Publication Date
TW591377B true TW591377B (en) 2004-06-11

Family

ID=34061463

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91122917A TW591377B (en) 2002-03-12 2002-10-03 Dual basic input/output system for a computer cross-reference to related applications

Country Status (1)

Country Link
TW (1) TW591377B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496744B2 (en) 2005-07-26 2009-02-24 Mitac Technology Corp. Method for booting computer multimedia system with high speed data storage
EP2104038A2 (en) 2008-03-21 2009-09-23 ASUSTeK Computer Inc. Computer system with dual boot-program area and method of booting the same
CN102419719A (en) * 2010-09-27 2012-04-18 鸿富锦精密工业(深圳)有限公司 Computer system and method for starting same
US8205069B2 (en) 2008-04-14 2012-06-19 Asustek Computer Inc. Computer system with dual BIOS

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496744B2 (en) 2005-07-26 2009-02-24 Mitac Technology Corp. Method for booting computer multimedia system with high speed data storage
EP2104038A2 (en) 2008-03-21 2009-09-23 ASUSTeK Computer Inc. Computer system with dual boot-program area and method of booting the same
US8205069B2 (en) 2008-04-14 2012-06-19 Asustek Computer Inc. Computer system with dual BIOS
CN102419719A (en) * 2010-09-27 2012-04-18 鸿富锦精密工业(深圳)有限公司 Computer system and method for starting same

Similar Documents

Publication Publication Date Title
TWI284284B (en) Selective apparatus for main/backup basic input/output system (BIOS)
US9971642B2 (en) System and method for recovering from a configuration error
TWI335536B (en) Information handling system (ihs) method and for updating a non-volatile memory (nvm) included in an information handling system
TWI382346B (en) Computer system with dual bios protection mechanism and control method of the same
CN102135891B (en) System capable of realizing bootload, bootload control device and method
US20040158702A1 (en) Redundancy architecture of computer system using a plurality of BIOS programs
TW201020779A (en) System for auto-operating backup firmware and method thereof
US7711941B2 (en) Method and apparatus for booting independent operating systems in a multi-processor core integrated circuit
WO2018076792A1 (en) Method and device for disk management in arm device and arm device
US7996667B2 (en) System with at least two BIOS memories for starting the system
JPH05346900A (en) Data processing system and method for operating data processing system
CN111444030B (en) Data storage device and method for avoiding firmware failure
TW584800B (en) Method, computer and peripheral/expansion bus bridge for booting up with debug system
TWI441081B (en) Method for flashing firmware and booting method and electronic apparatus using the method thereof
JP2020030812A (en) Retrieving updated firmware code
CN111949332A (en) Method, system and device for modifying options of basic input and output system
US7257704B2 (en) Method of selectively loading a pre-boot execution extension determined based on an identifier
US10691569B2 (en) System and method for testing a data storage device
TW591377B (en) Dual basic input/output system for a computer cross-reference to related applications
TWI241522B (en) Computer equipment
WO2022199622A1 (en) Method for running startup program of electronic device, and electronic device
US7617417B2 (en) Method for reading input/output port data
TWI755184B (en) Electronic apparatus and boot method thereof
TWI221959B (en) Method and computer system using a debug system to boot up
TWI234708B (en) Management unit and method of flash memory device

Legal Events

Date Code Title Description
MK4A Expiration of patent term of an invention patent