Subversion Repositories Kolibri OS

Rev

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

Rev 1369 Rev 1376
Line 55... Line 55...
55
;;
55
;;
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 57... Line 57...
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: 1369 $
60
$Revision: 1376 $
61
 
61
 
Line 62... Line 62...
62
 
62
 
63
USE_COM_IRQ     equ 1      ; make irq 3 and irq 4 available for PCI devices
63
USE_COM_IRQ     equ 1      ; make irq 3 and irq 4 available for PCI devices
64
 
64
 
Line 65... Line 65...
65
; Enabling the next line will enable serial output console
65
; Enabling the next line will enable serial output console
66
;debug_com_base  equ 0x3f8  ; 0x3f8 is com1, 0x2f8 is com2, 0x3e8 is com3, 0x2e8 is com4, no irq's are used
66
debug_com_base  equ 0x3f8  ; 0x3f8 is com1, 0x2f8 is com2, 0x3e8 is com3, 0x2e8 is com4, no irq's are used
67
 
67
 
Line 580... Line 580...
580
        mov    [mem_BACKGROUND], 4
580
        mov    [mem_BACKGROUND], 4
581
        mov [img_background], static_background_data
581
        mov [img_background], static_background_data
Line 582... Line 582...
582
 
582
 
Line 583... Line -...
583
        mov     [SLOT_BASE + 256 + APPDATA.dir_table], sys_pgdir - OS_BASE
-
 
584
 
-
 
585
        stdcall kernel_alloc, 0x10000/8
-
 
586
        mov     edi, eax
-
 
587
        mov     [network_free_ports], eax
-
 
588
        or      eax, -1
-
 
589
        mov     ecx, 0x10000/32
-
 
590
        rep     stosd
583
        mov     [SLOT_BASE + 256 + APPDATA.dir_table], sys_pgdir - OS_BASE
Line 591... Line 584...
591
 
584
 
Line 592... Line 585...
592
; REDIRECT ALL IRQ'S TO INT'S 0x20-0x2f
585
; REDIRECT ALL IRQ'S TO INT'S 0x20-0x2f
Line 842... Line 835...
842
           stdcall map_page,tss._io_map_0,\
835
           stdcall map_page,tss._io_map_0,\
843
                   [SLOT_BASE+256+APPDATA.io_map], PG_MAP
836
                   [SLOT_BASE+256+APPDATA.io_map], PG_MAP
844
           stdcall map_page,tss._io_map_1,\
837
           stdcall map_page,tss._io_map_1,\
845
                   [SLOT_BASE+256+APPDATA.io_map+4], PG_MAP
838
                   [SLOT_BASE+256+APPDATA.io_map+4], PG_MAP
Line 846... Line -...
846
 
-
 
847
  mov ax,[OS_BASE+0x10000+bx_from_load]
-
 
848
  cmp ax,'r1'           ; if not rused ram disk - load network configuration from files {SPraid.simba}
-
 
849
  je  no_st_network
-
 
850
        call set_network_conf
-
 
851
  no_st_network:
-
 
852
 
839
 
853
; LOAD FIRST APPLICATION
840
; LOAD FIRST APPLICATION
Line 854... Line 841...
854
        cli
841
        cli
855
 
842
 
Line 5388... Line 5375...
5388
     mov   [esp+32],eax
5375
     mov   [esp+32],eax
5389
     ret
5376
     ret
Line 5390... Line 5377...
5390
 
5377
 
Line 5391... Line -...
5391
align 4
-
 
5392
 
-
 
5393
stack_driver_stat:
-
 
5394
 
-
 
5395
     call  app_stack_handler            ; Stack status
-
 
5396
 
-
 
5397
;     mov   [check_idle_semaphore],5    ; enable these for zero delay
-
 
5398
;     call  change_task                 ; between sent packet
-
 
5399
 
-
 
5400
     mov   [esp+32],eax
-
 
5401
     ret
-
 
5402
 
-
 
5403
align 4
-
 
5404
 
-
 
5405
socket:                                 ; Socket interface
-
 
5406
     call  app_socket_handler
-
 
5407
 
-
 
5408
;     mov   [check_idle_semaphore],5    ; enable these for zero delay
-
 
5409
;     call  change_task                 ; between sent packet
-
 
5410
 
-
 
5411
     mov   [esp+36],eax
-
 
5412
     mov   [esp+24],ebx
-
 
5413
     ret
-
 
5414
 
-
 
5415
align 4
5378
align 4
Line 5416... Line 5379...
5416
 
5379
 
5417
read_from_hd:                           ; Read from hd - fn not in use
5380
read_from_hd:                           ; Read from hd - fn not in use
5418
 
5381