diff options
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, 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; } |