Debian Codegraph @

src/arch/x86/id.S

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <build.h>
4
5 .section ".id", "a", @progbits
6
7 ver:
8 .asciz COREBOOT_VERSION
9 vendor:
10 .asciz CONFIG_MAINBOARD_VENDOR
11 part:
12 .asciz CONFIG_MAINBOARD_PART_NUMBER
13
14 #if ENV_X86_64 || defined(__clang__)
15 .long 0xffffffff - ver + 1 /* Reverse offset to the version */
16 .long 0xffffffff - vendor + 1 /* Reverse offset to the vendor id */
17 .long 0xffffffff - part + 1 /* Reverse offset to the part number */
18 #else
19 .long - ver /* Reverse offset to the version */
20 .long - vendor /* Reverse offset to the vendor id */
21 .long - part /* Reverse offset to the part number */
22 #endif
23
24 .long CONFIG_ROM_SIZE /* Size of this romimage */