summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/process.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-05-28 09:34:45 +0530
committerVineet Gupta <vgupta@synopsys.com>2013-06-22 19:23:21 +0530
commit283237a04fd332bddc2ac298e6ad7d23a1fc4b99 (patch)
tree227d6d2d2c2b167fb75df1835b466ed160a7994f /arch/arc/kernel/process.c
parentbed30976e7f1077c105306597ef05895234ba600 (diff)
downloadop-kernel-dev-283237a04fd332bddc2ac298e6ad7d23a1fc4b99.zip
op-kernel-dev-283237a04fd332bddc2ac298e6ad7d23a1fc4b99.tar.gz
ARC: pt_regs update #1: Align pt_regs end with end of kernel stack page
Historically, pt_regs would end at offset of 1 word from end of stack page. ----------------- -> START of page (task->stack) | | | thread_info | ----------------- | | ^ ~ ~ | ~ ~ | | | | | | <---- pt_regs used to END here ----------------- | 1 word GUTTER | ----------------- -> End of page (START of kernel stack) This required special "one-off" considerations in low level code. The root cause is very likely assumption of "empty" SP by the original ARC kernel hackers, despite ARC700 always been "full" SP. So finally RIP one word gutter ! Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/process.c')
-rw-r--r--arch/arc/kernel/process.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c
index cad6685..949bfd5 100644
--- a/arch/arc/kernel/process.c
+++ b/arch/arc/kernel/process.c
@@ -75,8 +75,6 @@ asmlinkage void ret_from_fork(void);
* ~ ~
* | --to-- | (scratch Regs of user mode)
* | r0 |
- * ------------------
- * | UNUSED 1 word|
* ------------------ <===== END of PAGE
*/
int copy_thread(unsigned long clone_flags,
OpenPOWER on IntegriCloud