BIOS Exception Error Location via MAP File Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

During BIOS research and development, locating and solving EXCEPTION errors is inefficient due to the lack of clear location information, as there is no recording mechanism for EXCEPTION error reporting, unlike ERROR/ASSERT errors, which makes it difficult for developers to identify the source of the issue.

Innovation Solution

A method that involves acquiring MAP files generated during BIOS compilation to record entry address offsets, recording base addresses of function modules, and executing an Exception handling function to determine the target function causing EXCEPTION errors, with the help of base address log files and routing information protocol values, and sending the results to a Baseboard Manager Controller (BMC) for logging.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If a recording mechanism is implemented for EXCEPTION error reporting, then error locating efficiency is improved, but device complexity increases

Engineering Contradiction:
Improveerror locating efficiencyVSAvoidrecording mechanism complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-generating MAP files during the BIOS compilation process and pre-establishing the exception handling function framework. These preparations are made in advance so that when EXCEPTION errors occur, the system can immediately use the pre-existing MAP files and handling functions to locate and record error information without adding complex recording mechanisms during runtime.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces MAP files as intermediary components that bridge the gap between the exception handling function and the actual error location. The MAP files serve as mediators that contain mapping information between exception addresses and function locations, enabling the exception handling function to accurately determine where EXCEPTION errors occur without requiring complex direct recording mechanisms.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If detailed location information is recorded for EXCEPTION errors, then error analysis accuracy is improved, but information storage requirements increase

Engineering Contradiction:
Improveerror location information accuracyVSAvoidinformation storage quantity
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent extracts only the essential information needed for error location by using MAP files to map exception addresses to specific function locations. Instead of recording complete error context and all possible debugging information, the system extracts and stores only the critical mapping information between exception addresses and function identifiers, reducing storage requirements while maintaining accuracy.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the parameter representation by transforming raw exception address information into standardized function location information through the MAP file mapping mechanism. This parameter transformation consolidates multiple pieces of information into a more compact and efficient representation, reducing the quantity of data needed while preserving location accuracy.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12032436B2BIOS error locating method and apparatus, device and non-volatile storage medium
Publication Date: 2024.07.09 INSPUR SUZHOU INTELLIGENT TECH CO LTD
  • US12032436B2 patent drawing
  • US12032436B2 patent drawing
  • US12032436B2 patent drawing

AI summary

A BIOS error locating method and apparatus, a device, and a storage medium are provided. The method includes: acquiring one or more MAP files which are generated during a compilation process of a BIOS and used for recording an entry address offset of each function; recording a base address of each function module after the BIOS is started, so as to obtain a base address log file; in response to occurrence of an EXCEPTION error during an execution process of the BIOS, executing an Exception handling function, so as to determine, according to the base address log file and the one or more MAP files, a target function that results in the EXCEPTION error; and recording a name of the target function in a serial log, and sending the serial log to a BMC.