Added the new (built-in) frame_buffer_console module to the build.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11375 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-02-15 00:18:27 +00:00
parent 4cf2fd241c
commit a621f3b6c1
3 changed files with 9 additions and 23 deletions
+1
View File
@@ -60,6 +60,7 @@ SubInclude OBOS_TOP src kernel core addons ;
SubInclude OBOS_TOP src kernel core arch ; SubInclude OBOS_TOP src kernel core arch ;
SubInclude OBOS_TOP src kernel core cache ; SubInclude OBOS_TOP src kernel core cache ;
SubInclude OBOS_TOP src kernel core device_manager ; SubInclude OBOS_TOP src kernel core device_manager ;
SubInclude OBOS_TOP src kernel core debug ;
SubInclude OBOS_TOP src kernel core disk_device_manager ; SubInclude OBOS_TOP src kernel core disk_device_manager ;
SubInclude OBOS_TOP src kernel core fs ; SubInclude OBOS_TOP src kernel core fs ;
SubInclude OBOS_TOP src kernel core messaging ; SubInclude OBOS_TOP src kernel core messaging ;
+6 -23
View File
@@ -11,26 +11,16 @@
#include <OS.h> #include <OS.h>
#include <KernelExport.h> #include <KernelExport.h>
#include <boot/kernel_args.h> #include <boot/kernel_args.h>
#include <console.h> #include <console.h>
#include <frame_buffer_console.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
// ToDo: this mechanism will be changed so that these lines can go away
#ifdef ARCH_x86
# include <arch/x86/console_dev.h>
#else
enum {
CONSOLE_OP_WRITEXY = 2376
};
#endif
#include <fb_console.h>
struct console_op_xy_struct { struct console_op_xy_struct {
int x; int x;
@@ -57,7 +47,7 @@ kprintf(const char *fmt, ...)
} }
} }
#if 0
void void
kprintf_xy(int x, int y, const char *fmt, ...) kprintf_xy(int x, int y, const char *fmt, ...)
{ {
@@ -75,18 +65,11 @@ kprintf_xy(int x, int y, const char *fmt, ...)
ioctl(console_fd, CONSOLE_OP_WRITEXY, &buf, ret + sizeof(buf.x) + sizeof(buf.y)); ioctl(console_fd, CONSOLE_OP_WRITEXY, &buf, ret + sizeof(buf.x) + sizeof(buf.y));
} }
} }
#endif
int int
con_init(kernel_args *args) con_init(kernel_args *args)
{ {
/* now run the oddballs we have, consoles at present */ frame_buffer_console_init(args);
// ToDo: this mechanism will be changed so that these lines can go away return B_OK;
#ifdef ARCH_x86
console_dev_init(args);
#endif
fb_console_dev_init(args);
console_fd = open("/dev/console", O_RDWR);
return console_fd >= 0;
} }
+2
View File
@@ -43,6 +43,7 @@
extern module_info gDeviceManagerModule; extern module_info gDeviceManagerModule;
extern module_info gDeviceRootModule; extern module_info gDeviceRootModule;
extern module_info gDeviceForDriversModule; extern module_info gDeviceForDriversModule;
extern module_info gFrameBufferConsoleModule;
// file systems // file systems
extern module_info gRootFileSystem; extern module_info gRootFileSystem;
@@ -54,6 +55,7 @@ static module_info *sBuiltInModules[] = {
&gDeviceManagerModule, &gDeviceManagerModule,
&gDeviceRootModule, &gDeviceRootModule,
&gDeviceForDriversModule, &gDeviceForDriversModule,
&gFrameBufferConsoleModule,
&gRootFileSystem, &gRootFileSystem,
&gDeviceFileSystem, &gDeviceFileSystem,