Changeset 71 for trunk/src/os2ahci/libc.c
- Timestamp:
- Feb 15, 2011, 1:18:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/libc.c
r66 r71 73 73 int reg; 74 74 u8 data; 75 } com 1_init_sequence[] = {75 } com_init_sequence[] = { 76 76 3, 0x80, /* overlay divisor latch register at 0x3f8 and 0x3f9 */ 77 77 0, 0x01, /* set low byte of divisor to 1 (115200 baud) */ … … 107 107 int i; 108 108 109 DevHelp_CreateSpinLock(&com_lock);110 111 for (i = 0; com 1_init_sequence[i].reg != -1; i++) {112 u16 port = com_base + com 1_init_sequence[i].reg;113 u8 data = com 1_init_sequence[i].data;109 spin_lock(com_lock); 110 111 for (i = 0; com_init_sequence[i].reg != -1; i++) { 112 u16 port = com_base + com_init_sequence[i].reg; 113 u8 data = com_init_sequence[i].data; 114 114 _asm { 115 115 mov dx, port; … … 118 118 } 119 119 } 120 121 spin_unlock(com_lock); 120 122 } 121 123
Note:
See TracChangeset
for help on using the changeset viewer.