1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

The VGA font is now available as /dev/vga.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-08-01 13:07:47 +02:00
parent f3532081aa
commit 86f8662a4e

View file

@ -25,6 +25,8 @@
#include <sortix/kernel/platform.h> #include <sortix/kernel/platform.h>
#include <libmaxsi/error.h> #include <libmaxsi/error.h>
#include <libmaxsi/memory.h> #include <libmaxsi/memory.h>
#include "fs/util.h"
#include "fs/devfs.h"
#include "vga.h" #include "vga.h"
#include "scheduler.h" #include "scheduler.h"
#include "syscall.h" #include "syscall.h"
@ -129,6 +131,12 @@ void Init()
PrintFontChar(vgafont, 'A'); PrintFontChar(vgafont, 'A');
PrintFontChar(vgafont, 'S'); PrintFontChar(vgafont, 'S');
#endif #endif
DevMemoryBuffer* vgamembuf = new DevMemoryBuffer(vgafont, vgafontsize,
false, false);
if ( !vgamembuf )
Panic("Unable to allocate vga font filesystem object");
if ( !DeviceFS::RegisterDevice("vgafont", vgamembuf) )
Panic("Unable to register vga font filesystem object");
} }
// Changes the position of the hardware cursor. // Changes the position of the hardware cursor.