public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target
@ 2018-05-25 22:00 Ivan Gorinov
  2018-05-27  0:53 ` Simon Glass
  0 siblings, 1 reply; 4+ messages in thread
From: Ivan Gorinov @ 2018-05-25 22:00 UTC (permalink / raw)
  To: u-boot

Add __weak prefix to the following functions to allow override:
misc_init_r(), checkcpu(), print_cpuinfo().

Signed-off-by: Ivan Gorinov <ivan.gorinov@intel.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-30 17:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-25 22:00 [U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target Ivan Gorinov
2018-05-27  0:53 ` Simon Glass
2018-05-28 12:01   ` Andy Shevchenko
2018-05-30 17:53   ` Ivan Gorinov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox