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/main.c | |
parent | 6a52d123672b7a00af6e22b4c138205be2042a94 (diff) | |
download | TCE-4886faa3dce410543eda2139221e03959e73a747.tar.gz TCE-4886faa3dce410543eda2139221e03959e73a747.zip |
Added user mode support and monitor_writeDec
Diffstat (limited to 'src/modules/test/main.c')
-rw-r--r-- | src/modules/test/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; } |