X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fsh64%2Fkernel%2Fprocess.c;h=efde41c0cd669388142dcb58dd7c87f5818e2d58;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=e3f509ea6ec3b1e2d87dc64753d34caf9fc29291;hpb=e3f6fb6212a7102bdb56ba38fa1e98fe72950475;p=linux-2.6.git diff --git a/arch/sh64/kernel/process.c b/arch/sh64/kernel/process.c index e3f509ea6..efde41c0c 100644 --- a/arch/sh64/kernel/process.c +++ b/arch/sh64/kernel/process.c @@ -638,7 +638,6 @@ void free_task_struct(struct task_struct *p) int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) { /* A bit less processor dependent than older sh ... */ - unsigned int reply; static __inline__ _syscall2(int,clone,unsigned long,flags,unsigned long,newsp) @@ -671,7 +670,7 @@ void exit_thread(void) null it here, there is no other path through which it would get safely nulled. */ -#ifndef CONFIG_NOFPU_SUPPORT +#ifdef CONFIG_SH_FPU if (last_task_used_math == current) { last_task_used_math = NULL; } @@ -683,7 +682,7 @@ void flush_thread(void) /* Called by fs/exec.c (flush_old_exec) to remove traces of a * previously running executable. */ -#ifndef CONFIG_NOFPU_SUPPORT +#ifdef CONFIG_SH_FPU if (last_task_used_math == current) { last_task_used_math = NULL; } @@ -709,7 +708,7 @@ void release_thread(struct task_struct *dead_task) /* Fill in the fpu structure for a core dump.. */ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) { -#ifndef CONFIG_NOFPU_SUPPORT +#ifdef CONFIG_SH_FPU int fpvalid; struct task_struct *tsk = current; @@ -741,7 +740,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, struct pt_regs *childregs; unsigned long long se; /* Sign extension */ -#ifndef CONFIG_NOFPU_SUPPORT +#ifdef CONFIG_SH_FPU if(last_task_used_math == current) { grab_fpu(); fpsave(¤t->thread.fpu.hard); @@ -933,7 +932,7 @@ asids_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, void int len=0; struct task_struct *p; read_lock(&tasklist_lock); - for_each_task(p) { + for_each_process(p) { int pid = p->pid; struct mm_struct *mm; if (!pid) continue; @@ -942,7 +941,7 @@ asids_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, void unsigned long asid, context; context = mm->context; asid = (context & 0xff); - len += sprintf(buf+len, "%5d : %02x\n", pid, asid); + len += sprintf(buf+len, "%5d : %02lx\n", pid, asid); } else { len += sprintf(buf+len, "%5d : (none)\n", pid); }