summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--os/Makefile28
-rw-r--r--os/src/sbrk.c4
2 files changed, 27 insertions, 5 deletions
diff --git a/os/Makefile b/os/Makefile
index 909fd53..75bc575 100644
--- a/os/Makefile
+++ b/os/Makefile
@@ -7,8 +7,32 @@ include config.mk
include $(ROOTDIR)/FreeRTOS/config.mk
include $(ROOTDIR)/arch/config.mk
-TARGET_SRCS = src/init.c src/sbrk.c src/sprintf.c src/malloc.c src/free.c src/fclose.c src/read.c src/lseek.c src/write.c src/close.c src/osdebug.c \
-src/printf.c src/fstat.c src/isatty.c src/fprintf.c src/fio.c src/fflush.c src/fopen.c src/open.c src/hash-djb2.c src/filesystem.c src/fwrite.c
+TARGET_SRCS = \
+src/init.c \
+\
+src/filesystem.c \
+src/fio.c \
+src/hash-djb2.c \
+src/osdebug.c \
+\
+src/close.c \
+src/fstat.c \
+src/isatty.c \
+src/lseek.c \
+src/open.c \
+src/read.c \
+src/sbrk.c \
+src/write.c \
+\
+src/fclose.c \
+src/fflush.c \
+src/fopen.c \
+src/fprintf.c \
+src/free.c \
+src/fwrite.c \
+src/malloc.c \
+src/printf.c \
+src/sprintf.c \
include $(ROOTDIR)/target-rules.mk
diff --git a/os/src/sbrk.c b/os/src/sbrk.c
index ac8649c..53efe1e 100644
--- a/os/src/sbrk.c
+++ b/os/src/sbrk.c
@@ -23,8 +23,7 @@ __attribute__((constructor)) static void sbrk_init() {
sbrk_sem = xSemaphoreCreateMutex();
}
-void *_sbrk_r(struct _reent *ptr, ptrdiff_t incr)
-{
+void *_sbrk_r(struct _reent *ptr, ptrdiff_t incr) {
void *prev_heap_end, *next_heap_end, *ret;
void *stack_min = (void *) &__stack_start;
@@ -50,4 +49,3 @@ void *_sbrk_r(struct _reent *ptr, ptrdiff_t incr)
return ret;
}
-