aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/gptmbr.S
diff options
context:
space:
mode:
Diffstat (limited to 'mbr/gptmbr.S')
-rw-r--r--mbr/gptmbr.S13
1 files changed, 6 insertions, 7 deletions
diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S
index 6df67f42..8d42e8b8 100644
--- a/mbr/gptmbr.S
+++ b/mbr/gptmbr.S
@@ -26,6 +26,8 @@
*
* ----------------------------------------------------------------------- */
+#include "adjust.h"
+
.code16
.text
@@ -74,11 +76,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 /* 0(%bp) = %dl -> drive number */
/* Check to see if we have EBIOS */
@@ -170,10 +169,10 @@ find_part:
found_part:
xchgw %ax,%cx /* Set up %cx for rep movsb further down */
-
+
movw $dssi_out,%di
pushw %di
-
+
/* 80 00 00 00 ee 00 00 00
- bootable partition, type EFI (EE), no CHS information */
xorl %eax,%eax