Skip to content

Commit

Permalink
stdlib: fix miss
Browse files Browse the repository at this point in the history
  • Loading branch information
hiromi-mi committed Jun 1, 2019
1 parent f0eb182 commit 395ef1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions as/stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void *malloc(int size)
if (malloc_pointer_head == 0) {
char *p = brk(0);
int size = 0x32000000;
brk(p + size);
// printf("init %d\n", p);
malloc_pointer_head = p;
malloc_remaining_size = size;
Expand Down
1 change: 1 addition & 0 deletions cc/stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void *malloc(int size)
if (malloc_pointer_head == 0) {
char *p = brk(0);
int size = 0x32000000;
brk(p + size);
// printf("init %d\n", p);
malloc_pointer_head = p;
malloc_remaining_size = size;
Expand Down
1 change: 1 addition & 0 deletions ld/stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void *malloc(int size)
if (malloc_pointer_head == 0) {
char *p = brk(0);
int size = 0x32000000;
brk(p + size);
// printf("init %d\n", p);
malloc_pointer_head = p;
malloc_remaining_size = size;
Expand Down

0 comments on commit 395ef1b

Please sign in to comment.