blob: 9da04dd875927deedbd940330ca636991f7cd516 [file] [log] [blame]
Gabe Black27a4d072011-11-29 18:05:07 +00001/*
2 * Adapted from Linux v2.6.36 kernel: arch/powerpc/kernel/asm-offsets.c
3 *
4 * This program is used to generate definitions needed by
5 * assembly language modules.
6 *
7 * We use the technique used in the OSF Mach kernel code:
8 * generate asm statements containing #defines,
9 * compile this file to assembler, and then extract the
10 * #defines from the assembly-language output.
11 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020012 * SPDX-License-Identifier: GPL-2.0+
Gabe Black27a4d072011-11-29 18:05:07 +000013 */
14
15#include <common.h>
16#include <linux/kbuild.h>
17
18int main(void)
19{
Bin Meng8c5acf42014-12-12 21:05:22 +080020 DEFINE(GD_BIST, offsetof(gd_t, arch.bist));
Bin Meng005f0af2014-12-12 21:05:31 +080021#ifdef CONFIG_HAVE_FSP
22 DEFINE(GD_HOB_LIST, offsetof(gd_t, arch.hob_list));
23#endif
Simon Glassf95ad8c2015-08-04 12:33:57 -060024 DEFINE(GD_TABLE, offsetof(gd_t, arch.table));
Gabe Black27a4d072011-11-29 18:05:07 +000025 return 0;
26}