From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Metcalf Subject: Re: [PATCH] arch/tile: new multi-core architecture for Linux Date: Thu, 27 May 2010 11:04:50 -0400 Message-ID: <4BFE8A12.2060606@tilera.com> References: <201005200543.o4K5hFRF006079@farm-0002.internal.tilera.com> <201005271611.47963.arnd@arndb.de> <4BFE831A.8050002@tilera.com> <201005271702.45730.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from king.tilera.com ([72.1.168.226]:37767 "EHLO king.tilera.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754687Ab0E0PEw (ORCPT ); Thu, 27 May 2010 11:04:52 -0400 In-Reply-To: <201005271702.45730.arnd@arndb.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Arnd Bergmann Cc: Linux Kernel Mailing List , Linus Torvalds , linux-arch@vger.kernel.org On 5/27/2010 11:02 AM, Arnd Bergmann wrote: > Ok, I see. No objection to your kernel code then, we just need to > figure out how to do that with the generic sys_call_table. > That turns out to be fairly easy: #undef __SYSCALL #define __SYSCALL(nr, call) [nr] = (call), #ifndef __tilegx__ #define sys_fadvise64 sys32_fadvise64 #define sys_fadvise64_64 sys32_fadvise64_64 #define sys_readahead sys32_readahead #endif void *sys_call_table[__NR_syscalls] = { [0 ... __NR_syscalls-1] = sys_ni_syscall, #include }; -- Chris Metcalf, Tilera Corp. http://www.tilera.com