[PATCH 1/6] indirect: use asmlinkage in i386 syscall table prototype
- From: Zach Brown <zach.brown@xxxxxxxxxx>
- Date: Thu, 6 Dec 2007 15:20:14 -0800
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 <zach.brown@xxxxxxxxxx>
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 1/6] indirect: use asmlinkage in i386 syscall table prototype
- From: Simon Holm Thøgersen
- [PATCH 2/6] syslet: asm-generic support to disable syslets
- From: Zach Brown
- Re: [PATCH 1/6] indirect: use asmlinkage in i386 syscall table prototype
- References:
- syslets v7: back to basics
- From: Zach Brown
- syslets v7: back to basics
- Prev by Date: Re: [patch/rfc 2/4] pcf857x I2C GPIO expander driver
- Next by Date: [PATCH 2/6] syslet: asm-generic support to disable syslets
- Previous by thread: syslets v7: back to basics
- Next by thread: [PATCH 2/6] syslet: asm-generic support to disable syslets
- Index(es):
Relevant Pages
|