Changeset 76c356f in rtems for c/src/lib/libbsp/i386/pc386/start/start16.S
- 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
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.