forked from KolibriOS/kolibrios
Embedded default skin in kernel.mnt
- little faster boot time. - no more problems when default.skn cannot be found. git-svn-id: svn://kolibrios.org@5635 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d4d026590b
commit
b43c39f2f1
BIN
kernel/trunk/default.skn
Normal file
BIN
kernel/trunk/default.skn
Normal file
Binary file not shown.
@ -22,8 +22,8 @@ read_skin_file:
|
|||||||
jnz .noskin
|
jnz .noskin
|
||||||
|
|
||||||
xchg eax, [skin_data]
|
xchg eax, [skin_data]
|
||||||
test eax, eax
|
cmp eax, _skin_file_default
|
||||||
jz @f
|
je @f
|
||||||
|
|
||||||
stdcall kernel_free, eax
|
stdcall kernel_free, eax
|
||||||
@@:
|
@@:
|
||||||
@ -86,9 +86,7 @@ ends
|
|||||||
align 4
|
align 4
|
||||||
load_default_skin:
|
load_default_skin:
|
||||||
mov [_skinh], 22
|
mov [_skinh], 22
|
||||||
mov ebx, _skin_file_default
|
mov [skin_data], _skin_file_default
|
||||||
call read_skin_file
|
|
||||||
ret
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
parse_skin_data:
|
parse_skin_data:
|
||||||
|
@ -13,7 +13,7 @@ $Revision$
|
|||||||
;
|
;
|
||||||
|
|
||||||
iglobal
|
iglobal
|
||||||
_skin_file_default db '/sys/DEFAULT.SKN',0
|
_skin_file_default file "default.skn"
|
||||||
endg
|
endg
|
||||||
|
|
||||||
struct SKIN_DATA
|
struct SKIN_DATA
|
||||||
|
@ -1085,7 +1085,7 @@ include "detect/vortex86.inc" ; Vortex86 SoC detection code
|
|||||||
|
|
||||||
call load_default_skin
|
call load_default_skin
|
||||||
|
|
||||||
;protect io permission map
|
; Protect I/O permission map
|
||||||
|
|
||||||
mov esi, [default_io_map]
|
mov esi, [default_io_map]
|
||||||
stdcall map_page, esi, [SLOT_BASE+256+APPDATA.io_map], PG_READ
|
stdcall map_page, esi, [SLOT_BASE+256+APPDATA.io_map], PG_READ
|
||||||
|
Loading…
Reference in New Issue
Block a user