[PATCH v2 2/8] riscv: Make stack size shift configurable