Rev 2154 | Rev 2231 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2154 | Rev 2167 | ||
---|---|---|---|
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: 2154 $ |
71 | $Revision: 2167 $ |
Line 920... | Line 920... | ||
920 | @@: |
920 | @@: |
921 | in al,64h |
921 | in al,64h |
922 | and al,00000010b |
922 | and al,00000010b |
923 | loopnz @b |
923 | loopnz @b |
Line 924... | Line 924... | ||
924 | 924 | ||
925 | ; mov al, 0xED ; svetodiody - only for testing! |
925 | ; mov al, 0xED ; Keyboard LEDs - only for testing! |
926 | ; call kb_write |
926 | ; call kb_write |
927 | ; call kb_read |
927 | ; call kb_read |
928 | ; mov al, 111b |
928 | ; mov al, 111b |
929 | ; call kb_write |
929 | ; call kb_write |
Line 990... | Line 990... | ||
990 | .bll1: in al, 0x60 ; wait for ESC key press |
990 | .bll1: in al, 0x60 ; wait for ESC key press |
991 | cmp al, 129 |
991 | cmp al, 129 |
992 | jne .bll1 |
992 | jne .bll1 |
993 | end if |
993 | end if |
Line 994... | Line -... | ||
994 | - | ||
995 | ; mov [ENABLE_TASKSWITCH],byte 1 ; multitasking enabled |
- | |
996 | - | ||
997 | ; UNMASK ALL IRQ'S |
- | |
998 | - | ||
999 | ; mov esi,boot_allirqs |
- | |
1000 | ; call boot_log |
- | |
1001 | ; |
- | |
1002 | ; cli ;guarantee forbidance of interrupts. |
- | |
1003 | ; mov al,0 ; unmask all irq's |
- | |
1004 | ; out 0xA1,al |
- | |
1005 | ; out 0x21,al |
- | |
1006 | ; |
- | |
1007 | ; mov ecx,32 |
- | |
1008 | ; |
- | |
1009 | ; ready_for_irqs: |
- | |
1010 | ; |
- | |
1011 | ; mov al,0x20 ; ready for irqs |
- | |
1012 | ; out 0x20,al |
- | |
1013 | ; out 0xa0,al |
- | |
1014 | ; |
- | |
Line 1015... | Line 994... | ||
1015 | ; loop ready_for_irqs ; flush the queue |
994 | |
Line 1016... | Line 995... | ||
1016 | 995 | ||
1017 | stdcall attach_int_handler, 1, irq1, 0 |
996 | stdcall attach_int_handler, 1, irq1, 0 |
Line 1156... | Line 1135... | ||
1156 | process_number dd 0x1 |
1135 | process_number dd 0x1 |
1157 | endg |
1136 | endg |
Line 1158... | Line 1137... | ||
1158 | 1137 | ||
Line 1159... | Line 1138... | ||
1159 | set_variables: |
1138 | set_variables: |
- | 1139 | ||
1160 | 1140 | mov ecx,0x16 ; flush port 0x60 |
|
1161 | mov ecx,0x100 ; flush port 0x60 |
1141 | .fl60: |
1162 | .fl60: in al,0x60 |
1142 | in al,0x60 |
Line 1163... | Line 1143... | ||
1163 | loop .fl60 |
1143 | loop .fl60 |
1164 | push eax |
1144 | push eax |
Line 4124... | Line 4104... | ||
4124 | mov edx,0xffffffff |
4104 | mov edx,0xffffffff |
4125 | mov eax,0xffffffff |
4105 | mov eax,0xffffffff |
4126 | ret |
4106 | ret |
4127 | end if |
4107 | end if |
Line 4128... | Line -... | ||
4128 | - | ||
4129 | - | ||
4130 | 4108 | ||
Line 4131... | Line 4109... | ||
4131 | sys_msg_board_str: |
4109 | sys_msg_board_str: |
4132 | 4110 | ||
4133 | pushad |
4111 | pushad |