Kernel: Use established device name and number for framebuffer

This is to prepare for other framebuffer implementations, for which it
would be inappropriate to use the /dev/bxvga device name.
This commit is contained in:
Conrad Pankoff 2019-08-12 20:53:26 +10:00 committed by Andreas Kling
parent e60577aab6
commit 53ddbce0b3
Notes: sideshowbarker 2024-07-19 12:43:19 +09:00
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ BXVGADevice& BXVGADevice::the()
}
BXVGADevice::BXVGADevice()
: BlockDevice(82, 413)
: BlockDevice(29, 0)
{
s_the = this;
m_framebuffer_address = PhysicalAddress(find_framebuffer_address());

View File

@ -22,7 +22,7 @@ echo "done"
echo -n "setting up device nodes... "
mkdir -p mnt/dev
mkdir -p mnt/dev/pts
mknod -m 666 mnt/dev/bxvga b 82 413
mknod -m 666 mnt/dev/fb0 b 29 0
mknod mnt/dev/tty0 c 4 0
mknod mnt/dev/tty1 c 4 1
mknod mnt/dev/tty2 c 4 2

View File

@ -23,7 +23,7 @@ WSScreen::WSScreen(unsigned width, unsigned height)
ASSERT(!s_the);
s_the = this;
m_cursor_location = rect().center();
m_framebuffer_fd = open("/dev/bxvga", O_RDWR);
m_framebuffer_fd = open("/dev/fb0", O_RDWR);
ASSERT(m_framebuffer_fd >= 0);
set_resolution(width, height);