mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03: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
Notes:
sideshowbarker
2024-07-19 12:43:19 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/53ddbce0b3d Pull-request: https://github.com/SerenityOS/serenity/pull/444
@ -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());
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user