Changeset 13158 in vbox for trunk/src/VBox/Devices/PC/BIOS
- Timestamp:
- Oct 10, 2008 9:38:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r13002 r13158 10152 10152 db 0,0,0,0,0,0,0,0,0,0,0 ;; reserved 10153 10153 #ifdef VBOX 10154 db 0x 21 ;; checksum10154 db 0x00 ;; checksum (set by biossums) 10155 10155 #else /* !VBOX */ 10156 10156 db 0x07 ;; checksum … … 12012 12012 .org 0xff30 12013 12013 .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 12023 12017 db VBOX_SMBIOS_MAJOR_VER ; SMBIOS major version 12024 12018 db VBOX_SMBIOS_MINOR_VER ; SMBIOS minor version … … 12028 12022 12029 12023 // 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) 12039 12026 dw VBOX_DMI_TABLE_SIZE ; DMI tables length 12040 12027 dd VBOX_DMI_TABLE_BASE ; DMI tables base
Note:
See TracChangeset
for help on using the changeset viewer.