Subversion Repositories Kolibri OS

Rev

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

Rev 1038 Rev 1043
Line 15... Line 15...
15
;; Evgeny Grechnikov (Diamond)
15
;; Evgeny Grechnikov (Diamond)
16
;; Iliya Mihailov (Ghost)
16
;; Iliya Mihailov (Ghost)
17
;; Sergey Semyonov (Serge)
17
;; Sergey Semyonov (Serge)
18
;; Johnny_B
18
;; Johnny_B
19
;; SPraid (simba)
19
;; SPraid (simba)
-
 
20
;; Hidnplayr
20
;;
21
;;
21
;; Data in this file was originally part of MenuetOS project which is
22
;; Data in this file was originally part of MenuetOS project which is
22
;; distributed under the terms of GNU GPL. It is modified and redistributed as
23
;; distributed under the terms of GNU GPL. It is modified and redistributed as
23
;; part of KolibriOS project under the terms of GNU GPL.
24
;; part of KolibriOS project under the terms of GNU GPL.
24
;;
25
;;
Line 53... Line 54...
53
;;
54
;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
55
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 55... Line 56...
55
 
56
 
Line 56... Line 57...
56
include 'macros.inc'
57
include 'macros.inc'
Line 57... Line 58...
57
 
58
 
Line -... Line 59...
-
 
59
$Revision: 1043 $
-
 
60
 
-
 
61
 
58
$Revision: 1038 $
62
USE_COM_IRQ	equ 1	   ; make irq 3 and irq 4 available for PCI devices
59
 
63
 
60
 
64
; Enabling the next line will enable serial output console
Line 61... Line 65...
61
USE_COM_IRQ equ 1      ;make irq 3 and irq 4 available for PCI devices
65
;debug_com_base  equ 0x3f8  ; 0x3f8 is com1, 0x2f8 is com2, 0x3e8 is com3, 0x2e8 is com4, no irq's are used
Line 868... Line 872...
868
;        call  kb_read
872
;        call  kb_read
869
     ;// mike.dld [
873
     ;// mike.dld [
870
	call  set_lights
874
	call  set_lights
871
     ;// mike.dld ]
875
     ;// mike.dld ]
Line -... Line 876...
-
 
876
 
-
 
877
 
-
 
878
; Setup serial output console (if enabled)
-
 
879
 
-
 
880
if defined debug_com_base
-
 
881
 
-
 
882
	; enable Divisor latch
-
 
883
 
-
 
884
	mov	dx, debug_com_base+3
-
 
885
	mov	al, 1 shl 7
-
 
886
	out	dx, al
-
 
887
 
-
 
888
	; Set speed to 115200 baud (max speed)
-
 
889
 
-
 
890
	mov	dx, debug_com_base
-
 
891
	mov	al, 0x01
-
 
892
	out	dx, al
-
 
893
 
-
 
894
	mov	dx, debug_com_base+1
-
 
895
	mov	al, 0x00
-
 
896
	out	dx, al
-
 
897
 
-
 
898
	; No parity, 8bits words, one stop bit, dlab bit back to 0
-
 
899
 
-
 
900
	mov	dx, debug_com_base+3
-
 
901
	mov	al, 3
-
 
902
	out	dx, al
-
 
903
 
-
 
904
	; disable interrupts
-
 
905
 
-
 
906
	mov	dx, debug_com_base+1
-
 
907
	mov	al, 0
-
 
908
	out	dx, al
-
 
909
 
-
 
910
	; clear +  enable fifo (64 bits)
-
 
911
 
-
 
912
	mov	dx, debug_com_base+2
-
 
913
	mov	al, 0x7 + 1 shl 5
-
 
914
	out	dx, al
-
 
915
 
-
 
916
 
-
 
917
end if
872
 
918
 
Line 873... Line 919...
873
; START MULTITASKING
919
; START MULTITASKING
874
 
920
 
875
if preboot_blogesc
921
if preboot_blogesc
Line 4761... Line 4807...
4761
 
4807
 
4762
	mov	ecx, [msg_board_count]
4808
	mov	ecx, [msg_board_count]
4763
	cmp	eax, 1
4809
	cmp	eax, 1
Line -... Line 4810...
-
 
4810
	jne	.smbl1
-
 
4811
 
-
 
4812
if defined debug_com_base
-
 
4813
 
-
 
4814
	push	dx ax
-
 
4815
 
-
 
4816
       @@:				; Wait for empty transmit register  (yes, this slows down system..)
-
 
4817
	mov	dx, debug_com_base+5
-
 
4818
	in	al, dx
-
 
4819
	test	al, 1 shl 5
-
 
4820
	jz	@r
-
 
4821
 
-
 
4822
	mov	dx, debug_com_base	; Output the byte
-
 
4823
	mov	al, bl
-
 
4824
	out	dx, al
-
 
4825
 
-
 
4826
	pop	ax dx
Line 4764... Line 4827...
4764
	jne	.smbl1
4827
 
4765
 
4828
end if
4766
 
4829
 
4767
	mov	[msg_board_data+ecx],bl
4830
	mov	[msg_board_data+ecx],bl