Skip to content

Commit 9b94ec5

Browse files
Clarify that "downwards" means negative
Thanks to Michael D. Adams for pointing this out. I also always forget which way is up :)
1 parent 042281e commit 9b94ec5

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
@@ -139,8 +139,8 @@ type would be passed. If such an argument would have been passed by
139139
reference, the caller allocates memory for the return value, and passes the
140140
address as an implicit first parameter.
141141

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

0 commit comments

Comments
 (0)