From: Ivan Gorinov <ivan.gorinov@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target
Date: Fri, 25 May 2018 15:00:36 -0700 [thread overview]
Message-ID: <20180525220035.GA61257@intel.com> (raw)
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
next reply other threads:[~2018-05-25 22:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-25 22:00 Ivan Gorinov [this message]
2018-05-27 0:53 ` [U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target Simon Glass
2018-05-28 12:01 ` Andy Shevchenko
2018-05-30 17:53 ` Ivan Gorinov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180525220035.GA61257@intel.com \
--to=ivan.gorinov@intel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.