Skip to content

Commit

Permalink
Fix brk comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Aug 19, 2022
1 parent 56f906c commit 845820c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,10 @@ static void syscall_exit(struct riscv_t *rv)
fprintf(stdout, "inferior exit code %d\n", (int) code);
}

/* brk(prev, inc)
/* brk(increment)
* Note:
* - 8 byte alignment for malloc chunks
* - 4k aligned for sbrk blocks
* - parameters:
* a0 - previous heap, 0 = reset to end of data
* a1 - increment size, ignored if a0 == 0
* - 4k align end of data (or 8/16 byte align?)
* - 4 KiB aligned for sbrk blocks
*/
static void syscall_brk(struct riscv_t *rv)
{
Expand Down

0 comments on commit 845820c

Please # to comment.