riscv: simplify the stack pointer setup in head.S
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2019 09:14:37 +0000 (11:14 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Thu, 25 Apr 2019 21:51:10 +0000 (14:51 -0700)
commitc637b911e0669753ba85f8d61f10ca4b8f441dd3
treecbc8946f8f04d7236aebdfa7a4fe7a61c4c9ad92
parentdf16c40cbfb43fbd6d5d879585b268b131fa95eb
riscv: simplify the stack pointer setup in head.S

We don't need THREAD_SIZE in asm-offsets.c as we can just calculate
the value of init_thread_union + THREAD_SIZE using cpp, just like
we do a few lines above.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/asm-offsets.c
arch/riscv/kernel/head.S