From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Gorinov Date: Fri, 25 May 2018 15:00:36 -0700 Subject: [U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target Message-ID: <20180525220035.GA61257@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add __weak prefix to the following functions to allow override: misc_init_r(), checkcpu(), print_cpuinfo(). Signed-off-by: Ivan Gorinov --- arch/x86/cpu/x86_64/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/x86_64/cpu.c b/arch/x86/cpu/x86_64/cpu.c index 18b3e94..6f14efc 100644 --- a/arch/x86/cpu/x86_64/cpu.c +++ b/arch/x86/cpu/x86_64/cpu.c @@ -59,17 +59,17 @@ int x86_mp_init(void) return 0; } -int misc_init_r(void) +__weak int misc_init_r(void) { return 0; } -int checkcpu(void) +__weak int checkcpu(void) { return 0; } -int print_cpuinfo(void) +__weak int print_cpuinfo(void) { return 0; } -- 2.7.4