From 86f8662a4e334521d8f09741c83e0f4b2ced188f Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 1 Aug 2012 13:07:47 +0200 Subject: [PATCH] The VGA font is now available as /dev/vga. --- sortix/vga.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sortix/vga.cpp b/sortix/vga.cpp index 11297bae..02e0cc9e 100644 --- a/sortix/vga.cpp +++ b/sortix/vga.cpp @@ -25,6 +25,8 @@ #include #include #include +#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.