diff options
Diffstat (limited to 'src/modules/test')
-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; } |