2011-11-29 18:05:07 +00:00
|
|
|
/*
|
|
|
|
* Adapted from Linux v2.6.36 kernel: arch/powerpc/kernel/asm-offsets.c
|
|
|
|
*
|
|
|
|
* This program is used to generate definitions needed by
|
|
|
|
* assembly language modules.
|
|
|
|
*
|
|
|
|
* We use the technique used in the OSF Mach kernel code:
|
|
|
|
* generate asm statements containing #defines,
|
|
|
|
* compile this file to assembler, and then extract the
|
|
|
|
* #defines from the assembly-language output.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2011-11-29 18:05:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <linux/kbuild.h>
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2014-12-12 13:05:22 +00:00
|
|
|
DEFINE(GD_BIST, offsetof(gd_t, arch.bist));
|
2014-12-12 13:05:31 +00:00
|
|
|
#ifdef CONFIG_HAVE_FSP
|
|
|
|
DEFINE(GD_HOB_LIST, offsetof(gd_t, arch.hob_list));
|
|
|
|
#endif
|
2015-08-04 18:33:57 +00:00
|
|
|
DEFINE(GD_TABLE, offsetof(gd_t, arch.table));
|
2011-11-29 18:05:07 +00:00
|
|
|
return 0;
|
|
|
|
}
|