Subversion Repositories Kolibri OS

Rev

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

Rev 2267 Rev 2288
Line 66... Line 66...
66
;;
66
;;
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 68... Line 68...
68
 
68
 
Line 69... Line 69...
69
include 'macros.inc'
69
include 'macros.inc'
Line 70... Line 70...
70
 
70
 
Line 71... Line 71...
71
$Revision: 2267 $
71
$Revision: 2288 $
Line 169... Line 169...
169
        cli                             ; disable all irqs
169
        cli                             ; disable all irqs
170
        cld
170
        cld
171
        mov     al,255                  ; mask all irqs
171
        mov     al, 255                 ; mask all irqs
172
        out     0xa1,al
172
        out     0xa1, al
173
        out     0x21,al
173
        out     0x21, al
-
 
174
   l.5:
174
   l.5: in      al, 0x64                ; Enable A20
175
        in      al, 0x64                ; Enable A20
175
        test    al, 2
176
        test    al, 2
176
        jnz     l.5
177
        jnz     l.5
177
        mov     al, 0xD1
178
        mov     al, 0xD1
178
        out     0x64, al
179
        out     0x64, al
-
 
180
   l.6:
179
   l.6: in      al, 0x64
181
        in      al, 0x64
180
        test    al, 2
182
        test    al, 2
181
        jnz     l.6
183
        jnz     l.6
182
        mov     al, 0xDF
184
        mov     al, 0xDF
183
        out     0x60, al
185
        out     0x60, al
-
 
186
   l.7:
184
   l.7: in      al, 0x64
187
        in      al, 0x64
185
        test    al, 2
188
        test    al, 2
186
        jnz     l.7
189
        jnz     l.7
187
        mov     al, 0xFF
190
        mov     al, 0xFF
188
        out     0x64, al
191
        out     0x64, al
Line 980... Line 983...
980
 
983
 
981
; A 'All set - press ESC to start' messages if need
984
; A 'All set - press ESC to start' messages if need
982
if preboot_blogesc
985
if preboot_blogesc
983
        mov     esi, boot_tasking
986
        mov     esi, boot_tasking
-
 
987
        call    boot_log
984
        call    boot_log
988
.bll1:
985
.bll1:  in      al, 0x60        ; wait for ESC key press
989
        in      al, 0x60        ; wait for ESC key press
986
        cmp     al, 129
990
        cmp     al, 129
987
        jne     .bll1
991
        jne     .bll1
Line 988... Line 992...
988
end if
992
end if
Line 1976... Line 1980...
1976
     mov  [shutdown_processes],eax
1980
        mov     [shutdown_processes], eax
1977
     and  dword [esp+32], 0
1981
        and     dword [esp+32], 0
1978
 exit_for_anyone:
1982
 exit_for_anyone:
1979
     ret
1983
        ret
1980
  uglobal
1984
  uglobal
1981
   shutdown_processes: dd 0x0
1985
   shutdown_processes:
-
 
1986
                       dd 0x0
1982
  endg
1987
  endg
1983
;------------------------------------------------------------------------------
1988
;------------------------------------------------------------------------------
1984
sysfn_terminate:        ; 18.2 = TERMINATE
1989
sysfn_terminate:        ; 18.2 = TERMINATE
1985
     cmp  ecx,2
1990
        cmp     ecx, 2
1986
     jb   noprocessterminate
1991
        jb      noprocessterminate
Line 2777... Line 2782...
2777
 
2782
 
2778
align 4
2783
align 4
2779
sys_clock:
2784
sys_clock:
2780
        cli
2785
        cli
-
 
2786
  ; Mikhail Lisovin  xx Jan 2005
2781
  ; Mikhail Lisovin  xx Jan 2005
2787
  @@:
2782
  @@:   mov   al, 10
2788
        mov     al, 10
2783
        out   0x70, al
2789
        out     0x70, al
2784
        in    al, 0x71
2790
        in      al, 0x71
2785
        test  al, al
2791
        test    al, al
2786
        jns   @f
2792
        jns     @f
Line 2814... Line 2820...
2814
align 4
2820
align 4
Line 2815... Line 2821...
2815
 
2821
 
Line 2816... Line 2822...
2816
sys_date:
2822
sys_date:
-
 
2823
 
2817
 
2824
        cli
2818
        cli
2825
  @@:
2819
  @@:   mov   al, 10
2826
        mov     al, 10
2820
        out   0x70, al
2827
        out     0x70, al
2821
        in    al, 0x71
2828
        in      al, 0x71
2822
        test  al, al
2829
        test    al, al
Line 3327... Line 3334...
3327
        in    al,0x61
3334
        in      al, 0x61
3328
        and   al,0x10
3335
        and     al, 0x10
3329
        mov   ah,al
3336
        mov     ah, al
3330
        cld
3337
        cld
Line -... Line 3338...
-
 
3338
 
3331
 
3339
 cnt1:
3332
 cnt1:  in    al,0x61
3340
        in      al, 0x61
3333
        and   al,0x10
3341
        and     al, 0x10
3334
        cmp   al,ah
3342
        cmp     al, ah
Line 3335... Line 3343...
3335
        jz    cnt1
3343
        jz      cnt1
Line 4176... Line 4184...
4176
        loop    @b
4184
        loop    @b
4177
        popad
4185
        popad
4178
        ret
4186
        ret
Line 4179... Line 4187...
4179
 
4187
 
-
 
4188
uglobal
4180
uglobal
4189
  msg_board_data:
4181
  msg_board_data: times 4096 db 0
4190
                  times 4096 db 0
4182
  msg_board_count dd 0x0
4191
  msg_board_count dd 0x0
Line 4183... Line 4192...
4183
endg
4192
endg