TWI307838B - - Google Patents

Download PDF

Info

Publication number
TWI307838B
TWI307838B TW95116682A TW95116682A TWI307838B TW I307838 B TWI307838 B TW I307838B TW 95116682 A TW95116682 A TW 95116682A TW 95116682 A TW95116682 A TW 95116682A TW I307838 B TWI307838 B TW I307838B
Authority
TW
Taiwan
Prior art keywords
section
data
variable
ftw
spare
Prior art date
Application number
TW95116682A
Other languages
Chinese (zh)
Other versions
TW200742977A (en
Inventor
Chuang-Yi Qiu
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 TW095116682A priority Critical patent/TW200742977A/en
Publication of TW200742977A publication Critical patent/TW200742977A/en
Application granted granted Critical
Publication of TWI307838B publication Critical patent/TWI307838B/zh

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

1307838 九、發明說明: 【發明所屬之技術領域】 本發明係關於一種唯讀記憶體空間使用效率之方法,特 別是關於一種在通用可延伸式韌體介面/可延伸式細體介 面之架構下的唯讀記憶體空間使用效率之方法。 【先前技術】 由於電腦科技進步相當快速,隨著電腦系統發展之傳統 的基本輸出入系統(Legacy BIOS)也發展到達極限。因 此,為了克服傳統的基本輸出入系統在發展上的瓶頸,英 特爾公司(Intel Corporation)已發展出一種可延伸式韌 體介面(即 EFI,Extensible Firmware Interface)之 '規格,可免除基本輸出入系統的先天限制。而且,此種可 延伸式韌體介面容許使用標準的程式語言工具加入新元 件,具有更佳的擴充性,並且其係以c語言編寫,程式容 易維護、閱讀等優點。然而,英特爾公司所發展的可延伸 籲式韌體介面僅能使用於特定的CPU,有鑑於此,由英特爾 △司與多豕製造CPU的公司共同發展出一通用可延伸式 靭體介面(即 UEFI,Universal Extensible Firmware1307838 IX. Description of the Invention: [Technical Field] The present invention relates to a method for reading memory space efficiency, in particular, a structure of a universal extendable firmware interface/extensible fine interface The method of using read-only memory space efficiency. [Prior Art] Due to the rapid advancement of computer technology, the traditional basic output system (Legacy BIOS) with the development of computer systems has reached its limit. Therefore, in order to overcome the bottleneck in the development of the traditional basic input and output system, Intel Corporation has developed a 'extensible firmware interface' (EFI, Extensible Firmware Interface) specification, which eliminates the basic input and output system. Innate limitations. Moreover, this extensible firmware interface allows for the addition of new components using standard programming language tools, with better scalability, and is written in C, which is easy to maintain and read. However, Intel's extendable interface for firmware can only be used for specific CPUs. In view of this, Intel △ Division and the company that manufactures CPUs have developed a universal extendable firmware interface (ie UEFI, Universal Extensible Firmware

Interface)之規格,以適用於各種不同公司所製造的cpu。 電腦在開啟電源後,CPU(Central Processing Unit, 中央處理單元)會從儲存在唯讀記憶體(例如flashpart) 中之通用可延伸式韌體介面/可延伸式韌體介面讀取所需 要的驅動程式來進行自我測試及輸出入介面搜尋、設定等 工作。 326\專利說明書(補件)\95-05\TF954507 5 1307838 電腦系統應用於通用可延伸式韌體介面/可延伸式韋刃體 介面的架構下時’在開機程序之階段,電腦系統會先執行Interface) is suitable for cpu manufactured by various companies. After the computer is powered on, the CPU (Central Processing Unit) reads the required drivers from the universal extendable firmware interface/extensible firmware interface stored in the read-only memory (such as flashpart). The program is used for self-testing and import and output interface search and setting. 326\patent specification (supplement)\95-05\TF954507 5 1307838 When the computer system is applied to the architecture of the universal extendable firmware interface/extensible WEI blade interface, the computer system will be in the stage of the boot process. carried out

PEI(Pre-EFI Initialization)階段的各個 PEIM(PEIIndividual PEIM (PEI) in the PEI (Pre-EFI Initialization) phase

Module),以對電腦系統較主要的架構如記憶體、匯流排 及系統時脈(Clock)等進行初始化設定,接著,電腦系統 會執行 DXE(Driver Execution Environment)階段的各個 驅動程式(Driver) ’以對電腦系統的其他架構如週邊介面 等進行初始化設定。 圖1為通用可延伸式韌體介面/可延伸式韌體介面的架 構下之唯讀記憶體的配置方式之示意圖。在圖1中,唯讀 記憶體10包含有一 EC (Embedded Controller,嵌入式控 制器)區段 12、一 DxeMain (Driver ExecutionModule), to initialize the computer system's main architecture such as memory, bus and system clock, etc. Then, the computer system will execute the driver in the DXE (Driver Execution Environment) stage. Initialize settings for other architectures of the computer system, such as the peripheral interface. FIG. 1 is a schematic diagram showing the configuration of a read-only memory under the architecture of a universal extendable firmware interface/extensible firmware interface. In Fig. 1, the read-only memory 10 includes an EC (Embedded Controller) section 12, a DxeMain (Driver Execution).

