Changeset 76c356f in rtems
- Timestamp:
- 12/03/99 15:46:17 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- a548c8a5
- Parents:
- 1e4a7d4
- Location:
- c/src/lib/libbsp/i386/pc386
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/pc386/start/start16.S
r1e4a7d4 r76c356f 116 116 call empty_8042 117 117 118 call delay 119 call delay 120 call delay 121 118 122 movl %cs:HDRSTART + HDROFF, %eax # 119 123 pushl %eax # jump to start of 32 bit code … … 123 127 | delay 124 128 +------------------------------------------------------------------------------ 125 | Delay is needed after doing I/O. We do it by writing to a non-existent port. 126 +----------------------------------------------------------------------------*/ 129 | Delay is needed after doing I/O. 130 | 131 | The outb version is OK on most machines BUT the loop version ... 132 | 133 | will delay for 1us on 1Gz machine, it will take a little bit 134 | longer on slower machines, however, it does not matter because we 135 | are going to call this function only a few times 136 137 +----------------------------------------------------------------------------*/ 138 .p2align 4 127 139 .globl _delay 128 140 .globl delay 129 141 delay: 130 142 _delay: 131 outb %al, $0xED # about 1uS delay 143 /* 144 outb %al, $0xED # about 1uS delay on most machines 145 */ 146 /* 147 148 movl $0x200, %eax 149 delay1: 150 dec %eax 151 jnz delay1 132 152 ret 133 153 … … 140 160 | and we probably couldn't proceed anyway. 141 161 +----------------------------------------------------------------------------*/ 162 .p2align 4 142 163 .globl _empty_8042 143 164 .globl empty_8042 -
c/src/lib/libbsp/i386/pc386/startup/ldsegs.S
r1e4a7d4 r76c356f 53 53 EXTERN (clockOff) 54 54 55 .p2align 456 55 /*----------------------------------------------------------------------------+ 57 56 | delay 58 57 +------------------------------------------------------------------------------ 59 | Delay is needed after doing I/O. We do it by writing to a non-existent port. 58 | Delay is needed after doing I/O. 59 | 60 | The outb version is OK on most machines BUT the loop version ... 61 | 62 | will delay for 1us on 1Gz machine, it will take a little bit 63 | longer on slower machines, however, it does not matter because we 64 | are going to call this function only a few times 65 60 66 +----------------------------------------------------------------------------*/ 61 SYM(delay): 62 outb al, $0x80 # about 1uS delay 67 .p2align 4 68 .globl _delay 69 .globl delay 70 delay: 71 _delay: 72 /* 73 outb %al, $0xED # about 1uS delay on most machines 74 */ 75 /* 76 77 movl $0x200, %eax 78 delay1: 79 dec %eax 80 jnz delay1 63 81 ret 82 64 83 65 84 /*-------------------------------------------------------------------------+
Note: See TracChangeset
for help on using the changeset viewer.