Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18081
b: refs/heads/master
c: 40f1f0d
h: refs/heads/master
i:
  18079: e01e332
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent a983616 commit e7a2939
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 513091ba7e4a8b498632d7913ff9408ebbca6235
refs/heads/master: 40f1f0deaff90b78b81dbba109bfa1cef241ec16
6 changes: 3 additions & 3 deletions trunk/arch/parisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
struct task_struct * p, struct pt_regs * pregs)
{
struct pt_regs * cregs = &(p->thread.regs);
struct thread_info *ti = p->thread_info;
void *stack = task_stack_page(p);

/* We have to use void * instead of a function pointer, because
* function pointers aren't a pointer to the function on 64-bit.
Expand All @@ -322,7 +322,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
*/
if (usp == 1) {
/* kernel thread */
cregs->ksp = (((unsigned long)(ti)) + THREAD_SZ_ALGN);
cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN;
/* Must exit via ret_from_kernel_thread in order
* to call schedule_tail()
*/
Expand All @@ -344,7 +344,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
*/

/* Use same stack depth as parent */
cregs->ksp = ((unsigned long)(ti))
cregs->ksp = (unsigned long)stack
+ (pregs->gr[21] & (THREAD_SIZE - 1));
cregs->gr[30] = usp;
if (p->personality == PER_HPUX) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/parisc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ int __init smp_boot_one_cpu(int cpuid)
if (IS_ERR(idle))
panic("SMP: fork failed for CPU:%d", cpuid);

idle->thread_info->cpu = cpuid;
task_thread_info(idle)->cpu = cpuid;

/* Let _start know what logical CPU we're booting
** (offset into init_tasks[],cpu_data[])
Expand Down

0 comments on commit e7a2939

Please sign in to comment.