/kernel/trunk/arch/sparc64/include/types.h |
---|
47,6 → 47,7 |
typedef __u64 ipl_t; |
typedef __u64 __native; |
typedef __s64 __native; |
typedef struct pte pte_t; |
/kernel/trunk/arch/ia64/include/types.h |
---|
1,4 → 1,4 |
/* |
* Copyright (C) 2005 Jakub Jermar |
* All rights reserved. |
* |
47,6 → 47,7 |
typedef __u64 ipl_t; |
typedef __u64 __native; |
typedef __s64 __native; |
typedef struct pte pte_t; |
/kernel/trunk/arch/amd64/include/types.h |
---|
48,6 → 48,7 |
typedef __u64 ipl_t; |
typedef __u64 __native; |
typedef __s64 __snative; |
typedef struct page_specifier pte_t; |
/kernel/trunk/arch/amd64/src/syscall.c |
---|
62,12 → 62,11 |
} |
/** Dispatch system call */ |
__native syscall_handler(__native id, __native a1, __native a2, __native a3) |
__native syscall_handler(__native a1, __native a2, __native a3, |
__native id) |
{ |
interrupts_enable(); |
if (id < SYSCALL_END) |
return syscall_table[id](a1,a2,a3); |
else |
panic("Undefined syscall %d", id); |
interrupts_disable(); |
} |
/kernel/trunk/arch/amd64/src/asm_utils.S |
---|
207,8 → 207,10 |
# Switch back to remain consistent |
swapgs |
sti |
movq %r9, %rcx # Exchange last parameter as a third |
call syscall_handler |
cli # We will be touching stack pointer |
popq %r11 |
popq %rcx |
/kernel/trunk/arch/mips32/include/types.h |
---|
48,6 → 48,7 |
typedef __u32 ipl_t; |
typedef __u32 __native; |
typedef __s32 __snative; |
typedef struct pte pte_t; |
/kernel/trunk/arch/mips32/src/exception.c |
---|
133,6 → 133,7 |
/** Handle syscall userspace call */ |
static void syscall_exception(int n, struct exception_regdump *pstate) |
{ |
interrupts_enable(); |
if (pstate->a3 < SYSCALL_END) |
pstate->v0 = syscall_table[pstate->a3](pstate->a0, |
pstate->a1, |
139,6 → 140,7 |
pstate->a2); |
else |
panic("Undefined syscall %d", pstate->a3); |
interrupts_disable(); |
pstate->epc += 4; |
} |
/kernel/trunk/arch/ia32/include/types.h |
---|
47,6 → 47,7 |
typedef __u32 ipl_t; |
typedef __u32 __native; |
typedef __s32 __native; |
typedef struct page_specifier pte_t; |
/kernel/trunk/arch/ia32/src/interrupt.c |
---|
115,10 → 115,12 |
{ |
__native *stack = (__native *) st; |
interrupts_enable(); |
if (stack[-2] < SYSCALL_END) |
stack[-2] = syscall_table[stack[-2]](stack[-5], stack[-3], stack[-4]); |
else |
panic("Undefined syscall %d", stack[-2]); |
interrupts_disable(); |
} |
void tlb_shootdown_ipi(int n, void *stack) |