Zbr's days.
May
Sun Mon Tue Wed Thu Fri Sat
   
27    
2007
Months
May

About TODO Blog RSS Old blog Projects Gallery Notes

Sun, 27 May 2007

Linux SuperH SMP support.


I do not know how it can ever be compiled:

...
arch/sh/kernel/smp.c:182: undefined reference to `__smp_call_function'
...

$ grep __smp_call_function -r include/asm-sh* arch/sh* | egrep -v "Binary|~"
grep: warning: include/asm-sh/mach: recursive directory loop

arch/sh/kernel/smp.c:void __smp_call_function(unsigned int cpu);
arch/sh/kernel/smp.c:                   __smp_call_function(i);
Argh, I've found it - every platform includes CONFIG_BROKEN_ON_SMP=y config option.
SuperH 64 does not support SMP too. It just does not compile, and old broken code was added before 2.6.12. So, if I would have SMP board, I would try to add support, otherwise no. I can not even test it.

I've also dropped power management support from my build, since although sh-4 7751R supports it, code for generic power management only works with hp6xx boards, since it uses private register definitions for that board. 7751R does not have some bits in registers and others are named differently, so, no power management so far.

/devel/sh :: Link / Comments (0)

Please solve this captcha to be allowed to post (need to reload in a minute): 24 + 94

Comments are closed for this story.