aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/altmbr.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-04 15:32:24 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-04 15:32:24 -0700
commitf7b5a2254ab7c8aa87679c1b731d2ea285c22e80 (patch)
tree08e1e00576717e1ca557101164b7e6639e0172a1 /mbr/altmbr.S
parentdd51053bbd4a1613d1e3384928a7da7bb164562f (diff)
downloadsyslinux-f7b5a2254ab7c8aa87679c1b731d2ea285c22e80.tar.gz
syslinux-f7b5a2254ab7c8aa87679c1b731d2ea285c22e80.tar.xz
syslinux-f7b5a2254ab7c8aa87679c1b731d2ea285c22e80.zip
mbr: generate normal versions, force-80 versions, and ctrl-80 versions
Produce MBR variants with normal (DL) behavior, force to drive 80 behavior, and force to 80 on Ctrl pressed behavior. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
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 */