forked from KolibriOS/kolibrios
fixed mtrr in VGA modes
git-svn-id: svn://kolibrios.org@490 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
4a8392eb9d
commit
189a524abf
@ -242,6 +242,8 @@ proc init_LFB
|
|||||||
mov [BOOT_VAR+0x901c],byte 2
|
mov [BOOT_VAR+0x901c],byte 2
|
||||||
ret
|
ret
|
||||||
@@:
|
@@:
|
||||||
|
call init_mtrr
|
||||||
|
|
||||||
mov edx, LFB_BASE
|
mov edx, LFB_BASE
|
||||||
mov esi, [LFBAddress]
|
mov esi, [LFBAddress]
|
||||||
mov edi, 0x00800000
|
mov edi, 0x00800000
|
||||||
@ -968,15 +970,13 @@ new_services:
|
|||||||
stdcall load_library, ebx
|
stdcall load_library, ebx
|
||||||
mov [esp+36], eax
|
mov [esp+36], eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@:
|
@@:
|
||||||
cmp eax, 20
|
cmp eax, 20
|
||||||
ja .fail
|
ja .fail
|
||||||
mov eax, ecx
|
mov eax, ecx
|
||||||
call user_realloc
|
call user_realloc
|
||||||
mov [esp+36], eax
|
mov [esp+36], eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.fail:
|
.fail:
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
mov [esp+36], eax
|
mov [esp+36], eax
|
||||||
|
@ -449,8 +449,6 @@ high_code:
|
|||||||
ltr ax
|
ltr ax
|
||||||
|
|
||||||
mov [LFBSize], 0x800000
|
mov [LFBSize], 0x800000
|
||||||
call init_mtrr
|
|
||||||
|
|
||||||
call init_LFB
|
call init_LFB
|
||||||
call init_fpu
|
call init_fpu
|
||||||
call init_malloc
|
call init_malloc
|
||||||
@ -567,9 +565,9 @@ no_lib_load:
|
|||||||
mov eax,char2
|
mov eax,char2
|
||||||
call file_system_lfn
|
call file_system_lfn
|
||||||
pop eax
|
pop eax
|
||||||
popad
|
popad
|
||||||
|
|
||||||
|
|
||||||
mov esi,boot_fonts
|
mov esi,boot_fonts
|
||||||
call boot_log
|
call boot_log
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user