process.c (404e86e1550cc2c84bb57a372af784585c732f9a) | process.c (85218827cc4ca900867807f19345418164ffc108) |
---|---|
1/* 2 * Derived from "arch/i386/kernel/process.c" 3 * Copyright (C) 1995 Linus Torvalds 4 * 5 * Updated and modified by Cort Dougan (cort@cs.nmt.edu) and 6 * Paul Mackerras (paulus@cs.anu.edu.au) 7 * 8 * PowerPC version --- 575 unchanged lines hidden (view full) --- 584 * the new task running at ret_from_fork. The new task will 585 * do some house keeping and then return from the fork or clone 586 * system call, using the stack frame created above. 587 */ 588 sp -= sizeof(struct pt_regs); 589 kregs = (struct pt_regs *) sp; 590 sp -= STACK_FRAME_OVERHEAD; 591 p->thread.ksp = sp; | 1/* 2 * Derived from "arch/i386/kernel/process.c" 3 * Copyright (C) 1995 Linus Torvalds 4 * 5 * Updated and modified by Cort Dougan (cort@cs.nmt.edu) and 6 * Paul Mackerras (paulus@cs.anu.edu.au) 7 * 8 * PowerPC version --- 575 unchanged lines hidden (view full) --- 584 * the new task running at ret_from_fork. The new task will 585 * do some house keeping and then return from the fork or clone 586 * system call, using the stack frame created above. 587 */ 588 sp -= sizeof(struct pt_regs); 589 kregs = (struct pt_regs *) sp; 590 sp -= STACK_FRAME_OVERHEAD; 591 p->thread.ksp = sp; |
592 p->thread.ksp_limit = (unsigned long)task_stack_page(p) + 593 _ALIGN_UP(sizeof(struct thread_info), 16); |
|
592 593#ifdef CONFIG_PPC64 594 if (cpu_has_feature(CPU_FTR_SLB)) { 595 unsigned long sp_vsid; 596 unsigned long llp = mmu_psize_defs[mmu_linear_psize].sllp; 597 598 if (cpu_has_feature(CPU_FTR_1T_SEGMENT)) 599 sp_vsid = get_kernel_vsid(sp, MMU_SEGSIZE_1T) --- 467 unchanged lines hidden --- | 594 595#ifdef CONFIG_PPC64 596 if (cpu_has_feature(CPU_FTR_SLB)) { 597 unsigned long sp_vsid; 598 unsigned long llp = mmu_psize_defs[mmu_linear_psize].sllp; 599 600 if (cpu_has_feature(CPU_FTR_1T_SEGMENT)) 601 sp_vsid = get_kernel_vsid(sp, MMU_SEGSIZE_1T) --- 467 unchanged lines hidden --- |