mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:57:36 +00:00
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:
parent
e60577aab6
commit
53ddbce0b3
3 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ BXVGADevice& BXVGADevice::the()
|
||||||
}
|
}
|
||||||
|
|
||||||
BXVGADevice::BXVGADevice()
|
BXVGADevice::BXVGADevice()
|
||||||
: BlockDevice(82, 413)
|
: BlockDevice(29, 0)
|
||||||
{
|
{
|
||||||
s_the = this;
|
s_the = this;
|
||||||
m_framebuffer_address = PhysicalAddress(find_framebuffer_address());
|
m_framebuffer_address = PhysicalAddress(find_framebuffer_address());
|
||||||
|
|
|
@ -22,7 +22,7 @@ echo "done"
|
||||||
echo -n "setting up device nodes... "
|
echo -n "setting up device nodes... "
|
||||||
mkdir -p mnt/dev
|
mkdir -p mnt/dev
|
||||||
mkdir -p mnt/dev/pts
|
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/tty0 c 4 0
|
||||||
mknod mnt/dev/tty1 c 4 1
|
mknod mnt/dev/tty1 c 4 1
|
||||||
mknod mnt/dev/tty2 c 4 2
|
mknod mnt/dev/tty2 c 4 2
|
||||||
|
|
|
@ -23,7 +23,7 @@ WSScreen::WSScreen(unsigned width, unsigned height)
|
||||||
ASSERT(!s_the);
|
ASSERT(!s_the);
|
||||||
s_the = this;
|
s_the = this;
|
||||||
m_cursor_location = rect().center();
|
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);
|
ASSERT(m_framebuffer_fd >= 0);
|
||||||
|
|
||||||
set_resolution(width, height);
|
set_resolution(width, height);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue