summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/start/start.s
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/start/start.s')
-rw-r--r--c/src/lib/libbsp/i386/pc386/start/start.s12
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