Environment Main)區段 14、一 NVSorage(Non-volatile Storage)區段 16 及一 FvRecovery(Firmware volume Recovery)區段18等,而該NVSorage區段16包含有一 Variable 區段 20、一 Microcode 區段 22、一 Event Log 區段 24、一 FTW Working(FauIt Tolerant Write Working) 區段 26 及一 FTW Spare(Fault Tolerant Write Spare) 區段28等。 在Variable區段20中存放有開機用時所需要的變數資 料’而此等變數資料包含有已刪除不用的變數資料,當 Variable區段20存放的變數資料已滿時,而要新增的變 數資料無法存放於Variable區段20中,則會在FTW Spare 區段28中對Variable區段20中已存滿的變數資料進行 326\專利說明書(補件)\95-〇5\TF954507 6 1307838 重整,以將刪除不用的變數資料予以清除,其重整程序如 圖2為先前技術之重整Variable區段中之變數資料的法 程圖所示。 机 —在圖2中,首先,在variable區段20中判斷新的變數 資料與先前的變數資料是否為相同名稱但不相同内容(步 驟S30) ’當新的變數資料與先前的變數資料為相同名稱 但不相同内容時,則將先前之變數資料設定一舊資料旗標 (步驟S32);當新的變數資料與先前的變數資料不為相= 名稱時或已將先前之變數資料設定有該舊資料旗標之 後,則判斷在Variable區段20中的變數資料是否已存滿 (步驟S34),當在variable區段20中的變數資料已存滿 時則執行將 Variable 區段 20、MicroCode 區段 22、Event L〇g區段24及FTW Working區段26之資料複製至FTW Spare區段28中(步驟S36)。 然後,在FTW Spare區段28中重整Variable區段20 鲁的變數資料,所重整之變數資料係將標記有删除記號之資 料變數予以清除,並將重整後之變數資料、Micr〇c〇de區 段22、Event Log區段24及FTW Working區段26之資料 刀別複製回Variable區段20 Microcode區段22、EventEnvironment Main) section 14, a NVSorage (Non-volatile Storage) section 16 and an FvRecovery (Firmware volume Recovery) section 18, etc., and the NVSorage section 16 includes a Variable section 20, a Microcode section 22, An Event Log section 24, a FTW Working (FauIt Tolerant Write Working) section 26, and an FTW Spare (Fault Tolerant Write Spare) section 28, and the like. In the Variable section 20, the variable data required for booting is stored, and the variable data includes the variable data that has been deleted. When the variable data stored in the Variable section 20 is full, the variable to be added is added. The data cannot be stored in the Variable section 20, and the variable data in the Variable section 20 is 326\patent specification (supplement)\95-〇5\TF954507 6 1307838 in the FTW Spare section 28. In order to clear the unused variable data, the reorganization procedure is as shown in the process diagram of the variable data in the reforming Variable section of the prior art. In FIG. 2, first, it is judged in the variable section 20 whether the new variable data and the previous variable data are the same name but not the same content (step S30) 'When the new variable data is the same as the previous variable data If the name but not the same content, the previous variable data is set to an old data flag (step S32); when the new variable data and the previous variable data are not the phase = name or the previous variable data has been set After the old data flag, it is judged whether the variable data in the Variable section 20 is full (step S34), and when the variable data in the variable section 20 is full, the Variable section 20 and the MicroCode area are executed. The data of the segment 22, the Event L〇g segment 24, and the FTW Working segment 26 are copied into the FTW Spare section 28 (step S36). Then, in the FTW Spare section 28, the variable data of the Variable section is reorganized, and the reconstructed variable data is cleared by the data variable marked with the deletion token, and the reconstructed variable data, Micr〇c The data of the 〇de section 22, the Event Log section 24 and the FTW Working section 26 are copied back to the Variable section 20 Microcode section 22, Event

