Links in devarch (#P)
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 1 Jul 2014 23:13:23 +0000 (16:13 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 1 Jul 2014 23:13:23 +0000 (16:13 -0700)
For a device to be built in to the kernel (and thus bindable), it needs to be
annotated with __devtab.

kern/arch/x86/devarch.c

index 5de6de8..f54c9b2 100644 (file)
@@ -477,7 +477,7 @@ static long archwrite(struct chan *c, void *a, long n, int64_t offset)
        return 0;
 }
 
        return 0;
 }
 
-struct dev archdevtab = {
+struct dev archdevtab __devtab = {
        'P',
        "arch",
 
        'P',
        "arch",