process.c (98817a84ff1c755c347ac633ff017a623a631fad) | process.c (714acdbd1c94e7e3ab90f6b6938f1ccb27b662f0) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#include <linux/module.h> 5#include <linux/version.h> 6#include <linux/sched.h> 7#include <linux/sched/task_stack.h> 8#include <linux/sched/debug.h> --- 26 unchanged lines hidden (view full) --- 35 */ 36unsigned long thread_saved_pc(struct task_struct *tsk) 37{ 38 struct switch_stack *sw = (struct switch_stack *)tsk->thread.sp; 39 40 return sw->r15; 41} 42 | 1// SPDX-License-Identifier: GPL-2.0 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#include <linux/module.h> 5#include <linux/version.h> 6#include <linux/sched.h> 7#include <linux/sched/task_stack.h> 8#include <linux/sched/debug.h> --- 26 unchanged lines hidden (view full) --- 35 */ 36unsigned long thread_saved_pc(struct task_struct *tsk) 37{ 38 struct switch_stack *sw = (struct switch_stack *)tsk->thread.sp; 39 40 return sw->r15; 41} 42 |
43int copy_thread_tls(unsigned long clone_flags, | 43int copy_thread(unsigned long clone_flags, |
44 unsigned long usp, 45 unsigned long kthread_arg, 46 struct task_struct *p, 47 unsigned long tls) 48{ 49 struct switch_stack *childstack; 50 struct pt_regs *childregs = task_pt_regs(p); 51 --- 66 unchanged lines hidden --- | 44 unsigned long usp, 45 unsigned long kthread_arg, 46 struct task_struct *p, 47 unsigned long tls) 48{ 49 struct switch_stack *childstack; 50 struct pt_regs *childregs = task_pt_regs(p); 51 --- 66 unchanged lines hidden --- |