]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARC: pt_regs cleanup #1: Align pt_regs with end of kernel stack page
authorVineet Gupta <vgupta@synopsys.com>
Tue, 28 May 2013 04:04:45 +0000 (09:34 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 17 Jun 2013 13:02:18 +0000 (18:32 +0530)
commite2fb89950b5434f631440babe0e256d60ee68964
treec0d6bc1b816697047a61215a272bf66e8ff35b6c
parent20f5255a9a7a34a8ae32e62a7600bdbe396e9a6d
ARC: pt_regs cleanup #1: Align pt_regs 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>
arch/arc/include/asm/entry.h
arch/arc/include/asm/processor.h
arch/arc/include/asm/ptrace.h
arch/arc/kernel/process.c