X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=debug%2Fprograms%2Fentry.S;h=80904cdb38191967deb1958e18955c4365fc1c91;hb=7b3fcbe9a9d336b67b914b842ff656aaafe7d939;hp=e17b23646830cd0e80a838a5bd9285fed7d32f51;hpb=e291177a1cbeb6cef46aa5f8f019346c3202c3ef;p=riscv-tests.git diff --git a/debug/programs/entry.S b/debug/programs/entry.S index e17b236..80904cd 100755 --- a/debug/programs/entry.S +++ b/debug/programs/entry.S @@ -3,7 +3,7 @@ #include "encoding.h" -#define STACK_SIZE ((1 << 12) - 128) +#define STACK_SIZE 512 #ifdef __riscv64 # define LREG ld @@ -124,9 +124,9 @@ trap_entry: addi sp, sp, 32*REGBYTES mret - .bss + // Fill the stack with data so we can see if it was overrun. .align 4 stack_bottom: - .skip STACK_SIZE + .fill STACK_SIZE/4, 4, 0x22446688 stack_top: #endif