| plan 9 kernel history: overview | file list | diff list |
1993/0212/pc/l.s (diff list | history)
| 1992/1211/sys/src/9/pc/l.s:766,768 – 1993/0212/sys/src/9/pc/l.s:766,796 (short | long | prev | next) | ||
|
Add dp8390inb and dp8390outb - delays for DP8390 ethernet.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1992/1111 | MOVB BX,-1(DI)(CX*1) LOOP l20 | |
| 1992/1107 | RET | |
| 1993/0212 | /* * The DP8390 ethernet chip needs some time between * successive chip selects, so we force a jump into * the instruction stream to break the pipeline. */ TEXT dp8390inb(SB), $0 MOVL p+0(FP),DX XORL AX,AX /* CF = 0 */ INB JCC _dp8390inb0 /* always true */ MOVL AX,AX _dp8390inb0: RET TEXT dp8390outb(SB), $0 MOVL p+0(FP),DX MOVL b+4(FP),AX OUTB CLC /* CF = 0 */ JCC _dp8390outb0 /* always true */ MOVL AX,AX _dp8390outb0: RET | |