Rev 4381 | Rev 4573 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4381 | Rev 4553 | ||
---|---|---|---|
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: 4381 $ |
74 | $Revision: 4553 $ |
Line 1077... | Line 1077... | ||
1077 | ;// mike.dld ] |
1077 | ;// mike.dld ] |
1078 | stdcall attach_int_handler, 1, irq1, 0 |
1078 | stdcall attach_int_handler, 1, irq1, 0 |
1079 | DEBUGF 1, "K : IRQ1 error code %x\n", eax |
1079 | DEBUGF 1, "K : IRQ1 error code %x\n", eax |
1080 | .no_keyboard: |
1080 | .no_keyboard: |
Line 1081... | Line 1081... | ||
1081 | 1081 | ||
Line 1082... | Line 1082... | ||
1082 | ; SET MOUSE |
1082 | ; Load PS/2 mouse driver |
1083 | - | ||
Line 1084... | Line 1083... | ||
1084 | stdcall load_driver, szPS2MDriver |
1083 | |
1085 | ; stdcall load_driver, szCOM_MDriver |
1084 | stdcall load_driver, szPS2MDriver |
1086 | 1085 | ||
Line 1087... | Line 1086... | ||
1087 | mov esi, boot_setmouse |
1086 | mov esi, boot_setmouse |
1088 | call boot_log |
- | |
1089 | call setmouse |
1087 | call boot_log |
Line -... | Line 1088... | ||
- | 1088 | call setmouse |
|
- | 1089 | ||
- | 1090 | ; Setup serial output console (if enabled) |
|
- | 1091 | if defined debug_com_base |
|
1090 | 1092 | ||
Line -... | Line 1093... | ||
- | 1093 | ; reserve port so nobody else will use it |
|
1091 | ; Setup serial output console (if enabled) |
1094 | xor ebx, ebx |
1092 | 1095 | mov ecx, debug_com_base |
|
1093 | if defined debug_com_base |
1096 | mov edx, debug_com_base+7 |
Line 1094... | Line 1097... | ||
1094 | 1097 | call r_f_port_area |
|
1095 | ; enable Divisor latch |
- | |
1096 | 1098 | ||
1097 | mov dx, debug_com_base+3 |
1099 | ; enable Divisor latch |
1098 | mov al, 1 shl 7 |
1100 | mov dx, debug_com_base+3 |
Line 1099... | Line 1101... | ||
1099 | out dx, al |
1101 | mov al, 1 shl 7 |
1100 | 1102 | out dx, al |
|
1101 | ; Set speed to 115200 baud (max speed) |
1103 | |
Line 1102... | Line 1104... | ||
1102 | 1104 | ; Set speed to 115200 baud (max speed) |
|
1103 | mov dx, debug_com_base |
- | |
1104 | mov al, 0x01 |
1105 | mov dx, debug_com_base |
1105 | out dx, al |
1106 | mov al, 0x01 |
1106 | 1107 | out dx, al |
|
Line 1107... | Line 1108... | ||
1107 | mov dx, debug_com_base+1 |
1108 | |
1108 | mov al, 0x00 |
- | |
1109 | out dx, al |
1109 | mov dx, debug_com_base+1 |
1110 | 1110 | mov al, 0x00 |
|
1111 | ; No parity, 8bits words, one stop bit, dlab bit back to 0 |
1111 | out dx, al |
Line 1112... | Line 1112... | ||
1112 | 1112 | ||
1113 | mov dx, debug_com_base+3 |
- | |
1114 | mov al, 3 |
1113 | ; No parity, 8bits words, one stop bit, dlab bit back to 0 |
1115 | out dx, al |
1114 | mov dx, debug_com_base+3 |
1116 | 1115 | mov al, 3 |
|
Line 1117... | Line -... | ||
1117 | ; disable interrupts |
- | |
1118 | 1116 | out dx, al |
|
- | 1117 | ||
1119 | mov dx, debug_com_base+1 |
1118 | ; disable interrupts |
1120 | mov al, 0 |
1119 | mov dx, debug_com_base+1 |
Line 1121... | Line 1120... | ||
1121 | out dx, al |
1120 | mov al, 0 |
1122 | 1121 | out dx, al |