summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-31 14:45:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-31 14:45:27 +0000
commit71aeab4de4b60ba790c22227043858126283dd87 (patch)
tree6054ebd097b6111558cda011b5885019b5668b5e /c/src
parentAdded AC_SUBST(RTEMS_BSP) so the makefiles properly honor the (diff)
downloadrtems-71aeab4de4b60ba790c22227043858126283dd87.tar.bz2
Suggested modification from Rosimildo da Silva <rdasilva@connecttel.com>
to make the BSP boot on netboot.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/lib/libbsp/i386/pc386/start/start16.S19
1 files changed, 10 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/start/start16.S b/c/src/lib/libbsp/i386/pc386/start/start16.S
index 5d80c28c72..d9aea202f3 100644
--- a/c/src/lib/libbsp/i386/pc386/start/start16.S
+++ b/c/src/lib/libbsp/i386/pc386/start/start16.S
@@ -75,10 +75,7 @@ _start16:
/*---------------------------------------------------------------------+
| Bare PC machines boot in real mode! We have to turn protected mode on.
+---------------------------------------------------------------------*/
-#ifdef NEW_GAS
- data32
- addr32
-#endif
+
lgdt gdtptr - start16 # load Global Descriptor Table
movl %cr0, %eax
orl $CR0_PE, %eax
@@ -130,22 +127,26 @@ _start16:
| will delay for 1us on 1Gz machine, it will take a little bit
| longer on slower machines, however, it does not matter because we
| are going to call this function only a few times
-
+!
+| NOTE: Saving the content of the EAX register just in case. - Rosimildo.
+----------------------------------------------------------------------------*/
.p2align 4
.globl _delay
.globl delay
delay:
_delay:
-/*
+ pushl %eax
+#if defined(USE_OUTB_FOR_DELAY)
outb %al, $0x80 # about 1uS delay on most machines
-*/
-/*
+
+#else
+
movl $0x200, %eax
delay1:
dec %eax
jnz delay1
-*/
+#endif
+ popl %eax
ret
/*----------------------------------------------------------------------------+