|
@@ -1,5 +1,4 @@
|
|
-/* $Id: sys_sparc.c,v 1.57 2002/02/09 19:49:30 davem Exp $
|
|
|
|
- * linux/arch/sparc64/kernel/sys_sparc.c
|
|
|
|
|
|
+/* linux/arch/sparc64/kernel/sys_sparc.c
|
|
*
|
|
*
|
|
* This file contains various random system calls that
|
|
* This file contains various random system calls that
|
|
* have a non-standard calling sequence on the Linux/sparc
|
|
* have a non-standard calling sequence on the Linux/sparc
|
|
@@ -30,6 +29,9 @@
|
|
#include <asm/perfctr.h>
|
|
#include <asm/perfctr.h>
|
|
#include <asm/unistd.h>
|
|
#include <asm/unistd.h>
|
|
|
|
|
|
|
|
+#include "entry.h"
|
|
|
|
+#include "systbls.h"
|
|
|
|
+
|
|
/* #define DEBUG_UNIMP_SYSCALL */
|
|
/* #define DEBUG_UNIMP_SYSCALL */
|
|
|
|
|
|
asmlinkage unsigned long sys_getpagesize(void)
|
|
asmlinkage unsigned long sys_getpagesize(void)
|
|
@@ -445,7 +447,8 @@ asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second,
|
|
goto out;
|
|
goto out;
|
|
case SEMTIMEDOP:
|
|
case SEMTIMEDOP:
|
|
err = sys_semtimedop(first, ptr, (unsigned)second,
|
|
err = sys_semtimedop(first, ptr, (unsigned)second,
|
|
- (const struct timespec __user *) fifth);
|
|
|
|
|
|
+ (const struct timespec __user *)
|
|
|
|
+ (unsigned long) fifth);
|
|
goto out;
|
|
goto out;
|
|
case SEMGET:
|
|
case SEMGET:
|
|
err = sys_semget(first, (int)second, (int)third);
|
|
err = sys_semget(first, (int)second, (int)third);
|
|
@@ -788,7 +791,7 @@ asmlinkage long sys_utrap_install(utrap_entry_t type,
|
|
} else {
|
|
} else {
|
|
if ((utrap_handler_t)current_thread_info()->utraps[type] != new_p &&
|
|
if ((utrap_handler_t)current_thread_info()->utraps[type] != new_p &&
|
|
current_thread_info()->utraps[0] > 1) {
|
|
current_thread_info()->utraps[0] > 1) {
|
|
- long *p = current_thread_info()->utraps;
|
|
|
|
|
|
+ unsigned long *p = current_thread_info()->utraps;
|
|
|
|
|
|
current_thread_info()->utraps =
|
|
current_thread_info()->utraps =
|
|
kmalloc((UT_TRAP_INSTRUCTION_31+1)*sizeof(long),
|
|
kmalloc((UT_TRAP_INSTRUCTION_31+1)*sizeof(long),
|
|
@@ -816,7 +819,8 @@ asmlinkage long sys_utrap_install(utrap_entry_t type,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-long sparc_memory_ordering(unsigned long model, struct pt_regs *regs)
|
|
|
|
|
|
+asmlinkage long sparc_memory_ordering(unsigned long model,
|
|
|
|
+ struct pt_regs *regs)
|
|
{
|
|
{
|
|
if (model >= 3)
|
|
if (model >= 3)
|
|
return -EINVAL;
|
|
return -EINVAL;
|