diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-27 22:09:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-27 22:09:39 +0000 |
commit | bb6d368d02737884d5369749da576d5b54c3f290 (patch) | |
tree | b4f231db3cc84e33022482286e286ac9262791e6 /c/src/lib | |
parent | Changed invocation of bin2boot to match gcc 2.8 rule. (diff) | |
download | rtems-bb6d368d02737884d5369749da576d5b54c3f290.tar.bz2 |
Added "speaker on" debug code.
Diffstat (limited to 'c/src/lib')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/start/start.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/start/start.s b/c/src/lib/libbsp/i386/pc386/start/start.s index 8be3defef4..111962f0c5 100644 --- a/c/src/lib/libbsp/i386/pc386/start/start.s +++ b/c/src/lib/libbsp/i386/pc386/start/start.s @@ -73,6 +73,18 @@ BEGIN_CODE #define DEBUG_EARLY_START SYM (start): + /* + * When things are really, REALLY!, bad -- turn on the speaker and + * lock up. This shows whether or not we make it to a certain + * location. + */ +#if 0 + inb $0x61, al + orb $0x03, al + outb al, $0x61 # enable the speaker +speakl: jmp speakl # and SPIN!!! +#endif + nop cli # DISABLE INTERRUPTS!!! #ifdef DEBUG_EARLY_START |