diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-05 15:15:46 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-05 15:15:46 +0000 |
commit | ab0df696d09f6b53b33345d207f8aead63a6fcab (patch) | |
tree | e446f792382e49b1169482837cd842a82fb2350b /c/src/lib/libbsp/i386/pc386/start | |
parent | Fixed name of Buffer so this would compile. (diff) | |
download | rtems-ab0df696d09f6b53b33345d207f8aead63a6fcab.tar.bz2 |
Automatic CPU type detection code from Eric Valette <valette@crf.canon.fr>.
Enabled on the pc386.
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/start')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/start/start.s | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/start/start.s b/c/src/lib/libbsp/i386/pc386/start/start.s index 36fad8153c..5ff92f3134 100644 --- a/c/src/lib/libbsp/i386/pc386/start/start.s +++ b/c/src/lib/libbsp/i386/pc386/start/start.s @@ -64,6 +64,8 @@ BEGIN_CODE EXTERN (_return_to_monitor) EXTERN (_IBMPC_initVideo) EXTERN (debugPollingGetChar) + EXTERN (checkCPUtypeSetCr0) + /* * In case this crashes on your machine and this is not due @@ -87,8 +89,8 @@ speakl: jmp speakl # and SPIN!!! nop cli # DISABLE INTERRUPTS!!! -#ifdef DEBUG_EARLY_START cld +#ifdef DEBUG_EARLY_START /* * Must get video attribute to have a working printk. * Note that the following code assume we already have @@ -149,14 +151,9 @@ SYM (zero_bss): stosl # clear a long in the bss /*---------------------------------------------------------------------+ -| Initialize the i387. -| -| Using the NO WAIT form of the instruction insures that if it is not -| present the board will not lock up or get an exception. +| Check CPU type. Enable Cache and init coprocessor if needed. +---------------------------------------------------------------------*/ - - fninit # MUST USE NO-WAIT FORM - + call checkCPUtypeSetCr0 /*---------------------------------------------------------------------+ | Transfer control to User's Board Support Package +---------------------------------------------------------------------*/ |