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:
parent
f3532081aa
commit
86f8662a4e
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue