kernel.set_screen: allways do force resetting

git-svn-id: svn://kolibrios.org@4286 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2013-11-24 07:01:31 +00:00
parent 7cfde6baf4
commit 8a90112e87

View File

@ -1108,7 +1108,7 @@ end if
mov al, 1 ; at least one CPU mov al, 1 ; at least one CPU
@@: @@:
DEBUGF 1, "K : %d CPU detected\n", eax DEBUGF 1, "K : %d CPU detected\n", eax
include "detect/vortex86.inc" ; Vortex86 SoC detection code include "detect/vortex86.inc" ; Vortex86 SoC detection code
DEBUGF 1, "K : BAR0 %x \n", [IDE_BAR0_val]:4 DEBUGF 1, "K : BAR0 %x \n", [IDE_BAR0_val]:4
@ -3251,10 +3251,10 @@ sys_cpuusage:
; Event mask (+71) ; Event mask (+71)
mov EAX, dword [ECX+CURRENT_TASK+TASKDATA.event_mask] mov EAX, dword [ECX+CURRENT_TASK+TASKDATA.event_mask]
stosd stosd
; Keyboard mode (+75) ; Keyboard mode (+75)
mov al, byte [ecx*8 + SLOT_BASE + APPDATA.keyboard_mode] mov al, byte [ecx*8 + SLOT_BASE + APPDATA.keyboard_mode]
stosb stosb
pop esi pop esi
pop edi pop edi
@ -5611,13 +5611,7 @@ set_screen:
; eax - new Screen_Max_X ; eax - new Screen_Max_X
; ecx - new BytesPerScanLine ; ecx - new BytesPerScanLine
; edx - new Screen_Max_Y ; edx - new Screen_Max_Y
cmp eax, [Screen_Max_X]
jne .set
cmp edx, [Screen_Max_Y]
jne .set
ret
.set:
pushfd pushfd
cli cli