summaryrefslogtreecommitdiff
path: root/src/user
diff options
context:
space:
mode:
Diffstat (limited to 'src/user')
-rw-r--r--src/user/lib/Makefile2
-rw-r--r--src/user/test/main.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/user/lib/Makefile b/src/user/lib/Makefile
index 4019e88..ff916bf 100644
--- a/src/user/lib/Makefile
+++ b/src/user/lib/Makefile
@@ -6,7 +6,7 @@ ExtObj = $(SrcPath)/common/_common.o
include $(SrcPath)/common.make
-CFLAGS = -I$(SrcPath)/common/include -I$(SrcPath)/user/lib/include
+CFLAGS += -I$(SrcPath)/common/include -I$(SrcPath)/user/lib/include
LDFLAGS += -r
diff --git a/src/user/test/main.c b/src/user/test/main.c
index 945c530..ec14c21 100644
--- a/src/user/test/main.c
+++ b/src/user/test/main.c
@@ -28,12 +28,14 @@ void thread_cascade(void* d) {
}
int main() {
- printk("Hi world from test module !\n");
+ printk("(test app) malloc(42) = ");
+ printk_hex((uint32_t)malloc(42));
+ printk("\n");
- printk(" -> Creating thread cascade (total 2**8 = 256 threads)\n");
+ printk("(test app) Creating thread cascade (total 2**8 = 256 threads)\n");
thread_new(thread_cascade, (void*)8);
- printk(" -> Main thread now sleeping... forever...\n");
+ printk("(test app) Main thread now sleeping... forever...\n");
while (1) {
thread_sleep(1000);
}