xref: /aosp_15_r20/external/coreboot/src/arch/x86/id.S (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <build.h>
4
5.section ".id", "a", @progbits
6
7ver:
8	.asciz COREBOOT_VERSION
9vendor:
10	.asciz CONFIG_MAINBOARD_VENDOR
11part:
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 */
25