Log區段24及FTW Working區段26中(步驟S38)。其中, 忒重整程序對熟悉該項技術領域中具有通常知識者根據 通用可延伸式韌體介面/可延伸式韌體介面之規範所規定 之程序即可完成。 接著,清除FTWSpare區段28中所有資料(步驟S4〇), 326傳利說明書(補件)\95-〇5\TF954507 7 1307838 以等待下一次重整Var i ab 1 e區段20中之變數資料的程 序。其次’在Variable區段20中的變數資料未存滿時或 已清除FTW Spare區段28中所有資料之後(即完成重整程 序)’將新增的變數資料存放在Variable區段20中先前 的變數資料之後(步驟S42)。再者,判斷先前的變數資料 是否有設定舊資料旗標(步驟S44),當先前的變數資料沒 有設定該舊資料旗標時,表示新的變數資料與先前的變數 資料沒有相同名稱的情況,則完成上述所有流程;當先前 的變數資料設定有該舊資料旗標時,表示新的變數資料與 先前的變數資料為相同名稱但不相同内容的情況,則將設 定有舊資料旗標之變數資料標記有該刪除記號(步驟 S46)。如此’便完成上述所有流程。 習知之技術在唯讀記憶體中需要一段記憶體空間(即為 FTW Spare區段28)來執行複製variable區段20、 M/croCode 區段 22、Event Log 區段 24 及 FTW Working 區丰又2 6之=貝料,並執行Var丨e區段2 〇中之變數資料 勺重查此目的疋為了在執行重整的程序時,若電腦在重 ^期間突然斷電,則可防止電腦斷電所造成之資料毁損而 了 ^機的情況°然而,在未執行Variable區段20中之 ^數貝料的重整私序時,FTW卸阶區段28的空間是閒 不用的’因此非常浪f唯讀記憶體的空間。 【發明内容】 本發明之目的在於接伹 ^ ^ ^ ^ 、钕供一種在通用可延伸式韌體介面/ "Tk伸式初體介面之牟播 木構下的唯讀記憶體空間使用效率 326傳利說明書(補件)\95-05\TF954507 1307838 之方法’該方法係使唯讀記憶體中之卩丁 執行Variable區段中之料杯_ 1 °° ,在 l仅γ之邊數資料的重 到FTW Spare區段,而未 清况下了利用 Μ 6A # ^ ^ 仃Variable區段中之變數資 片十的窒^滑況下,可由AL ,r ff ^ ,、他的驅動程式或資料利用,如此 可有效地利用唯讀記憶體的空間。 本發明在於提供-種在通用可延伸式㈣介面/可延伸 式韋刃體介面之架構下的唯讀記憶體空間使用效率之方 法’該唯讀記憶體具有—Nm〇rage區段,該加奸 區段具有一 Variable區段、一 Micr〇c〇de區段、一 Log 區段、一 FTW Working 區段及一 FTW Spare 區段,該 FTW Spare區段存放有驅動程式或資料,當該Variabie 區段的資料已存滿而需要重整時,在通用可延伸式韌體介 面/可延伸式韌體介面之架構下的唯讀記憶體空間使用效 率之方法包含下列步驟:首先,將該FTW Spare區段所存 放之驅動程式或資料複製至一儲存裝置,並清除該FTW 鲁Spare區段;接著’將該Variable區段、該Microcode 區段、該Event Log區段及該FTW Working區段之資料複 製至該FTW Spare區段;其次,在該FTW Spare區段中重 整該Variable區段的變數資料,並將重整後的變數資 料、該 Microcode 區段、該 Event Log 區段及該 FTW Working 區段之資料分別複製回該Variable區段、該Microcode 區段、該Event Log區段及該FTW Working區段;然後’ 清除該FTW Spare區段;以及,將該儲存裝置所複製之驅 動程式或資料複製回該FTW Spare區段。 326\專利說明書(補件)汾5-05VTF954507 9 1307838 【貫施方式】 以下參照附圖說明本發明之一較佳實施例,並同時參照 圖1來說明較佳實施例。 圖3為本發明在唯讀記憶體中之一區段用以存放相對 於在FTW Spare中之資料本體的資料之示意圖,圖4為本 發明重整Variable區段中之變數資料的流程圖。圖4與 圖2有相同的私步驟故而在圖4中予以省略,並使用圖 2相同的標號以說明圖4之流程。 •在圖3中’在電腦開機時,未執行var丨ab 1 e區段20中 之變數資料的重整情況下’ FTW Spare區段28具有存放 驅動程式或資料之一資料本體區段5〇,在唯讀記憶體i 〇 中劃分出一 PEI及/或DXE程式區段52,該PEI及/或DXE 程式區段52中有一 New section mark(新區段標記)54、 Size 56、資料本體區段大小58及資料本體區段指標6〇 等資料。 φ 其中,New section mark 54内的資料為PEI及/或DXE 程式區段52的名稱’ Size 56内的資料說明PEI及/或DXE 程式區段5 2之大小’資料本體區段大小5 8内的資料說明 資料本體區段50使用FTW Spare區段28多大的空間大 小’資料本體區段指標60内的資料表示指向FTW Spare 區段2 8之資料本體區段5 0的位址。另外,需要修改分派 (Di spatcher)私式以始能正確地辨認出此新增的New section mark 54 ° 存放在資料本體區段50之驅動程式或資料可以是程式 326\專利說明書(補件)\95-05\TF954507 10 1307838 開毛作為除錯工具之 或可被驅動程^ 式、附加功能之驢動程式 動私式再產生的資料等,如此之應用,叮士 利用唯讀記憶體1G的” _ ^有效地 資料的目的係即使在重整Var乂’子放此專驅動程式或 M r, 董i Variable區段20中之變數眘 =因某些原因而造成此等驅動或貝 在電腦開機後,利用通用可 ^又知仍然可 體介面之P1 , 之伸式韌體,I面/可延伸式韌The Log section 24 and the FTW Working section 26 (step S38). Among them, the 忒 re-routing procedure can be completed by a program familiar to those skilled in the art in accordance with the specifications of the Universal Extensible Firmware Interface/Extensible Firmware Interface. Next, clear all the data in the FTWSpare section 28 (step S4〇), 326 pass the instructions (supplement)\95-〇5\TF954507 7 1307838 to wait for the next re-formation Var i ab 1 e section 20 variable Information procedure. Secondly, after the variable data in the Variable section 20 is not full or after all the data in the FTW Spare section 28 has been cleared (ie, the reforming process is completed), the newly added variable data is stored in the Variable section 20 in the previous section. After the variable data (step S42). Furthermore, it is determined whether the previous variable data has the old data flag set (step S44), and when the previous variable data does not set the old data flag, it indicates that the new variable data does not have the same name as the previous variable data. Then all the above processes are completed; when the previous variable data is set with the old data flag, indicating that the new variable data is the same name as the previous variable data but not the same content, the variable of the old data flag will be set. The data is marked with the deletion mark (step S46). So, all the above processes are completed. The conventional technique requires a memory space (ie, FTW Spare section 28) in the read-only memory to perform the copy variable section 20, the M/croCode section 22, the Event Log section 24, and the FTW Working zone. 6 = bedding, and perform the variable data in the Var丨e section 2 重 re-check this purpose, in order to prevent the computer from being powered off if the computer suddenly powers off during the re-execution process The resulting data is corrupted by the machine. However, when the reforming private sequence of the number of bucks in the Variable section 20 is not executed, the space of the FTW unloading section 28 is idle. fRead the memory space. SUMMARY OF THE INVENTION The object of the present invention is to provide 唯^^^^, 钕 for a read-only memory space efficiency in a general-purpose extendable firmware interface/"Tk stretch-type initial interface. 326 method of transfer (supplement) \95-05\TF954507 1307838 'This method is to make the 唯 in the read-only memory to execute the cup in the Variable section _ 1 ° °, in the side of l only γ The data is heavy in the FTW Spare section, and the driver is using the Μ 6A # ^ ^ 仃Variable section of the variable 10 滑^ under the condition, by AL, r ff ^ , his driver Or use of data, so that the space of the read-only memory can be effectively utilized. The present invention provides a method for using read-only memory space efficiency under the architecture of a universal extendable (four) interface/extensible wiper interface. The read-only memory has a -Nm〇rage segment, the plus The fraud section has a Variable section, a Micr〇c〇de section, a Log section, a FTW Working section, and an FTW Spare section, where the FTW Spare section stores drivers or materials when the Variabie When the data of the segment is full and needs to be reformed, the method of using the read-only memory space under the architecture of the universal extendable firmware interface/extensible firmware interface includes the following steps: First, the FTW The driver or data stored in the Spare section is copied to a storage device and the FTW Lu Spare section is cleared; then the Variable section, the Microcode section, the Event Log section, and the FTW Working section are The data is copied to the FTW Spare section; secondly, the variable data of the Variable section is reformed in the FTW Spare section, and the reformed variable data, the Microcode section, the Event Log section, and the FTW are reconstructed. Work The data of the ing section is copied back to the Variable section, the Microcode section, the Event Log section, and the FTW Working section; then 'clear the FTW Spare section; and the driver copied by the storage device Or copy the information back to the FTW Spare section. 326 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 3 is a schematic diagram of a section of a read-only memory for storing data relative to a data body in an FTW Spare, and FIG. 4 is a flow chart of variable data in a reformed Variable section of the present invention. 4 and FIG. 2 have the same private steps and are omitted in FIG. 4, and the same reference numerals as in FIG. 2 are used to explain the flow of FIG. • In Figure 3, 'when the computer is turned on, the var丨ab 1 e is not executed in the reorganization of the variable data in the section 20'. The FTW Spare section 28 has a data body section 5 for storing drivers or data. A PEI and/or DXE program section 52 is defined in the read-only memory i, and the PEI and/or DXE program section 52 has a New section mark 54, a size 56, and a data body area. Segment size 58 and data body segment indicator 6〇 and other data. φ where the data in the New section mark 54 is the name of the PEI and/or DXE program section 52. The data in the Size 56 indicates the size of the PEI and/or DXE program section 5 2 'data body section size within 5 8 The data description data body section 50 uses the data size of the FTW Spare section 28's data onto the data body section indicator 60 to indicate the address of the data body section 50 of the FTW Spare section 28. In addition, the Di spatcher private version needs to be modified to correctly recognize the newly added New section mark 54 °. The driver or data stored in the data body section 50 can be the program 326\patent specification (supplement). \95-05\TF954507 10 1307838 The hair is used as a debugging tool or can be driven by the driver and the function of the additional function. For such application, the gentleman uses the read-only memory 1G. The purpose of the "_^ effective data is that even in the reforming of the Var乂' sub-distribution of this special driver or Mr, the variable in the Dong i Variable section 20 is cautious = for some reason, such drive or shell After the computer is turned on, use the general-purpose P1, the extended firmware, and the I-face/extensible toughness.

