The GNU assembler responds to .align in a platform-dependent way. For a
use of '.align x', gas will align to 'x' bytes for some platforms,
but '2^x' bytes for other platforms including RISC-V. We are currently
reserving too much space with .align, so correct them by switching to
the more predictable .balign directive.
Signed-off-by: Hunter <>
Following the standard RISC-V calling convention, make sure
the stack pointer sp is always 16-byte aligned.
Fixed an issue, make sure the sp of task point to the bottom
of the stack, while originally we waste one byte (forgive my
stupid ~~~).
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>