Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755238AbXLFXUc (ORCPT ); Thu, 6 Dec 2007 18:20:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752990AbXLFXUV (ORCPT ); Thu, 6 Dec 2007 18:20:21 -0500 Received: from tetsuo.zabbo.net ([207.173.201.20]:50719 "EHLO tetsuo.zabbo.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752867AbXLFXUU (ORCPT ); Thu, 6 Dec 2007 18:20:20 -0500 From: Zach Brown To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Ingo Molnar , Ulrich Drepper , Arjan van de Ven , Andrew Morton , Alan Cox , Evgeniy Polyakov , "David S. Miller" , Suparna Bhattacharya , Davide Libenzi , Jens Axboe , Thomas Gleixner , Dan Williams , Jeff Moyer , Simon Holm Thogersen , suresh.b.siddha@intel.com Subject: [PATCH 1/6] indirect: use asmlinkage in i386 syscall table prototype Date: Thu, 6 Dec 2007 15:20:14 -0800 Message-Id: <11969832193635-git-send-email-zach.brown@oracle.com> X-Mailer: git-send-email 1.5.2.2 In-Reply-To: <1196983219534-git-send-email-zach.brown@oracle.com> References: <1196983219534-git-send-email-zach.brown@oracle.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1045 Lines: 28 call_indirect() was using the wrong calling convention for the system call handlers. system call handlers would get mixed up arguments. Signed-off-by: Zach Brown diff --git a/include/asm-x86/indirect_32.h b/include/asm-x86/indirect_32.h index a1b72ac..e3dea8e 100644 --- a/include/asm-x86/indirect_32.h +++ b/include/asm-x86/indirect_32.h @@ -15,8 +15,8 @@ struct indirect_registers { static inline long call_indirect(struct indirect_registers *regs) { - extern long (*sys_call_table[]) (__u32, __u32, __u32, __u32, __u32, __u32); - + extern asmlinkage long (*sys_call_table[])(long, long, long, + long, long, long); return sys_call_table[INDIRECT_SYSCALL(regs)](regs->ebx, regs->ecx, regs->edx, regs->esi, regs->edi, regs->ebp); -- 1.5.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/