s as 1具將此等驅動程式或資料在寫回FTW 在28中’而不會造成電腦無法開機的情況。 在電腦開機時,若要勃4 v . 料的重整情況下,如圖4;;ar:;b=2"之變數資 20 Φ jk,i ^ ^ 斤 首先,在Variable區段 =斷新的變數資料與先前的變數資料是否為相同名 同内容(步驟S3。),當新的變數資料 同内容時,則將先前之變數資: 變數資料n s32); #新的變數資料與先前的 ;為相同名稱時或已將先前之變 該舊資料旗標之後,則判斷/v · Μ数貪抖叹疋有 資料Θ不”廿 斷在 e區段20中的變數 ==已存滿(步驟S34),當在Variable區段20中的 太麻貝科已存滿時,則執行將FTW Spare區段28中資料 本組區段50所存放之驅動程式或資料複製至一儲存裝置 未緣示並清除FTWSpare區段28中所有的資料(步驟 裡蔡咕其中’該儲存裝置可以是一隨機存取記憶體、一非 务性記憶體或一硬碟等,若爲了避免電腦突然斷電,可 導驅動程式或資料複製至非揮發性記憶體或硬碟。 二:後,將 Variable 區段 20、Microcode 區段 22、Event 32说專利說明書(補件)\95-05\TF954507 „ 1307838s as 1 has such drivers or data written back to the FTW at 28' without causing the computer to fail to boot. When the computer is turned on, if you want to rebuild the material, as shown in Figure 4;;ar:;b=2" variable 20 Φ jk,i ^ ^ 斤 first, in the Variable section = broken new Whether the variable data and the previous variable data are the same name (step S3.), when the new variable data is the same as the content, the previous variable is: variable data n s32); # new variable data and previous When the same name is used or the previous data flag has been changed, then judge /v · 贪 贪 贪 疋 疋 疋 疋 廿 廿 廿 廿 = = = = = = = = = = = = = = = = Step S34), when the terapox in the variable section 20 is full, the driver or the data stored in the data section 50 of the FTW Spare section 28 is copied to a storage device. Display and clear all the information in the FTWSpare section 28 (in the step, Cai Wei, 'the storage device can be a random access memory, a non-volatile memory or a hard disk, etc., in order to avoid sudden power failure of the computer, The driver or data can be copied to non-volatile memory or hard disk. Second: After the Variable area 20, Microcode section 22, Event 32 said patent specification (complement member) \ 95-05 \ TF954507 "1307838

