• Vineet Gupta's avatar
    ARC: pt_regs update #1: Align pt_regs end with end of kernel stack page · 283237a0
    Vineet Gupta authored
    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: default avatarVineet Gupta <vgupta@synopsys.com>
    283237a0
entry.h 20.3 KB