diff options
author | Alexis211 <alexis211@gmail.com> | 2010-02-09 12:44:06 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-02-09 12:44:06 +0100 |
commit | 4886faa3dce410543eda2139221e03959e73a747 (patch) | |
tree | e74cedd7b8a89005c802ddd3ce38f7ab5b8c4fb4 /src/modules/test | |
parent | 6a52d123672b7a00af6e22b4c138205be2042a94 (diff) | |
download | TCE-4886faa3dce410543eda2139221e03959e73a747.tar.gz TCE-4886faa3dce410543eda2139221e03959e73a747.zip |
Added user mode support and monitor_writeDec
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, 7 insertions, 3 deletions
diff --git a/src/modules/test/Makefile b/src/modules/test/Makefile index 105aa54..d12e57d 100644 --- a/src/modules/test/Makefile +++ b/src/modules/test/Makefile @@ -4,7 +4,7 @@ CC = gcc CFLAGS = -nostdlib -nostartfiles -nodefaultlibs -fno-builtin -fno-stack-protector -Wall -Wextra -I ../../library LD = ld -LDFLAGS = -T ../../library/link.ld -L ../../library +LDFLAGS = -T ../../library/link.ld -L ../../library -Map main.map Objects = main.o Outfile = test.elf diff --git a/src/modules/test/main.c b/src/modules/test/main.c index 3ac5cb5..fbb6eb8 100644 --- a/src/modules/test/main.c +++ b/src/modules/test/main.c @@ -2,7 +2,11 @@ int main() { printk("[module:test] Hi world !\n"); - thread_sleep(5000); - printk("[module:test] 5sec later...\n"); + thread_sleep(2000); + printk("[module:test] 2sec later...\n"); + printk("[module:test] Performing illegal read in kernel space...\n"); + int *a = (int*)0xE0000004; + if (*a == 0) printk("is null...\n"); + printk("[module:test] HAHA !!!!\n"); return 0; } |