Changeset 76cec1e in mainline for arch/ia32/src/drivers/i8254.c
- Timestamp:
- 2005-07-15T21:57:30Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b4a4c5e3
- Parents:
- e41c47e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/drivers/i8254.c
re41c47e r76cec1e 84 84 85 85 do { 86 86 /* will read both status and count */ 87 87 outb(CLK_PORT4, 0xc2); 88 88 not_ok = (inb(CLK_PORT1)>>6)&1; … … 110 110 o2 |= inb(CLK_PORT1) << 8; 111 111 112 113 CPU->delay_loop_const = ((MAGIC_NUMBER*LOOPS)/1000) / ((t1-t2)-(o1-o2)) + 114 (((MAGIC_NUMBER*LOOPS)/1000) % ((t1-t2)-(o1-o2)) ? 1 : 0); 115 112 CPU->delay_loop_const = ((MAGIC_NUMBER*LOOPS)/1000) / ((t1-t2)-(o1-o2)) + (((MAGIC_NUMBER*LOOPS)/1000) % ((t1-t2)-(o1-o2)) ? 1 : 0); 116 113 117 114 clk1 = rdtsc();
Note:
See TracChangeset
for help on using the changeset viewer.