From 272e29533c6a73d811d82338fa14f6a5aca55fb9 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Thu, 15 Mar 2012 11:15:06 +0000 Subject: [PATCH] Fix for drawbackground mode of tiled. git-svn-id: svn://kolibrios.org@2464 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 4cc582c879..c3983ff52e 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -2444,6 +2444,12 @@ sys_background: mov eax, [BgrDataWidth] imul eax, [BgrDataHeight] lea eax, [eax*3] +; it is reserved with aligned to the boundary of 4 KB pages, +; otherwise there may be exceptions a page fault for vesa20_drawbackground_tiled +; because the 32 bit read is used for high performance: "mov eax,[esi]" + shr eax, 12 + inc eax + shl eax, 12 mov [mem_BACKGROUND], eax ; get memory for new background stdcall kernel_alloc, eax