From cbadacbb881200b601c7b53b29aa0c1b78747692 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Tue, 23 Mar 2010 16:34:36 +0100 Subject: More work on IPC --- src/modules/test/Makefile | 2 +- src/modules/test/main.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/modules/test') diff --git a/src/modules/test/Makefile b/src/modules/test/Makefile index d12e57d..e571da9 100644 --- a/src/modules/test/Makefile +++ b/src/modules/test/Makefile @@ -1,7 +1,7 @@ .PHONY: clean, mrproper CC = gcc -CFLAGS = -nostdlib -nostartfiles -nodefaultlibs -fno-builtin -fno-stack-protector -Wall -Wextra -I ../../library +CFLAGS = -nostdlib -nostartfiles -nodefaultlibs -fno-builtin -fno-stack-protector -Wall -Wextra -I ../../include LD = ld LDFLAGS = -T ../../library/link.ld -L ../../library -Map main.map diff --git a/src/modules/test/main.c b/src/modules/test/main.c index 01ab836..9e03ee8 100644 --- a/src/modules/test/main.c +++ b/src/modules/test/main.c @@ -1,9 +1,11 @@ -#include +#include + +#define FACTOR 4 void thread2(void* d) { while (1) { - thread_sleep(1400); printk("$"); + thread_sleep(35*FACTOR); } } @@ -12,8 +14,8 @@ int main() { printk("[module:test] Creating new thread...\n"); thread_new(thread2, 0); while (1) { - thread_sleep(2000); printk("."); + thread_sleep(50*FACTOR); } return 0; } -- cgit v1.2.3