1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

Kernel: Block a signal from being dispatched again until handler returns.

We don't handle nesting yet, but this is a step in the right direction.
This commit is contained in:
Andreas Kling 2019-03-05 10:34:08 +01:00
parent b67d0a3632
commit 251293f2e1
6 changed files with 110 additions and 69 deletions

View file

@ -51,6 +51,8 @@ void BXVGADevice::set_register(word index, word data)
void BXVGADevice::set_resolution(int width, int height)
{
m_framebuffer_size = { width, height };
set_register(VBE_DISPI_INDEX_ENABLE, VBE_DISPI_DISABLED);
set_register(VBE_DISPI_INDEX_XRES, (word)width);
set_register(VBE_DISPI_INDEX_YRES, (word)height);