mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-29 22:43:10 +00:00
076c7bfb1f
All symbols that are defined in Kconfig will always be defined (or not) prior to preprocessing due to the -include directive while building. However, symbols which are not yet migrated will only be defined (or not) once the board config.h is included, via <config.h>. While the end goal must be to migrate all symbols, today we have cases where the size of gd will get mismatched within the build, based on include order. Mitigate this by making sure that any <asm/global_data.h> that uses symbols not in Kconfig does start with <config.h>. Remove this when not needed. Cc: Alexey Brodkin <alexey.brodkin@synopsys.com> Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Cc: Huan Wang <alison.wang@nxp.com> Cc: Angelo Dureghello <angelo@sysam.it> Cc: Rick Chen <rick@andestech.com> Signed-off-by: Tom Rini <trini@konsulko.com>
23 lines
513 B
C
23 lines
513 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __ASM_ARC_GLOBAL_DATA_H
|
|
#define __ASM_ARC_GLOBAL_DATA_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
/* Architecture-specific global data */
|
|
struct arch_global_data {
|
|
int l1_line_sz;
|
|
#if defined(CONFIG_ISA_ARCV2)
|
|
int slc_line_sz;
|
|
#endif
|
|
};
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#include <asm-generic/global_data.h>
|
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r25")
|
|
|
|
#endif /* __ASM_ARC_GLOBAL_DATA_H */
|