Make ARCH=ppc build again with new syscall path
PATCH 1/1 Make ARCH=ppc build again with new syscall path
This makes ARCH=ppc build in your powerpc tree again, with the new syscall entry/exit path.
Still doesn't actually boot on my Pegasos; the last thing I see is 'MMU:exit'. But at least it builds -- I'll look at why it doesn't boot later, so that I can see if the mv643xx_eth actually works with ARCH=ppc (it doesn't with ARCH=powerpc; two in every three packets I receive are offset by 4 bytes).
arch/ppc/kernel/asm-offsets.c +1 -1
@@ -131,7 +131,7 @@ main(void)DEFINE (CPU_SPEC_FEATURES , offsetof(struct cpu_spec , cpu_features));DEFINE (CPU_SPEC_SETUP , offsetof(struct cpu_spec , cpu_setup)); -DEFINE (TI_SC_NOERR , offsetof(struct thread_info , syscall_noerror)); +DEFINE (TI_SIGFRAME , offsetof(struct thread_info , nvgprs_frame));DEFINE (TI_TASK , offsetof(struct thread_info , task));DEFINE (TI_EXECDOMAIN , offsetof(struct thread_info , exec_domain));DEFINE (TI_FLAGS , offsetof(struct thread_info , flags));
arch/ppc/kernel/entry.S +96 -71
240 lines not on this page · raw message
arch/ppc/kernel/misc.S +3 -3
@@ -1197,7 +1197,7 @@ _GLOBAL(sys_call_table) .long sys_ssetmask .long sys_setreuid /* 70 */ .long sys_setregid - .long ppc_sigsuspend + .long sys_sigsuspend .long sys_sigpending .long sys_sethostname .long sys_setrlimit /* 75 */
@@ -1303,7 +1303,7 @@ _GLOBAL(sys_call_table) .long sys_rt_sigpending /* 175 */ .long sys_rt_sigtimedwait .long sys_rt_sigqueueinfo - .long ppc_rt_sigsuspend + .long sys_rt_sigsuspend .long sys_pread64 .long sys_pwrite64 /* 180 */ .long sys_chown
@@ -1374,7 +1374,7 @@ _GLOBAL(sys_call_table) .long sys_clock_gettime .long sys_clock_getres .long sys_clock_nanosleep - .long ppc_swapcontext + .long sys_swapcontext .long sys_tgkill /* 250 */ .long sys_utimes .long sys_statfs64
Signature · 1 line
dwmw2
Quoted 2 lines · David Woodhouse
This makes ARCH=ppc build in your powerpc tree again, with the new syscall entry/exit path.
Hmmm. If we need to do this then maybe we should just get rid of the arch/ppc versions of the relevant files and make ARCH=ppc use the versions from arch/powerpc.
What do people think? Do we make ARCH=ppc use more and more stuff from arch/powerpc, and delete the duplicates from arch/ppc, or do people want to be conservative and keep arch/ppc largely unchanged? (I would prefer the former, myself.)
Paul.
Quoted 5 lines · Paul Mackerras
What do people think? Do we make ARCH=ppc use more and more stuff from
arch/powerpc, and delete the duplicates fromarch/ppc, or do people want to be conservative and keeparch/ppclargely unchanged? (I would prefer the former, myself.)
I thought initial idea was to keep arch/ppc mostly unchanged (we are in "stable" series after all :), and migrate code to arch/powerpc when it's ready.
Personally, the amount of PPC/PPC64 changes in 2.6 make me nervous, looks like I'll stick with 2.4 longer than I thought for production.
Signature · 1 line
Eugene
Quoted 8 lines · Paul Mackerras
Hmmm. If we need to do this then maybe we should just get rid of the
arch/ppcversions of the relevant files and make ARCH=ppc use the versions fromarch/powerpc.What do people think? Do we make ARCH=ppc use more and more stuff from
arch/powerpc, and delete the duplicates fromarch/ppc, or do people want to be conservative and keeparch/ppclargely unchanged? (I would prefer the former, myself.)
I also prefer the former, in general -- it makes it easier for people to port their platform from ppc to powerpc if we don't let the two diverge too much.
There's also a third option, which _encourages_ people to port their platform without necessarily making it easier: just let arch/ppc break. I'm not sure I'd necessarily advocate that one _yet_ but maybe in the not-so-distant future.
Signature · 1 line
dwmw2
Quoted 3 lines · In message <[email protected]> you wrote:
There's also a third option, which _encourages_ people to port their platform without necessarily making it easier: just let
arch/ppcbreak.
Please don't. This is supposed to be a "stable" kernel tree.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Monday is an awful way to spend one seventh of your life.
Quoted 6 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:
There's also a third option, which _encourages_ people to port their platform without necessarily making it easier: just let
arch/ppcbreak.Please don't. This is supposed to be a "stable" kernel tree.
I wouldn't advocate doing it just yet, but I don't think anyone really expects to see arch/ppc continue until Linus announces 2.7.0. Setting a cut-off of 2.6.17 or so, or perhaps a point in time when we officially stop caring about it, would seem a sensible approach.
Neither did I suggest actively breaking it or removing it -- if you feel strongly about keeping it then I'm sure Paul would accept your patches to make it keep working, even after others have stopped bothering.
But I think the time and effort required to maintain arch/ppc in perpetuity should be weighed up against that of just porting the embedded platforms to arch/powerpc.
It's your choice, of course, but I personally don't think I'll be submitting many more patches which take arch/ppc into account -- this one was an exception because it was me who broke it, and it is still a _little_ too early to be letting it break, IMO.
Signature · 1 line
dwmw2