diff options
author | Alexis211 <alexis211@gmail.com> | 2010-03-23 16:34:36 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-03-23 16:34:36 +0100 |
commit | cbadacbb881200b601c7b53b29aa0c1b78747692 (patch) | |
tree | c3230c4d2dc8f75d126826954b80a37770ad26c7 /src/modules | |
parent | 6266a24cd2f71a0bad0e55c1eedd480790868c0f (diff) | |
download | TCE-cbadacbb881200b601c7b53b29aa0c1b78747692.tar.gz TCE-cbadacbb881200b601c7b53b29aa0c1b78747692.zip |
More work on IPC
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/test/Makefile | 2 | ||||
-rw-r--r-- | src/modules/test/main.c | 8 |
2 files changed, 6 insertions, 4 deletions
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 <grapes/syscall.h> +#include <gc/syscall.h> + +#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; } |