summaryrefslogtreecommitdiff
path: root/src/user
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-17 11:27:59 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-17 11:27:59 +0200
commit1c7c106b06b6a88502801e699ef99e72b7c625cd (patch)
tree5708a229b0d66e8eb82a953861e017915f8176b6 /src/user
parent5bc8549a8d7f5c9644f878fe3ca55761663a2fd0 (diff)
downloadTCE-1c7c106b06b6a88502801e699ef99e72b7c625cd.tar.gz
TCE-1c7c106b06b6a88502801e699ef99e72b7c625cd.zip
Fixed some nasty bugs.
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);
}