projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put debug test stack in data instead of text
[riscv-tests.git]
/
debug
/
programs
/
entry.S
diff --git
a/debug/programs/entry.S
b/debug/programs/entry.S
index 97b62a33f2070f4ecefa5657944a14f769264ea0..3acd786cc226d367ddc109cb03a53e11f2601b45 100755
(executable)
--- a/
debug/programs/entry.S
+++ b/
debug/programs/entry.S
@@
-1,6
+1,6
@@
#include "encoding.h"
#include "encoding.h"
-#define STACK_SIZE (
74
* XLEN / 8)
+#define STACK_SIZE (
90
* XLEN / 8)
#if XLEN == 64
# define LREG ld
#if XLEN == 64
# define LREG ld
@@
-106,6
+106,7
@@
wait_until_initialized: # Wait for hart 0 to perform initialization.
j _init
j _init
+.align 2
trap_entry:
addi sp, sp, -32*REGBYTES
trap_entry:
addi sp, sp, -32*REGBYTES
@@
-190,6
+191,7
@@
loop_forever:
j loop_forever
// Fill the stack with data so we can see if it was overrun.
j loop_forever
// Fill the stack with data so we can see if it was overrun.
+ .section .data
.align 4
stack_bottom:
.fill NHARTS * STACK_SIZE/4, 4, 0x22446688
.align 4
stack_bottom:
.fill NHARTS * STACK_SIZE/4, 4, 0x22446688