Modify the way that the drivers dir works. We now only build dev.c and
do everything from there. I'd liek to move this into the main kernel once we figure out how to make the rest of our devices load at run time without needing to have small headers to include their init routines. This is a step along the way, but at present the console modules can't be loaded that way. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@174 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,9 +12,15 @@
|
||||
#include <elf.h>
|
||||
#include <Errors.h>
|
||||
#include <devfs.h>
|
||||
#include <drivers.h>
|
||||
#include <Drivers.h>
|
||||
#include <memheap.h>
|
||||
|
||||
#ifdef ARCH_x86
|
||||
#include <arch/x86/console_dev.h>
|
||||
#endif
|
||||
|
||||
#include <fb_console.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* These are mainly here to allow testing and this needs to be revisited */
|
||||
@@ -48,6 +54,14 @@ int dev_init(kernel_args *ka)
|
||||
}
|
||||
}
|
||||
|
||||
/* now run the oddballs we have, consoles at present */
|
||||
/* XXX - these are x86 and may not be applicable to all platforms */
|
||||
#ifdef ARCH_x86
|
||||
console_dev_init(ka);
|
||||
#endif
|
||||
|
||||
fb_console_dev_init(ka);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user