diff options
author | Robert Morris <[email protected]> | 2019-05-31 11:45:42 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-05-31 11:45:42 -0400 |
commit | 5d34fa2a489940f19ee6c4728e4b11b6d8ffad01 (patch) | |
tree | 98bb91986da866684aa0159d3e44991ea8a1a87c /usertests.c | |
parent | 2ec1959fd1016a18ef3b2d154ce7076be8f237e4 (diff) | |
download | xv6-labs-5d34fa2a489940f19ee6c4728e4b11b6d8ffad01.tar.gz xv6-labs-5d34fa2a489940f19ee6c4728e4b11b6d8ffad01.tar.bz2 xv6-labs-5d34fa2a489940f19ee6c4728e4b11b6d8ffad01.zip |
-initrd fs.img, ramdisk.c, file system
Diffstat (limited to 'usertests.c')
-rw-r--r-- | usertests.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/usertests.c b/usertests.c index 3cd8b34..292319e 100644 --- a/usertests.c +++ b/usertests.c @@ -5,7 +5,6 @@ #include "fs.h" #include "fcntl.h" #include "syscall.h" -#include "traps.h" #include "memlayout.h" char buf[8192]; @@ -1713,35 +1712,6 @@ fsfull() printf(1, "fsfull test finished\n"); } -void -uio() -{ - #define RTC_ADDR 0x70 - #define RTC_DATA 0x71 - - ushort port = 0; - uchar val = 0; - int pid; - - printf(1, "uio test\n"); - pid = fork(); - if(pid == 0){ - port = RTC_ADDR; - val = 0x09; /* year */ - /* http://wiki.osdev.org/Inline_Assembly/Examples */ - asm volatile("outb %0,%1"::"a"(val), "d" (port)); - port = RTC_DATA; - asm volatile("inb %1,%0" : "=a" (val) : "d" (port)); - printf(1, "uio: uio succeeded; test FAILED\n"); - exit(); - } else if(pid < 0){ - printf (1, "fork failed\n"); - exit(); - } - wait(); - printf(1, "uio test done\n"); -} - void argptest() { int fd; @@ -1813,8 +1783,6 @@ main(int argc, char *argv[]) forktest(); bigdir(); // slow - uio(); - exectest(); exit(); |