CeDOS - Commit 0f60aea4

Graphics: Fixed a bug that would cause crashes occasionaly
Celina Sophie Kalus
Mon, 10 Apr 2023 21:09:19 +0200
1 files changed, 4 insertions(+), 2 deletions(-)
M src/kernel/drivers/graphics.ssrc/kernel/drivers/graphics.s

@@ -10,6 +10,9 @@ cli

pusha + # preserve protected mode IDT + sidtl (pmode_IDT) + mov %esp, %eax mov %eax, %esi

@@ -58,7 +61,6 @@ movw %ax, %es

movw %ax, %fs # load real mode interrupt descriptor table - sidt (pmode_IDT) lidt (realmode_IDT) # switch to real mode

@@ -86,7 +88,7 @@ int $0x10

cli - lidt (pmode_IDT) + lidtl (pmode_IDT) mov %cr0, %eax or $0x00000001, %eax