Skip to content

Commit 1b1d178

Browse files
author
Jim Wilson
authored
Merge pull request #81 from riscv/negative
Clarify that "downwards" means negative
2 parents 22da698 + 9b94ec5 commit 1b1d178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

riscv-elf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ type would be passed. If such an argument would have been passed by
143143
reference, the caller allocates memory for the return value, and passes the
144144
address as an implicit first parameter.
145145

146-
The stack grows downwards and the stack pointer shall be aligned to a 128-bit
147-
boundary upon procedure entry.
146+
The stack grows towards negative addresses and the stack pointer shall
147+
be aligned to a 128-bit boundary upon procedure entry.
148148
In the standard ABI, the stack pointer must remain
149149
aligned throughout procedure execution. Non-standard ABI code must realign the
150150
stack pointer prior to invoking standard ABI procedures. The operating system

0 commit comments

Comments
 (0)