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
1 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,8 @@
#include <sortix/kernel/platform.h>
#include <libmaxsi/error.h>
#include <libmaxsi/memory.h>
#include "fs/util.h"
#include "fs/devfs.h"
#include "vga.h"
#include "scheduler.h"
#include "syscall.h"
@ -129,6 +131,12 @@ void Init()
PrintFontChar(vgafont, 'A');
PrintFontChar(vgafont, 'S');
#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.