aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/altmbr.S
diff options
context:
space:
mode:
Diffstat (limited to 'mbr/altmbr.S')
-rw-r--r--mbr/altmbr.S10
1 files changed, 4 insertions, 6 deletions
diff --git a/mbr/altmbr.S b/mbr/altmbr.S
index b85bf8be..4a502ed0 100644
--- a/mbr/altmbr.S
+++ b/mbr/altmbr.S
@@ -26,6 +26,8 @@
*
* ----------------------------------------------------------------------- */
+#include "adjust.h"
+
.code16
.text
@@ -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 */