Re: [U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target

2018-05-30 Thread Ivan Gorinov
On Sat, May 26, 2018 at 06:53:40PM -0600, Simon Glass wrote: > Hi Ivan, > > On 25 May 2018 at 16:00, Ivan Gorinov wrote: > > Add __weak prefix to the following functions to allow override: > > misc_init_r(), checkcpu(), print_cpuinfo(). > > > > Signed-off-by: Ivan Gorinov > > --- > > arch/x86/c

Re: [U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target

2018-05-28 Thread Andy Shevchenko
On Sat, 2018-05-26 at 18:53 -0600, Simon Glass wrote: > We should do with with a different CPU driver I think. What exactly is > the problem? +1. The approach feels wrong. It looks like whatever you are going to add later needs actually a fully-established folder under arch/x86/cpu rather than

Re: [U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target

2018-05-26 Thread Simon Glass
Hi Ivan, On 25 May 2018 at 16:00, Ivan Gorinov wrote: > 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(-) >

[U-Boot] [PATCH] x86: enable cpu-specific functions for x86_64 target

2018-05-25 Thread Ivan Gorinov
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 in