Subversion Repositories Kolibri OS

Rev

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

Rev 1707 Rev 1710
Line 56... Line 56...
56
;;
56
;;
57
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
57
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 58... Line 58...
58
 
58
 
Line 59... Line 59...
59
include 'macros.inc'
59
include 'macros.inc'
Line 60... Line 60...
60
 
60
 
Line 61... Line 61...
61
$Revision: 1707 $
61
$Revision: 1710 $
Line 196... Line 196...
196
 
196
 
Line 197... Line 197...
197
diff16 "end of tmp_gdt ",0,$
197
diff16 "end of tmp_gdt ",0,$
Line 198... Line -...
198
 
-
 
Line 199... Line 198...
199
include "data16.inc"
198
 
200
 
199
include "data16.inc"
Line 201... Line 200...
201
diff16 "end of data16  ",0,$
200
 
Line 499... Line 498...
499
	mov	[graph_data_l+2],ax
498
	mov	[graph_data_l+2],ax
500
	shr	eax,16
499
	shr	eax,16
501
	mov	[graph_data_l+4],al
500
	mov	[graph_data_l+4],al
502
	mov	[graph_data_l+7],ah
501
	mov	[graph_data_l+7],ah
Line -... Line 502...
-
 
502
	
503
 
503
	or      [KERNEL_ALLOC_FLAG], dword PG_NOCACHE
504
	stdcall kernel_alloc, [_WinMapSize]
504
	stdcall kernel_alloc, [_WinMapSize]
-
 
505
	mov     [_WinMapAddress], eax
Line 505... Line 506...
505
	mov [_WinMapAddress], eax
506
	xor     [KERNEL_ALLOC_FLAG], dword PG_NOCACHE
506
 
507
 
507
	xor  eax,eax
508
	xor  eax,eax
508
	inc  eax
509
	inc  eax
Line 892... Line 893...
892
.bll1:	in	al, 0x60	; wait for ESC key press
893
.bll1:	in	al, 0x60	; wait for ESC key press
893
	cmp	al, 129
894
	cmp	al, 129
894
	jne	.bll1
895
	jne	.bll1
895
end if
896
end if
Line 896... Line -...
896
 
-
 
897
;       mov   [ENABLE_TASKSWITCH],byte 1        ; multitasking enabled
-
 
898
 
-
 
899
; UNMASK ALL IRQ'S
-
 
900
 
-
 
901
;        mov   esi,boot_allirqs
-
 
902
;        call  boot_log
-
 
903
;
-
 
904
;        cli                          ;guarantee forbidance of interrupts.
-
 
905
;        mov   al,0                   ; unmask all irq's
-
 
906
;        out   0xA1,al
-
 
907
;        out   0x21,al
-
 
908
;
-
 
909
;        mov   ecx,32
-
 
910
;
-
 
911
;     ready_for_irqs:
-
 
912
;
-
 
913
;        mov   al,0x20                ; ready for irqs
-
 
914
;        out   0x20,al
-
 
915
;        out   0xa0,al
-
 
916
;
-
 
Line 917... Line 897...
917
;        loop  ready_for_irqs         ; flush the queue
897
 
Line 918... Line -...
918
 
-
 
919
	stdcall attach_int_handler, 1, irq1, 0
898
 
920
 
899
	stdcall attach_int_handler, 1, irq1, 0
921
;        mov    [dma_hdd],1
900
 
Line 922... Line 901...
922
	cmp	[IDEContrRegsBaseAddr], 0
901
	cmp	[IDEContrRegsBaseAddr], 0
923
	setnz	[dma_hdd]
902
	setnz	[dma_hdd]
Line 924... Line 903...
924
	mov [timer_ticks_enable],1		; for cd driver
903
	mov [timer_ticks_enable],1		; for cd driver
925
 
-
 
926
	sti
-
 
Line 927... Line 904...
927
	call change_task
904
 
Line 928... Line 905...
928
 
905
	sti
929
	jmp osloop
906
	call change_task
Line 930... Line 907...
930
 
907
 
Line 2236... Line 2213...
2236
 
2213
 
2237
    mov   eax, [img_background]
2214
    mov   eax, [img_background]
2238
    test  ecx, ecx
2215
    test  ecx, ecx
2239
    jz	  @f
2216
    jz	  @f
-
 
2217
    cmp   eax, static_background_data
2240
    cmp   eax, static_background_data
2218
 
2241
    jz	  .ret
2219
    jz	  .ret
2242
@@:
2220
@@:
2243
    mov ebx, [mem_BACKGROUND]
2221
    mov ebx, [mem_BACKGROUND]
2244
    add ebx, 4095
2222
    add ebx, 4095
Line 2724... Line 2702...
2724
	mov	edx, [TASK_BASE]      ; return whole screen draw area for this app
2702
	mov	edx, [TASK_BASE]      ; return whole screen draw area for this app
2725
	add	edx, draw_data - CURRENT_TASK
2703
	add	edx, draw_data - CURRENT_TASK
2726
	mov	[edx + RECT.left], 0
2704
	mov	[edx + RECT.left], 0
2727
	mov	[edx + RECT.top], 0
2705
	mov	[edx + RECT.top], 0
2728
	mov	eax, [Screen_Max_X]
2706
	mov	eax, [Screen_Max_X]
-
 
2707
 
2729
	mov	[edx + RECT.right], eax
2708
	mov	[edx + RECT.right], eax
2730
	mov	eax, [Screen_Max_Y]
2709
	mov	eax, [Screen_Max_Y]
2731
	mov	[edx + RECT.bottom], eax
2710
	mov	[edx + RECT.bottom], eax
Line 2732... Line 2711...
2732
 
2711