diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-04-04 15:32:24 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-04-04 15:32:24 -0700 |
commit | f7b5a2254ab7c8aa87679c1b731d2ea285c22e80 (patch) | |
tree | 08e1e00576717e1ca557101164b7e6639e0172a1 /mbr/isohdpfx.S | |
parent | dd51053bbd4a1613d1e3384928a7da7bb164562f (diff) | |
download | syslinux.git-f7b5a2254ab7c8aa87679c1b731d2ea285c22e80.tar.gz syslinux.git-f7b5a2254ab7c8aa87679c1b731d2ea285c22e80.tar.xz syslinux.git-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/isohdpfx.S')
-rw-r--r-- | mbr/isohdpfx.S | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/mbr/isohdpfx.S b/mbr/isohdpfx.S index 0c5b95e6..f42b4b5b 100644 --- a/mbr/isohdpfx.S +++ b/mbr/isohdpfx.S @@ -1,6 +1,7 @@ /* ----------------------------------------------------------------------- * * Copyright 2007-2009 H. Peter Anvin - All Rights Reserved + * Copyright 2009 Intel Corporation; author: H. Peter Anvin * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -32,12 +33,14 @@ * loader of a hard-coded offset, but that's good enough to load * ISOLINUX. */ - + +#include "adjust.h" + .code16 .text HYBRID_MAGIC = 0x7078c0fb -isolinux_hybrid_signature = 0x7c00+64 +isolinux_hybrid_signature = 0x7c00+64 isolinux_start_hybrid = 0x7c00+64+4 .globl bootsec @@ -81,12 +84,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 */ @@ -147,7 +146,7 @@ next: */ cmpl $HYBRID_MAGIC,(isolinux_hybrid_signature) jne bad_signature - + cli movw $heads, %sp |