发明名称 Method of obtaining instruction for triggering function
摘要 A method of obtaining a function triggering instruction is provided. The method is adapted to a computer system using a unified extensible firmware interface (UEFI). In the present method, a variable in a read-only memory (ROM) of a basic input/output system (BIOS) is accessed during power-on self test (POST) of the computer system, wherein the variable has a first element, a second element, and a third element. Whether values of the first element and the second element respectively match a variable name and a globally unique identifier (GUID) corresponding to an instruction is determined. If the values of the first element and the second element respectively match the variable name and the GUID corresponding to the instruction, a function triggered by the instruction is executed according to the value of the third element.
申请公布号 US9189351(B2) 申请公布日期 2015.11.17
申请号 US201213526539 申请日期 2012.06.19
申请人 Wistron Corporation 发明人 Chen Nung-Kai;Wu Pei-Chih
分类号 G06F13/24;G06F9/00;G06F9/24;G06F15/177;G06F1/24;G06F11/22 主分类号 G06F13/24
代理机构 Jianq Chyun IP Office 代理人 Jianq Chyun IP Office
主权项 1. A method of obtaining an instruction for triggering a function, adapted to a computer system using a unified extensible firmware interface (UEFI), the method comprising: accessing a variable in a read-only memory (ROM) of a basic input/output system (BIOS) during a power-on self test (POST) of the computer system, wherein the variable comprises a first element, a second element, and a third element; determining whether values of the first element and the second element respectively match a variable name and a globally unique identifier (GUID) corresponding to the instruction; when the values of the first element and the second element respectively match the variable name and the GUID corresponding to the instruction, executing the function triggered by the instruction according to a value of the third element; and respectively setting the values of the first element, the second element, and the third element of the variable through a runtime service of the UEFI before accessing the variable during the POST of the computer system, wherein the third element comprises a plurality of register fields, a correspondence exists between the register fields and a plurality of registers of a central processing unit (CPU) of the computer system, and the step of respectively setting the values of the first element, the second element, and the third element of the variable through the runtime service comprises: when the values of the first element and the second element are set as the variable name and the GUID corresponding to the instruction, obtaining at least one register value required by the function triggered by the instruction, wherein each of the at least one register value is corresponding to one of the registers; and writing each of the at least one register value into one of the register fields according to the correspondence.
地址 New Taipei TW