Subversion Repositories Kolibri OS

Rev

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

Rev 4734 Rev 4741
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
74
$Revision: 4734 $
74
$Revision: 4741 $
Line 713... Line 713...
713
; Enable timer IRQ (IRQ0) and co-processor IRQ (IRQ13)
713
; Enable timer IRQ (IRQ0) and co-processor IRQ (IRQ13)
714
; they are used: when partitions are scanned, hd_read relies on timer
714
; they are used: when partitions are scanned, hd_read relies on timer
715
        call    unmask_timer
715
        call    unmask_timer
716
        stdcall enable_irq, 2               ; @#$%! PIC
716
        stdcall enable_irq, 2               ; @#$%! PIC
717
        stdcall enable_irq, 13              ; co-processor
717
        stdcall enable_irq, 13              ; co-processor
-
 
718
 
-
 
719
; Setup serial output console (if enabled)
-
 
720
if defined debug_com_base
-
 
721
 
-
 
722
        ; reserve port so nobody else will use it
-
 
723
        xor     ebx, ebx
-
 
724
        mov     ecx, debug_com_base
-
 
725
        mov     edx, debug_com_base+7
-
 
726
        call    r_f_port_area
-
 
727
 
-
 
728
        ; enable Divisor latch
-
 
729
        mov     dx, debug_com_base+3
-
 
730
        mov     al, 1 shl 7
-
 
731
        out     dx, al
-
 
732
 
-
 
733
        ; Set speed to 115200 baud (max speed)
-
 
734
        mov     dx, debug_com_base
-
 
735
        mov     al, 0x01
-
 
736
        out     dx, al
-
 
737
 
-
 
738
        mov     dx, debug_com_base+1
-
 
739
        mov     al, 0x00
-
 
740
        out     dx, al
-
 
741
 
-
 
742
        ; No parity, 8bits words, one stop bit, dlab bit back to 0
-
 
743
        mov     dx, debug_com_base+3
-
 
744
        mov     al, 3
-
 
745
        out     dx, al
-
 
746
 
-
 
747
        ; disable interrupts
-
 
748
        mov     dx, debug_com_base+1
-
 
749
        mov     al, 0
-
 
750
        out     dx, al
-
 
751
 
-
 
752
        ; clear +  enable fifo (64 bits)
-
 
753
        mov     dx, debug_com_base+2
-
 
754
        mov     al, 0x7 + 1 shl 5
-
 
755
        out     dx, al
-
 
756
 
-
 
757
end if
-
 
758
 
-
 
759
 
718
;-----------------------------------------------------------------------------
760
;-----------------------------------------------------------------------------
719
; show SVN version of kernel on the message board
761
; show SVN version of kernel on the message board
720
;-----------------------------------------------------------------------------
762
;-----------------------------------------------------------------------------
721
        mov     eax, [version_inf.rev]
763
        mov     eax, [version_inf.rev]
722
        DEBUGF  1, "K : kernel SVN r%d\n", eax
764
        DEBUGF  1, "K : kernel SVN r%d\n", eax
Line 986... Line 1028...
986
 
1028
 
987
        mov     esi, boot_setmouse
1029
        mov     esi, boot_setmouse
988
        call    boot_log
1030
        call    boot_log
Line 989... Line -...
989
        call    setmouse
-
 
990
 
-
 
991
; Setup serial output console (if enabled)
-
 
992
if defined debug_com_base
-
 
993
 
-
 
994
        ; reserve port so nobody else will use it
-
 
995
        xor     ebx, ebx
-
 
996
        mov     ecx, debug_com_base
-
 
997
        mov     edx, debug_com_base+7
-
 
998
        call    r_f_port_area
-
 
999
 
-
 
1000
        ; enable Divisor latch
-
 
1001
        mov     dx, debug_com_base+3
-
 
1002
        mov     al, 1 shl 7
-
 
1003
        out     dx, al
-
 
1004
 
-
 
1005
        ; Set speed to 115200 baud (max speed)
-
 
1006
        mov     dx, debug_com_base
-
 
1007
        mov     al, 0x01
-
 
1008
        out     dx, al
-
 
1009
 
-
 
1010
        mov     dx, debug_com_base+1
-
 
1011
        mov     al, 0x00
-
 
1012
        out     dx, al
-
 
1013
 
-
 
1014
        ; No parity, 8bits words, one stop bit, dlab bit back to 0
-
 
1015
        mov     dx, debug_com_base+3
-
 
1016
        mov     al, 3
-
 
1017
        out     dx, al
-
 
1018
 
-
 
1019
        ; disable interrupts
-
 
1020
        mov     dx, debug_com_base+1
-
 
1021
        mov     al, 0
-
 
1022
        out     dx, al
-
 
1023
 
-
 
1024
        ; clear +  enable fifo (64 bits)
-
 
1025
        mov     dx, debug_com_base+2
-
 
1026
        mov     al, 0x7 + 1 shl 5
-
 
1027
        out     dx, al
-
 
1028
 
1031
        call    setmouse
Line 1029... Line 1032...
1029
end if
1032
 
1030
; START MULTITASKING
1033
; START MULTITASKING
1031
 
1034