Log區段24及FTW Working區段26之資料複製至FTf S文P^e區段28中(步驟S36)。在FTW Spare區段28中重 整Varlable區段2〇的變數資料,所重整之變數資料係將 $記有刪除記號之資料變數予以清除’並將重整後之變數The data of the Log section 24 and the FTW Working section 26 is copied into the FTf S text section 26 (step S36). In the FTW Spare section 28, the variable data of the Varlable section is reorganized, and the variable data of the reorganization is cleared by the data variable with the de-marked mark' and the variable after the reformation

貝料、Mlcr〇C〇de 區段 22、Event Log 區段 24 及 FTWShell material, Mlcr〇C〇de section 22, Event Log section 24 and FTW

Working區段26之資料分別複製回Variabie區段The working section 26 data is copied back to the Variabie section.

Microcode 區段 22、Event Log 區段 24 及 FTW forking 區段26中(步驟S38)。其中,該重整程序對熟悉該項技 術領域中具有通常知識者根據通用可延伸式韋刃體介面/可 延伸式韌體介面之規範所規定之程序即可完成。 接著’月除FTW Spare區段28中所有資料(步驟 在將儲存裝置所複製之驅動程式或資料複製回FTW 區段Μ之資料本體區段5 〇的位置中(步驟s 7 2),如此係 避免資料本體區段指標6〇指向資料本體區段5〇的位址有 决。其次,在Variable區段20中的變數資料未存滿時或 鲁已儲存裝置所複製之驅動程式或資料複製回FTW s阳re區 段28之資料本體區段50的位置中,則將新增的變數資料 存放在Var i ab 1 e區段2 0中先前的變數資料之後(步 以2^再者,判斷先前的變數資料是否有設定舊資料旗標 (步驟S44),當先前的變數資料沒有設定該舊資料旗標τ 時,表示新的變數資料與先前的變數資料沒有相同名稱的 情況,則完成上述所有流程;當先前的變數資料設定有該 舊資料旗標時,表示新的變數資料與先前的變數資料為相 同名稱但不相同内容的情況,則將設定有舊資料旗標之變 326傳利說明書(補件)\95-05\TF954507 ] 2 1307838 。如此’便完成上述 數資料標記有該刪除記號(步驟S46) 所有流程。 本發明的優點係使唯讀記憶體中之FTW s_區段,在 執仃Variable區段中之變數資料的重整情況下,可利用 到FTW Spare區段,而未執S Var i ab 1 e區段中之變數資 料的重整情況下’可由其他的驅動程式或資料利用,如此 將有效增加原始程式區&的空間,以放進更多的驅動程式 或賣料,而可有效地利用唯讀記憶體的空間。 雖然本發明已參照較佳具體例及舉例性附圖敘述如 上,惟其應不被視為係限制性者。熟悉本技藝者對其形態 及具體例之内容做各種修改、省略及變化,均不離開本發 明之範圍。 ' 【圖式簡單說明】 圖1為通用可延伸式韌體介面/可延伸式韌體介面的架 構下之唯讀記憶體的配置方式之示意圖; 圖2為先前技術之重整var i ab 1 e區段中之變數資料的 流程圖; 圖3為本發明在唯讀記憶體中之一區段用以存放相對於 在FTW Spare中之資料本體的資料之示意圖;以及 圖4為本發明重整Variable區段中之變數資料的流程 圖。 【主要元件符號說明】 1 〇 唯讀記憶體 12 EC區段 326\專利說明書^甫件)\95_〇5yrF9545〇7 13 1307838 14 DxeMain 區段 16 NVStorage 區段 18 FvRecovery 區段 20 Variable 區段 22 MicroCode 區段 24 Event Log 區段 26 FTW Working 區段 28 FTW Spare 區段 50 資料本體區段 52 PEI及/或DXE程式區段 54 New section mark 56 Size 58 資料本體區段大小 60 資料本體區段指標 326\專利說明書(補件)\95-05\TF954507 14The Microcode section 22, the Event Log section 24, and the FTW forking section 26 (step S38). Among other things, the reforming procedure can be accomplished by procedures familiar to those of ordinary skill in the art in accordance with the specifications of the Universal Extensible Weaver Interface/Extensible Firmware Interface. Then, in addition to all the data in the FTW Spare section 28 (the steps are to copy the driver or data copied from the storage device back to the location of the data body section 5 of the FTW section (step s 7 2), Avoid the data body segment index 6〇 pointing to the address of the data body segment 5〇. Secondly, when the variable data in the Variable segment 20 is not full or the driver or data copied by the Lu storage device is copied back In the position of the data body section 50 of the FTW s yang re section 28, the newly added variable data is stored in the Var i ab 1 e section 20 in the previous variable data (steps are determined by 2^ again) Whether the previous variable data has the old data flag set (step S44), and when the previous variable data does not set the old data flag τ, indicating that the new variable data does not have the same name as the previous variable data, the above is completed. All processes; when the previous variable data is set with the old data flag, indicating that the new variable data and the previous variable data are the same name but not the same content, the old data flag will be set 326 Passing the instruction manual (supplement)\95-05\TF954507] 2 1307838. Thus, the above number data is marked with the deletion mark (step S46). All the advantages of the present invention are the FTW s in the read-only memory. _ section, in the case of the reorganization of the variable data in the executable section, the FTW Spare section can be utilized, and the reorganization of the variable data in the S Var i ab 1 e section is not available Other drivers or data utilization, which will effectively increase the space of the original program area & to put more drivers or sell materials, and effectively use the space of the read-only memory. Although the present invention has been referred to The present invention is not limited by the scope of the present invention. The present invention is not limited to the scope of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram showing the configuration of a read-only memory under the architecture of a universal extendable firmware interface/extensible firmware interface; FIG. 2 is a prior art reforming var i ab 1 Variables in the e section FIG. 3 is a schematic diagram of a section of a read-only memory for storing data relative to a data body in an FTW Spare; and FIG. 4 is in the reforming variable section of the present invention. Flow chart of variable data. [Main component symbol description] 1 〇 Read only memory 12 EC section 326\Patent specification^甫)\95_〇5yrF9545〇7 13 1307838 14 DxeMain Section 16 NVStorage Section 18 FvRecovery Zone Segment 20 Variable Section 22 MicroCode Section 24 Event Log Section 26 FTW Working Section 28 FTW Spare Section 50 Data Body Section 52 PEI and/or DXE Program Section 54 New section mark 56 Size 58 Data Ontology Section Size 60 data ontology segment indicator 326\patent specification (supplement)\95-05\TF954507 14

Claims (1)

1307838 十、申請專利範圍: 1. 一種在通用可延伸式韌體介面/可延伸式韌體介面之 条構下的唯讀記憶體空間使用效率之方法,該唯讀記憶體 具有一 ’Storage區段,該NVSt〇rage區段具有一 Vanable 區段、一 Micr〇c〇de 區段、一 Event L〇g 區段、 一 FTW Working 區段及一 Spare 區段,該 FTW Spare 區段存放有驅動程式或資料,當該VariaMe區段的資料 已存滿而需要重整時,在通用可延伸式韌體介面/可延伸 式韌體介面之架構下的唯讀記憶體空間使用方法包含下 列步驟: 將該FTW Spare區段所存放之驅動程式或資料複製至一 儲存裝置’並清除該FTW Spare區段; 將 5亥 Variable 區段、該 Microcode 區段、該 Event Log 區段及該FTW Working區段之資料複製至該FTW Spare區 段; 在該FTW Spare區段中重整該Variable區段的變數資 料’並將重整後的變數資料、該Microcode區段 '該Event Log區段及該FTW Working區段之資料分別複製回該 Variable 區段、該 Microcode 區段、該 Event Log 區段 及該FTW Working區段; 清除該FTW Spare區段;以及 將該儲存裝置所複製之驅動程式或資料複製回該FTW Spare區段。 2.如申請專利範圍第1項之在通用可延伸式韌體介面/ 326傳利說明書(補件)\95-05\TF954507 15 1307838 2職體介面之架構下的唯讀記憶 之方法,更包含下列步驟: 二間使用效率 在該Variable區段中判斷新的變數次 資料是否為相同名稱但不相同内容;貝料與先前的變象 當新的變數資料與先前的變數資 同内容時,則將先前之變數資料設定同名稱但不相 當新的變數資料與先前的變數ic旗標; 已將先前之變數資料設定有該舊 二目同名稱時或 Variable區段中的變數資料是否已存滿不,則判斷在該 當在該Variable區段中的變數資料已在 ,該m Spare區段所存放之驅動程式料\則執行 存裝置並清除該FTW Spare區段之步驟'、4複1至該销 當在該Variable區段中的變數資 ’ 儲存裝置所複製之驅動程式複製回該存滿時或已將該 新增的變數資料及資料存放在 pare區段’將 變數資料之後; 在錢ri_e區段中先前的 判斷先前的變數資料是否有設 當先前的變數資料設定有該舊資二::旗標;以及 该售貧料旗標之變數資料標記有-删除記號。有 3·如中請專利範圍第!項之在通用可延伸式物 :::式_介面之架構下的唯讀記憶體空間使用效率 =’其中,該館存裝置係為—隨機存取記憶吏體用二 揮杳性記憶體及一硬碟等其令之一者。 隹 326傳利說明書(補件)\95-05\TF954507 (如申請專利範圍第〗項之在通用可延伸式㈣介面/ 16 1307838 延伸式初體介面之架谨下的必> 之方法,之木構下的唯魏憶體空間使用 ::其中,驅動程式或資料係為程 + 之驅動程式、附加功能之驅動程式;= 再產生的資料等之至少一者。 汉%動%式 5.如申請專利範圍第丨項之在通料延伸仏體 可延伸式_介面之架構下的唯讀記憶體空間使用效率 之方=,其中,在該FTWSpare區段存放驅動程式^資料 之一貧料本體區段中,在該唯讀記憶體中劃分_ ρΕι及/ 或DXE程式區段,該pEI及/或DXE程式區段中有一新區 段標記、該區段之大小、該資料本體區段之大小及指向該 資料本體區段之一指標等資料。1307838 X. Patent Application Range: 1. A method for the read-only memory space usage efficiency under the general extension of the firmware interface/extensible firmware interface, the read-only memory has a 'Storage area Segment, the NVSt〇rage section has a Vanable section, a Micr〇c〇de section, an Event L〇g section, an FTW Working section, and a Spare section, and the FTW Spare section stores the driver Program or data, when the data of the VariaMe section is full and needs to be reformed, the read-only memory space usage method under the architecture of the universal extendable firmware interface/extensible firmware interface includes the following steps: Copy the driver or data stored in the FTW Spare section to a storage device' and clear the FTW Spare section; the 5H Recreation section, the Microcode section, the Event Log section, and the FTW Working section The data is copied to the FTW Spare section; the variable data of the Variable section is reorganized in the FTW Spare section and the reconstructed variable data, the Microcode section 'the Event Log section and the FTW The working section data is copied back to the Variable section, the Microcode section, the Event Log section, and the FTW Working section; the FTW Spare section is cleared; and the driver or data copied by the storage device is copied. Go back to the FTW Spare section. 2. For example, in the scope of the patent application, the method of read-only memory under the framework of the universal extendable firmware interface / 326 patent specification (supplement) \95-05\TF954507 15 1307838 2 The following steps are included: The two use efficiency determines whether the new variable data is the same name but not the same content in the Variable section; the material and the previous variable are when the new variable data is the same as the previous variable. Then, the previous variable data is set to the same name but not quite new variable data and the previous variable ic flag; if the previous variable data has been set with the same name of the old two or the variable data in the Variable section has been saved If it is not full, it is judged that the variable data in the Variable section is already present, and the driver program stored in the m Spare section executes the storage device and clears the step of the FTW Spare section. When the driver copied by the variable storage device in the Variable section is copied back to the full storage or the newly added variable data and data are stored in the pare section, the variable data is stored; In the money ri_e section, it is previously determined whether the previous variable data is set. When the previous variable data is set with the old asset 2::flag; and the variable information of the sales pitch flag is marked with a delete symbol. There are 3 · such as the scope of patents! The general-purpose extendable object:::----the interface-only architecture of read-only memory space efficiency = 'where the library device is - random access memory memory with two-swept memory and A hard disk is one of its orders.隹 326 传利利(补件)\95-05\TF954507 (such as the application for patent scope) in the general extension (4) interface / 16 1307838 extended initial interface interface must be > The use of Wei Weiyi space under the wood structure:: where the driver or data is the driver of the program +, the driver of the additional function; = at least one of the regenerated data, etc. The scope of the read-only memory space usage efficiency under the framework of the extension of the _ _ _ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = In the section, the _ρΕι and/or DXE program section is divided in the read-only memory, and the pEI and/or DXE program section has a new section mark, the size of the section, and the size of the data body section. And pointing to one of the indicators of the data body section and other information. 326\專利說明書(補件)\95-05\TF954507 17326\ patent specification (supplement)\95-05\TF954507 17
TW095116682A 2006-05-11 2006-05-11 Read-only memory space usage efficiency method under a UEFI/EFI frame TW200742977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW095116682A TW200742977A (en) 2006-05-11 2006-05-11 Read-only memory space usage efficiency method under a UEFI/EFI frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW095116682A TW200742977A (en) 2006-05-11 2006-05-11 Read-only memory space usage efficiency method under a UEFI/EFI frame

Publications (2)

Publication Number Publication Date
TW200742977A TW200742977A (en) 2007-11-16
TWI307838B true TWI307838B (en) 2009-03-21

Family

ID=45071679

Family Applications (1)

Application Number Title Priority Date Filing Date
TW095116682A TW200742977A (en) 2006-05-11 2006-05-11 Read-only memory space usage efficiency method under a UEFI/EFI frame

Country Status (1)

Country Link
TW (1) TW200742977A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032623A (en) * 2018-07-27 2018-12-18 郑州云海信息技术有限公司 A kind of initial method and BIOS mirror image of BIOS mirror image

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150111937A (en) 2013-01-30 2015-10-06 휴렛-팩커드 디벨롭먼트 컴퍼니, 엘.피. Non-volatile memory write mechanism
WO2016115737A1 (en) 2015-01-23 2016-07-28 Hewlett-Packard Development Company, L.P. Aligned variable reclamation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032623A (en) * 2018-07-27 2018-12-18 郑州云海信息技术有限公司 A kind of initial method and BIOS mirror image of BIOS mirror image

Also Published As

Publication number Publication date
TW200742977A (en) 2007-11-16

Similar Documents

Publication Publication Date Title
JP5783809B2 (en) Information processing apparatus, activation method, and program
TWI501253B (en) Handling errors during device bootup from a non-volatile memory
JP5702348B2 (en) Handling abnormal shutdown of systems with non-volatile memory
KR101110490B1 (en) Information processing device, processor and memory management method
JP5860543B2 (en) Boot data loading
TWI397007B (en) System support storage and computer system
JP2013137771A (en) Mount-time reconciliation of data availability
JP2008530683A (en) NAND flash memory system architecture
CN110929261B (en) Memory system and operating method thereof
KR20200121372A (en) Hybrid memory system
TW201020922A (en) Computer system and booting method of same
WO2013088818A1 (en) Virtual computer system, virtualization mechanism, and data management method
JP2010500682A (en) Flash memory access circuit
JP2013225208A (en) Information processing apparatus, information processing method and program
TWI307838B (en)
KR102443593B1 (en) hybrid memory system
US8291206B2 (en) Method for booting computer system
US9223697B2 (en) Computer reprogramming method, data storage medium and motor vehicle computer
US20100153619A1 (en) Data processing and addressing methods for use in an electronic apparatus
US8499142B1 (en) UEFI boot loader for loading non-UEFI compliant operating systems
JP5035227B2 (en) Information processing apparatus, program start control method, and start control program
US9361124B2 (en) Computer system and startup method
JP5970867B2 (en) Information processing apparatus, image forming apparatus, and program
JP2012068797A (en) Start-up acceleration method, information processing apparatus and program
WO2013136457A1 (en) Virtual computer system, information storage processing program and information storage processing method