aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/mbr.S
diff options
context:
space:
mode:
Diffstat (limited to 'mbr/mbr.S')
-rw-r--r--mbr/mbr.S12
1 files changed, 5 insertions, 7 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index 2407663e..7caf4fc4 100644
--- a/mbr/mbr.S
+++ b/mbr/mbr.S
@@ -26,6 +26,8 @@
*
* ----------------------------------------------------------------------- */
+#include "adjust.h"
+
.code16
.text
@@ -37,7 +39,7 @@ secpercyl = (stack-12)
BIOS_kbdflags = 0x417
BIOS_page = 0x462
-
+
/* gas/ld has issues with doing this as absolute addresses... */
.section ".bootsec", "a", @nobits
.globl bootsec
@@ -66,12 +68,8 @@ _start:
ljmpw $0, $next
next:
-
- /* Escape for the user: if Ctrl is pressed, assume drive hd0 */
- testb $0x04, BIOS_kbdflags /* Ctrl pressed */
- jz 1f
- movb $0x80, %dl
-1:
+
+ ADJUST_DRIVE
pushw %dx /* dl -> drive number */
/* Check to see if we have EBIOS */