# US 8,578,368 B2 · Injecting a file from the bios into an operating system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,368 B2
- Document ID: US8578368B2
- Status: Granted
- Kind: B2
- Application number: 12/774,553
- Filed: 2010-05-05
- Published: 2011-11-10
- Granted: 2013-11-05
- Earliest claimed: 2010-05-05
- Assignees: Insyde Software Corp.
- Applicants: Prasanth Pulla; Amitrajit Banerjee; Supriyo Roychoudhury; Pranjal Goswami
- Inventors: Prasanth Pulla; Amitrajit Banerjee; Supriyo Roychoudhury; Pranjal Goswami
- Web page: https://patentgrep.com/patent/US8578368B2

## CPC

- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F 8/60: Software deployment
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for the BIOS to install a file into the runtime environment of an operating system of a computer. A system management interrupt (SMI) handler, resident within the BIOS, receives a first request. The SMI handler identifies an address in memory at which a first file is to be stored, and determines how to access a function provided by a kernel of the operating system. The SMI handler calls the function using the address as an argument to create a thread in the runtime environment of the operating system. Upon the SMI handler receiving a request from the thread, the SMI handler stores a second file in the memory of the runtime environment of the operating system. The thread may, but need not, store the second file to a file system provided by the operating system. In this way, the BIOS need not include a driver to the file system.

## Claims

### Claim 1

A machine-readable storage medium storing one or more sequences of instructions for installing a file on a computer, which when executed, cause:
upon a system management interrupt (SMI) handler, resident within a BIOS, receiving a first request, the SMI handler (a) identifying an address in memory at which a first file is to be stored, and (b) determining how to access a function provided by a kernel of an operating system resident on the computer;
the SMI handler calling the function using the address as an argument thereof, wherein execution of the function creates a thread in a runtime environment of the operating system; and
upon the SMI handler receiving a second request from the thread, the SMI handler storing a second file in memory of the runtime environment of the operating system,
wherein the first request is issued by an advanced configuration and power interface (ACPI) routine in the operating system during the boot process of the computer.

### Claim 2 (depends on 1)

The machine-readable storage medium of claim 1, wherein the second file is stored in memory of the runtime environment of the operation system without writing the second file to a file system provided by the operating system.

### Claim 3 (depends on 1)

The machine-readable storage medium of claim 1, wherein the thread is configured to store the second file, or a portion thereof, to a file system provided by the operating system.

### Claim 4 (depends on 1)

The machine-readable storage medium of claim 1, wherein the thread, once created, enters a sleep mode until the computer has finished the boot process.

### Claim 5 (depends on 1)

The machine-readable storage medium of claim 1, wherein the SMI handler returns control to an advanced configuration and power interface (ACPI) routine after creating the thread.

### Claim 6 (depends on 1)

The machine-readable storage medium of claim 1, wherein identifying the address in memory comprises determining an initial location in memory to begin scanning for available space based on the return address of the entity that issued the first request.

### Claim 7 (depends on 1)

The machine-readable storage medium of claim 1, wherein determining how to access the function comprises:
reading a machine specific register (MSR) register to determine an address of the interrupt gate keeper of the kernel; and
using the address of the interrupt gate keeper to locate the export table of the kernel.

### Claim 8 (depends on 1)

The machine-readable storage medium of claim 1, wherein the second request is a software-generated system management interrupt.

### Claim 9 (depends on 1)

The machine-readable storage medium of claim 1, wherein the second file is an executable file, which when executed, performs functionality pertaining to recovery of resources of the computer, asset management of the computer, or providing customized content based on use of the computer.

### Claim 10

A method for installing a file on a computer, comprising:
upon a system management interrupt (SMI) handler, resident within a BIOS, receiving a first request, the SMI handler (a) identifying an address in memory at which a first file is to be stored, and (b) determining how to access a function provided by a kernel of an operating system resident on the computer;
the SMI handler calling the function using the address as an argument thereof, wherein execution of the function creates a thread in a runtime environment of the operating system; and
upon the SMI handler receiving a second request from the thread, the SMI handler storing a second file in memory of the runtime environment of the operating system,
wherein the first request is issued by an advanced configuration and power interface (ACPI) routine in the operating system during the boot process of the computer.

### Claim 11 (depends on 10)

The method of claim 10, wherein the second file is stored in memory of the runtime environment of the operation system without writing the second file to a file system provided by the operating system.

### Claim 12 (depends on 10)

The method of claim 10, wherein the thread is configured to store the second file, or a portion thereof, to a file system provided by the operating system.

### Claim 13 (depends on 10)

The method of claim 10, wherein the thread, once created, enters a sleep mode until the computer has finished the boot process.

### Claim 14 (depends on 10)

The method of claim 10, wherein the SMI handler returns control to an advanced configuration and power interface (ACPI) routine after creating the thread.

### Claim 15 (depends on 10)

The method of claim 10, wherein identifying the address in memory comprises determining an initial location in memory to begin scanning for available space based on the return address of the entity that issued the first request.

### Claim 16 (depends on 10)

The method of claim 10, wherein determining how to access the function comprises:
reading a machine specific register (MSR) register to determine an address of the interrupt gate keeper of the kernel; and
using the address of the interrupt gate keeper to locate the export table of the kernel.

### Claim 17 (depends on 10)

The method of claim 10, wherein the second request is a software-generated system management interrupt.

### Claim 18 (depends on 10)

The method of claim 10, wherein the second file is an executable file, which when executed, performs functionality pertaining to recovery of resources of the computer, asset management of the computer, or providing customized content based on use of the computer.
