Skip to content

Why is an extra "0" displayed at the end of the BIOS Address value? #25

Description

@PhoenixTan2

Hi,

In dmidecode.c line 4288, I see something like "0x%04X0", which means that the BIOS address display always has an extra "0" at the end of the data at 0x06. The value of 0xFFFF will be displayed as 0xFFFF0, is this work as design? If so, why is this by design?

I see commit messages in the code, is this only for legacy BIOS?

/*
* On IA-64 and UEFI-based systems, the BIOS base
* address will read 0 because there is no BIOS. Skip
* the base address and the runtime size in this case.
*/

And I see an example in the SMBIOS specification where the value of this field could be set to 0E800h

Segment location of BIOS starting address (for example, 0E800h).

But this field is just WORD and can't be set 0E800h, I really have a hard time understanding this design.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions