IP Library Granted Patent US 8,495,349
Granted Patent B2
US 8,495,349 · App. 12/248,434 · Granted Jul 23, 2013

Generating a primary BIOS code memory address and a recovery BIOS code memory address, where the recovery BIOS service code is loaded when the primary BIOS code fails to execute

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,495,349
App. No.
12/248,434
Granted
Jul 23, 2013
Kind
B2
Abstract

Administering computer processor execution of BIOS code that includes a primary BIOS code and a recovery BIOS code stored in ROM, the ROM operatively coupled to a control module and the processor, where administering processor execution of the BIOS code includes determining, by the control module, a size of the ROM; generating, by the control module in dependence upon the size of the ROM, an address for the primary BIOS code and an address for the recovery BIOS code; starting, by the control module, operation of the processor for execution of the primary BIOS code including providing, to the processor, the address for the primary BIOS code; and if executing the primary BIOS code fails, restarting, by the control module, operation of the processor for execution of the recovery BIOS code including providing, to the processor, the address for the recovery BIOS code to the processor.

Claims (42)

1. A method of administering computer processor execution of Basic Input/Output Services (‘BIOS’) code, the BIOS code comprising a primary BIOS code and a recovery BIOS code, the primary and recovery BIOS code stored in read-only memory (‘ROM’), the ROM operatively coupled to a control module and the processor, the control module configured to control startup operations of the processor, the method comprising:

determining, by the control module, a size of the ROM;

generating, by the control module in dependence upon the size of the ROM, an address for the primary BIOS code and an address for the recovery BIOS code; wherein the generating of the recovery address comprises:

generating a first available memory address comprising a bit pattern of all ones as the address of the primary BIOS code;

determining a masking code in dependence upon the size of the ROM, the masking code comprising a bit pattern for inverting a most significant bit of the address of the primary BIOS code; and

inverting, by use of the masking code, to generate the address of recovery BIOS code, the most significant bit of the address of the primary BIOS code by performing a bitwise XOR operation with the masking code and address of the primary BIOS code, a bit of the masking code corresponding in location to the most significant bit of the address of the primary BIOS code, the bit of the masking code having a value of one and all other bits of the masking code having a value of zero;

starting, by the control module, operation of the processor for execution of the primary BIOS code including providing, to the processor, the address for the primary BIOS code; and

if executing the primary BIOS code fails, restarting, by the control module, operation of the processor for execution of the recovery BIOS code including providing, to the processor, the address for the recovery BIOS code to the processor.

2. The method of claim 1 wherein determining, by a control module, a size of the ROM further comprises:

retrieving, from a memory status register of the ROM, an identifier of the ROM; and

finding the size of the ROM with the ROM identifier in a lookup table comprising a plurality of records associating sizes of ROMs with ROM identifiers.

3. The method of claim 1 wherein determining a masking code in dependence upon the size of the ROM further comprises:

searching a lookup table with the size of the ROM, the lookup table comprising records associating masking codes and sizes of ROM; and

finding in the lookup table the masking code for the size of the ROM.

4. An apparatus for administering computer processor execution of Basic Input/Output Services (‘BIOS’) code, the BIOS code comprising a primary BIOS code and a recovery BIOS code, the primary and recovery BIOS code stored in read-only memory (‘ROM’), the ROM operatively coupled to a control module and the processor, the control module configured to control startup operations of the processor, the apparatus comprising a computer processor, a computer memory operatively coupled to the computer processor, the computer memory having disposed within it computer program instructions capable of:

determining, by the control module, a size of the ROM;

generating, by the control module in dependence upon the size of the ROM, an address for the primary BIOS code and an address for the recovery BIOS code; wherein the generating of the recovery address comprises:

generating a first available memory address comprising a bit pattern of all ones as the address of the primary BIOS code;

determining a masking code in dependence upon the size of the ROM, the masking code comprising a bit pattern for inverting a most significant bit of the address of the primary BIOS code; and

inverting, by use of the masking code, to generate the address of recovery BIOS code, the most significant bit of the address of the primary BIOS code by performing a bitwise XOR operation with the masking code and address of the primary BIOS code, a bit of the masking code corresponding in location to the most significant bit of the address of the primary BIOS code, the bit of the masking code having a value of one and all other bits of the masking code having a value of zero;

starting, by the control module, operation of the processor for execution of the primary BIOS code including providing, to the processor, the address for the primary BIOS code; and

if executing the primary BIOS code fails, restarting, by the control module, operation of the processor for execution of the recovery BIOS code including providing, to the processor, the address for the recovery BIOS code to the processor.

5. The apparatus of claim 4 wherein determining, by a control module, a size of the ROM further comprises:

retrieving, from a memory status register of the ROM, an identifier of the ROM; and

finding the size of the ROM with the ROM identifier in a lookup table comprising a plurality of records associating sizes of ROMs with ROM identifiers.

6. The apparatus of claim 4 wherein determining a masking code in dependence upon the size of the ROM further comprises:

searching a lookup table with the size of the ROM, the lookup table comprising records associating masking codes and sizes of ROM; and

finding in the lookup table the masking code for the size of the ROM.

7. A computer program product for administering computer processor execution of Basic Input/Output Services (‘BIOS’) code, the BIOS code comprising a primary BIOS code and a recovery BIOS code, the primary and recovery BIOS code stored in read-only memory (‘ROM’), the ROM operatively coupled to a control module and the processor, the control module configured to control startup operations of the processor, the computer program product disposed in a computer readable storage device, the computer program product comprising computer program instructions capable of:

determining, by the control module, a size of the ROM;

generating, by the control module in dependence upon the size of the ROM, an address for the primary BIOS code and an address for the recovery BIOS code, wherein the generating of the recovery address comprises:

generating a first available memory address comprising a bit pattern of all ones as the address of the primary BIOS code;

determining a masking code in dependence upon the size of the ROM, the masking code comprising a bit pattern for inverting a most significant bit of the address of the primary BIOS code; and

inverting, by use of the masking code, to generate the address of recovery BIOS code, the most significant bit of the address of the primary BIOS code by performing a bitwise XOR operation with the masking code and address of the primary BIOS code, a bit of the masking code corresponding in location to the most significant bit of the address of the primary BIOS code, the bit of the masking code having a value of one and all other bits of the masking code having a value of zero;

starting, by the control module, operation of the processor for execution of the primary BIOS code including providing, to the processor, the address for the primary BIOS code; and

if executing the primary BIOS code fails, restarting, by the control module, operation of the processor for execution of the recovery BIOS code including providing, to the processor, the address for the recovery BIOS code to the processor.

8. The computer program product of claim 7 wherein determining, by a control module, a size of the ROM further comprises:

retrieving, from a memory status register of the ROM, an identifier of the ROM; and

finding the size of the ROM with the ROM identifier in a lookup table comprising a plurality of records associating sizes of ROMs with ROM identifiers.

9. The computer program product of claim 7 wherein determining a masking code in dependence upon the size of the ROM further comprises:

searching a lookup table with the size of the ROM, the lookup table comprising records associating masking codes and sizes of ROM; and

finding in the lookup table the masking code for the size of the ROM.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 10, 2014
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: LENOVO INTERNATIONAL LIMITED
Reel/Frame 034194/0291 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 20, 2009
From: LEWIS, THOMAS F.; PERERA, PIVITHURU S.; PIPER, ROBERT M.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 022707/0644 →