Patent ID: 8024362
Filing Date: 2011-09-20
Classification: G06F

Abstract:
1. A method for erasing and writing desktop management interface (DMI) data under a Linux system in a computer, the computer having a processor and a basic input/output system (BIOS), the BIOS comprising a management information format database (MIFD) which stores the DM! data, the method comprising: creating a new process in the Linux system, the creation by creating a blank process control block (PCB), allocating memory space for the process, initializing the PCB using parameters, and putting the process on a ready queue; constructing a virtual memory environment to run a virtual constructing a stack space of the virtual 8086 mode by selecting a subspace from the designated memory space; searching an enter point to a Plug-and-Play (PnP) calling routine by probing a PnP signature from physical addresses of the BIOS and getting enter point data which is after the PnP signature; setting a permission for inputting/outputting operations of the PnP calling routine; receiving erasing/writing parameters; pushing the erasing/writing parameters into the stack space; constructing a runtime environment for the virtual 8086 mode; setting a signal block to prevent signals from breaking jump to the virtual 8086 mode; setting a virtual 8086 mode flag in a flag register of the processor so as to cause the process to jump to the virtual 8086 mode; executing the PnP calling routine to read, erase, and/or write the DMI data from/to the MIFD according to the erasing/writing parameters; and outputting a result of whether the PnP calling routine has been executed successfully by determining whether a value in an AX register of the processor is zero.