From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx2.suse.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 78F98679F9 for ; Sat, 29 Apr 2006 00:42:47 +1000 (EST) From: Andreas Schwab To: David Woodhouse Subject: Re: [PATCH] Wire up *at syscalls References: <1145924011.16166.465.camel@shinybook.infradead.org> <17489.50396.320494.589703@cargo.ozlabs.ibm.com> <1146219867.10561.39.camel@shinybook.infradead.org> Date: Fri, 28 Apr 2006 16:42:32 +0200 In-Reply-To: <1146219867.10561.39.camel@shinybook.infradead.org> (David Woodhouse's message of "Fri, 28 Apr 2006 11:24:26 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , David Woodhouse writes: > On Fri, 2006-04-28 at 17:31 +1000, Paul Mackerras wrote: >> Nice idea, but you didn't change the syscall entry path to multiply >> the syscall number by 24 instead of 16. > > Indeed. Neither did I wire up the spu callbacks. It wasn't meant to be > applied as-is. > >> It would be nice to have a way to do something like that but generate >> two separate tables instead of a single table with 3 entries per >> syscall. > > Arnd apparently tried that once and it was icky. void *spu_syscall_table[] = { #define SYSCALL(func) sys_ni_syscall #define SYSCALL_SPU(func) sys_##func #define COMPAT_SYS(func) sys_ni_syscall #define COMPAT_SYS_SPU(func) sys_##func #define PPC_SYS(func) sys_ni_syscall #define PPC_SYS_SPU(func) ppc_##func #define OLDSYS(func) sys_ni_syscall #define SYS32ONLY(func) sys_ni_syscall #define SYSX(f, f3264, f32) f #include } where contains the bopy of arch/powerpc/kernel/systbl.S after _GLOBAL(sys_call_table), and the latter is changed to include the former. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."