summaryrefslogtreecommitdiff
path: root/src/arch/x86/id.S
blob: 64f7a799b0af337b1c8fcc0ed722fcd1d010d8ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0-only */

#include <build.h>

.section ".id", "a", @progbits

ver:
	.asciz COREBOOT_VERSION
vendor:
	.asciz CONFIG_MAINBOARD_VENDOR
part:
	.asciz CONFIG_MAINBOARD_PART_NUMBER

#if ENV_X86_64 || defined(__clang__)
.long	0xffffffff - ver + 1		/* Reverse offset to the version */
.long	0xffffffff - vendor + 1		/* Reverse offset to the vendor id */
.long	0xffffffff - part + 1		/* Reverse offset to the part number */
#else
.long	- ver		/* Reverse offset to the version */
.long	- vendor	/* Reverse offset to the vendor id */
.long	- part		/* Reverse offset to the part number */
#endif

.long	CONFIG_ROM_SIZE /* Size of this romimage */