Commit 0c4a2e9c authored by Paul Mackerras's avatar Paul Mackerras

Minor PPC changes - add sched_get/setaffinity, include tlbflush.h

and cacheflush.h in a few places where they are needed.
parent c7ad40cc
...@@ -1290,6 +1290,8 @@ _GLOBAL(sys_call_table) ...@@ -1290,6 +1290,8 @@ _GLOBAL(sys_call_table)
.long sys_lremovexattr .long sys_lremovexattr
.long sys_fremovexattr /* 220 */ .long sys_fremovexattr /* 220 */
.long sys_futex .long sys_futex
.long sys_sched_setaffinity
.long sys_sched_getaffinity
.rept NR_syscalls-(.-sys_call_table)/4 .rept NR_syscalls-(.-sys_call_table)/4
.long sys_ni_syscall .long sys_ni_syscall
.endr .endr
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <asm/btext.h> #include <asm/btext.h>
#include <asm/pci-bridge.h> #include <asm/pci-bridge.h>
#include <asm/open_pic.h> #include <asm/open_pic.h>
#include <asm/cacheflush.h>
#ifdef CONFIG_FB #ifdef CONFIG_FB
#include <asm/linux_logo.h> #include <asm/linux_logo.h>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <asm/ucontext.h> #include <asm/ucontext.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/cacheflush.h>
#define DEBUG_SIG 0 #define DEBUG_SIG 0
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <asm/residual.h> #include <asm/residual.h>
#include <asm/time.h> #include <asm/time.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/tlbflush.h>
int smp_threads_ready; int smp_threads_ready;
volatile int smp_commenced; volatile int smp_commenced;
......
...@@ -607,7 +607,7 @@ chrp_init(unsigned long r3, unsigned long r4, unsigned long r5, ...@@ -607,7 +607,7 @@ chrp_init(unsigned long r3, unsigned long r4, unsigned long r5,
* Print the banner, then scroll down so boot progress * Print the banner, then scroll down so boot progress
* can be printed. -- Cort * can be printed. -- Cort
*/ */
if ( ppc_md.progress ) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0); if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0);
} }
void __chrp void __chrp
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <linux/unistd.h> #include <linux/unistd.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/errno.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/atomic.h> #include <asm/atomic.h>
...@@ -47,6 +48,7 @@ ...@@ -47,6 +48,7 @@
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/time.h> #include <asm/time.h>
#include <asm/open_pic.h> #include <asm/open_pic.h>
#include <asm/cacheflush.h>
/* /*
* Powersurge (old powermac SMP) support. * Powersurge (old powermac SMP) support.
......
/* /*
* BK Id: SCCS/s.unistd.h 1.11 10/18/01 17:29:53 trini * BK Id: %F% %I% %G% %U% %#%
*/ */
#ifndef _ASM_PPC_UNISTD_H_ #ifndef _ASM_PPC_UNISTD_H_
#define _ASM_PPC_UNISTD_H_ #define _ASM_PPC_UNISTD_H_
...@@ -229,6 +229,8 @@ ...@@ -229,6 +229,8 @@
#define __NR_lremovexattr 219 #define __NR_lremovexattr 219
#define __NR_fremovexattr 220 #define __NR_fremovexattr 220
#define __NR_futex 221 #define __NR_futex 221
#define __NR_sched_setaffinity 222
#define __NR_sched_getaffinity 223
#define __NR(n) #n #define __NR(n) #n
...@@ -432,7 +434,7 @@ static inline _syscall1(int,delete_module,const char *,name) ...@@ -432,7 +434,7 @@ static inline _syscall1(int,delete_module,const char *,name)
static inline pid_t wait(int * wait_stat) static inline pid_t wait(int * wait_stat)
{ {
return waitpid(-1,wait_stat,0); return waitpid(-1, wait_stat, 0);
} }
#endif /* __KERNEL_SYSCALLS__ */ #endif /* __KERNEL_SYSCALLS__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment