VirtualBox

Changeset 13158 in vbox for trunk/src/VBox/Devices/PC/BIOS


Ignore:
Timestamp:
Oct 10, 2008 9:38:09 AM (16 years ago)
Author:
vboxsync
Message:

biossums: set checksum of DMI+SMBIOS as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/rombios.c

    r13002 r13158  
    1015210152  db 0,0,0,0,0,0,0,0,0,0,0 ;; reserved
    1015310153#ifdef VBOX
    10154   db 0x21 ;; checksum
     10154  db 0x00 ;; checksum (set by biossums)
    1015510155#else /* !VBOX */
    1015610156  db 0x07 ;; checksum
     
    1201212012.org 0xff30
    1201312013.align 16
    12014  db   0x5f, 0x53, 0x4d, 0x5f          ; "_SM_" signature
    12015  ; calculate Entry Point Structure checksum - note that we already
    12016  ; know the checksum for the DMI header paragraph is zero
    12017        db ( - ( 0x5f + 0x53 + 0x4d + 0x5f \
    12018                + 0x1f \
    12019                + ((VBOX_SMBIOS_MAJOR_VER    ) & 0xff) + ((VBOX_SMBIOS_MINOR_VER    ) & 0xff) \
    12020                + ((VBOX_SMBIOS_MAXSS        ) & 0xff) + ((VBOX_SMBIOS_MAXSS   >>  8) & 0xff) \
    12021           )) & 0xff
    12022  db 0x1f                              ; EPS length - defined by standard
     12014 db 0x5f, 0x53, 0x4d, 0x5f            ; "_SM_" signature
     12015 db 0x00                              ; checksum (set by biossums)
     12016 db 0x1f                              ; EPS length, defined by standard
    1202312017 db VBOX_SMBIOS_MAJOR_VER             ; SMBIOS major version
    1202412018 db VBOX_SMBIOS_MINOR_VER             ; SMBIOS minor version
     
    1202812022
    1202912023// The DMI header
    12030  db   0x5f, 0x44, 0x4d, 0x49, 0x5f    ; "_DMI_" signature
    12031  ; calculate the DMI header checksum
    12032  db ( - ( 0x5f + 0x44 + 0x4d + 0x49 + 0x5f \
    12033          + ((VBOX_DMI_TABLE_BASE      ) & 0xff) + ((VBOX_DMI_TABLE_BASE >>  8) & 0xff) \
    12034          + ((VBOX_DMI_TABLE_BASE >> 16) & 0xff) + ((VBOX_DMI_TABLE_BASE >> 24) & 0xff) \
    12035          + ((VBOX_DMI_TABLE_SIZE      ) & 0xff) + ((VBOX_DMI_TABLE_SIZE >>  8) & 0xff) \
    12036          + ((VBOX_DMI_TABLE_ENTR      ) & 0xff) + ((VBOX_DMI_TABLE_ENTR >>  8) & 0xff) \
    12037          + VBOX_DMI_TABLE_VER \
    12038     )) & 0xff
     12024 db 0x5f, 0x44, 0x4d, 0x49, 0x5f      ; "_DMI_" signature
     12025 db 0x00                              ; checksum (set by biossums)
    1203912026 dw VBOX_DMI_TABLE_SIZE               ; DMI tables length
    1204012027 dd VBOX_DMI_TABLE_BASE               ; DMI tables base
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette