Subversion Repositories Kolibri OS

Rev

Rev 863 | Rev 886 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 863 Rev 864
Line 56... Line 56...
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
57
 
57
 
Line 58... Line 58...
58
include 'macros.inc'
58
include 'macros.inc'
Line 59... Line 59...
59
 
59
 
Line 60... Line 60...
60
$Revision: 863 $
60
$Revision: 864 $
Line 61... Line 61...
61
 
61
 
Line 139... Line 139...
139
 
139
 
Line 140... Line 140...
140
extrn _init
140
extrn _init
141
extrn _init_mm
141
extrn _init_mm
Line -... Line 142...
-
 
142
 
-
 
143
extrn @core_alloc@4
142
 
144
 
143
extrn @init_heap@8
145
extrn @init_heap@8
144
extrn @find_large_md@4
146
extrn @find_large_md@4
145
extrn @find_small_md@4
147
extrn @find_small_md@4
146
extrn @phis_alloc@4
148
extrn @phis_alloc@4
Line 147... Line 149...
147
extrn @mem_alloc@8
149
extrn @mem_alloc@8
Line 148... Line 150...
148
 
150
 
149
extrn _alloc_kernel_space@4
-
 
150
 
151
extrn @heap_alloc@8
Line 151... Line 152...
151
extrn _slab_cache_init
152
 
Line 152... Line -...
152
extrn _alloc_pages
-
 
153
extrn _alloc_page
-
 
154
 
153
extrn _slab_cache_init
Line -... Line 154...
-
 
154
extrn _alloc_page
-
 
155
 
-
 
156
extrn _get_free_mem
-
 
157
 
155
extrn _get_free_mem
158
extrn _bx_from_load
Line 156... Line 159...
156
 
159
 
Line 157... Line 160...
157
alloc_kernel_space equ _alloc_kernel_space@4
160
 
Line 553... Line 556...
553
	   call init_LFB
556
	   call init_LFB
554
           call init_fpu
557
           call init_fpu
555
           call init_malloc
558
           call init_malloc
556
 
559
 
Line 557... Line 560...
557
	   stdcall alloc_kernel_space, 0x51000
560
           mov ecx, 0x51000
-
 
561
           xor edx, edx
-
 
562
           call @mem_alloc@8
558
	   mov [default_io_map], eax
563
	   mov [default_io_map], eax
Line 559... Line 564...
559
 
564
 
560
	   add eax, 0x2000
565
	   add eax, 0x2000
561
	   mov [ipc_tmp], eax
566
	   mov [ipc_tmp], eax
Line 609... Line 614...
609
	inc  eax
614
	inc  eax
610
	mov   [BgrDrawMode],eax
615
	mov   [BgrDrawMode],eax
611
	mov   [BgrDataWidth],eax
616
	mov   [BgrDataWidth],eax
612
	mov   [BgrDataHeight],eax
617
	mov   [BgrDataHeight],eax
613
	mov    [mem_BACKGROUND],4095
618
        mov ecx, 4095
-
 
619
        mov edx, PG_SW
-
 
620
	mov    [mem_BACKGROUND],4095
614
	stdcall kernel_alloc, [mem_BACKGROUND]
621
        call @mem_alloc@8
615
	mov [img_background], eax
622
	mov [img_background], eax
616
 
623
 
Line 617... Line 624...
617
        mov     [SLOT_BASE + 256 + APPDATA.dir_table], _sys_pdbr + (0x100000000-OS_BASE)
624
        mov     [SLOT_BASE + 256 + APPDATA.dir_table], _sys_pdbr + (0x100000000-OS_BASE)
Line 618... Line 625...
618
 
625
 
Line 2288... Line 2295...
2288
    mov [BgrDataHeight],eax
2295
    mov [BgrDataHeight],eax
2289
@@:
2296
@@:
2290
    mov  eax,[BgrDataWidth]
2297
    mov  eax,[BgrDataWidth]
2291
    imul eax,[BgrDataHeight]
2298
    imul eax,[BgrDataHeight]
2292
    lea  eax,[eax*3]
2299
    lea  ecx,[eax*3]
2293
    mov  [mem_BACKGROUND],eax
2300
    mov  [mem_BACKGROUND],ecx
2294
; get memory for new background
2301
; get memory for new background
2295
    stdcall kernel_alloc, eax
2302
    mov edx, PG_SW
-
 
2303
    stdcall @mem_alloc@8
2296
    test eax, eax
2304
    test eax, eax
2297
    jz .exit_mem
2305
    jz .exit_mem
2298
    mov [img_background], eax
2306
    mov [img_background], eax
2299
.exit_mem:
2307
.exit_mem:
2300
    popad
2308
    popad
2301
	mov	[bgrlock], 0
2309
	mov	[bgrlock], 0