summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/devarch.c
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2011-04-15 21:47:11 +0200
committeraiju <devnull@localhost>2011-04-15 21:47:11 +0200
commit6ca93675ed11b7eb2615a4e5d005bfc18496d32a (patch)
tree3af399e0b9c99d30cf18de482de29a46879b8d42 /sys/src/9/pc/devarch.c
parent0159ee648e182cb6617596bf4f3ff45bf632610b (diff)
added /dev/mordor
Diffstat (limited to 'sys/src/9/pc/devarch.c')
-rw-r--r--sys/src/9/pc/devarch.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/src/9/pc/devarch.c b/sys/src/9/pc/devarch.c
index 3228736ee..c45271682 100644
--- a/sys/src/9/pc/devarch.c
+++ b/sys/src/9/pc/devarch.c
@@ -987,6 +987,20 @@ archctlwrite(Chan*, void *a, long n, vlong)
return n;
}
+static long
+mordorread(Chan*, void*, long, vlong)
+{
+ error("one does not simply read from mordor");
+ return 0;
+}
+
+static long
+mordorwrite(Chan*, void*, long, vlong)
+{
+ error("one does not simply write into mordor");
+ return 0;
+}
+
void
archinit(void)
{
@@ -1035,6 +1049,7 @@ archinit(void)
addarchfile("cputype", 0444, cputyperead, nil);
addarchfile("archctl", 0664, archctlread, archctlwrite);
+ addarchfile("mordor", 0666, mordorread, mordorwrite);
}
/*