summaryrefslogtreecommitdiffstats
path: root/sys/i386/boot
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1993-11-13 04:43:25 +0000
committerrgrimes <rgrimes@FreeBSD.org>1993-11-13 04:43:25 +0000
commit93f6cc5abd27a944e4444c2c0235b7e3a71f5c43 (patch)
tree89bf2004adb8b403fd4f8b2cb41062b4a40a423c /sys/i386/boot
parentaa3ae6ef2a770093235bb79679c3028e026d5622 (diff)
downloadFreeBSD-src-93f6cc5abd27a944e4444c2c0235b7e3a71f5c43.zip
FreeBSD-src-93f6cc5abd27a944e4444c2c0235b7e3a71f5c43.tar.gz
>From Charles Hannum
Change movl %es: -2(reg) to use a subl $2,reg when fixing up the IDT entries for bdb. This seems to be the best way to go. Some day soon #ifdef BDB all of Bruces debugger code.
Diffstat (limited to 'sys/i386/boot')
-rw-r--r--sys/i386/boot/biosboot/boot2.S8
-rw-r--r--sys/i386/boot/boot2.S8
2 files changed, 10 insertions, 6 deletions
diff --git a/sys/i386/boot/biosboot/boot2.S b/sys/i386/boot/biosboot/boot2.S
index 2569dd2..b3c96da 100644
--- a/sys/i386/boot/biosboot/boot2.S
+++ b/sys/i386/boot/biosboot/boot2.S
@@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, Revision 2.2 92/04/04 11:35:26 rpd
- * $Id$
+ * $Id: boot2.S,v 1.2 1993/10/16 19:11:33 rgrimes Exp $
*/
#include "asm.h"
@@ -128,10 +128,12 @@ ENTRY(boot2)
mov %ax, %es
/* fix up IDT entries for bdb */
- movl %es: -2(%ebx), %eax /* actually movw to %ax */
+ subl $2, %ebx
+ movl %es: (%ebx), %eax /* actually movw to %ax */
addr32
movl %eax, EXT(Idt)+8*DEBUG_VECTOR /* actually movw %ax */
- movl %es: -2(%ecx), %eax /* actually movw to %ax */
+ subl $2, %ecx
+ movl %es: (%ecx), %eax /* actually movw to %ax */
addr32
movl %eax, EXT(Idt)+8*BREAKPOINT_VECTOR /* actually movw %ax */
diff --git a/sys/i386/boot/boot2.S b/sys/i386/boot/boot2.S
index 2569dd2..b3c96da 100644
--- a/sys/i386/boot/boot2.S
+++ b/sys/i386/boot/boot2.S
@@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, Revision 2.2 92/04/04 11:35:26 rpd
- * $Id$
+ * $Id: boot2.S,v 1.2 1993/10/16 19:11:33 rgrimes Exp $
*/
#include "asm.h"
@@ -128,10 +128,12 @@ ENTRY(boot2)
mov %ax, %es
/* fix up IDT entries for bdb */
- movl %es: -2(%ebx), %eax /* actually movw to %ax */
+ subl $2, %ebx
+ movl %es: (%ebx), %eax /* actually movw to %ax */
addr32
movl %eax, EXT(Idt)+8*DEBUG_VECTOR /* actually movw %ax */
- movl %es: -2(%ecx), %eax /* actually movw to %ax */
+ subl $2, %ecx
+ movl %es: (%ecx), %eax /* actually movw to %ax */
addr32
movl %eax, EXT(Idt)+8*BREAKPOINT_VECTOR /* actually movw %ax */
OpenPOWER on IntegriCloud