diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/stand/mbr/mbr.S | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/arch/i386/stand/mbr/mbr.S b/sys/arch/i386/stand/mbr/mbr.S index 9a4d10ca6be..804a8f81422 100644 --- a/sys/arch/i386/stand/mbr/mbr.S +++ b/sys/arch/i386/stand/mbr/mbr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: mbr.S,v 1.13 1998/03/11 13:05:07 graichen Exp $ */ +/* $OpenBSD: mbr.S,v 1.14 2001/12/15 21:16:10 kjell Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff and Tobias Weingartner @@ -61,8 +61,9 @@ #define DBGMSG(msg) \ movb $msg, %al; \ - data32; \ - call chr + /* call Lchr */; \ + .byte 0xe8; \ + .word Lchr - . - 2 #else /* !DEBUG */ #define DBGMSG(msg) #endif /* !DEBUG */ @@ -293,14 +294,15 @@ Lmessage: lodsb # load a byte into %al testb %al, %al jz 1f - data32 - call chr + /* call Lchr */ + .byte 0xe8 + .word Lchr - . - 2 jmp 1b # -# chr: write the error message in %ds:%si to console +# Lchr: write the error message in %ds:%si to console # -chr: +Lchr: pushl %eax #ifndef SERIAL @@ -319,7 +321,6 @@ chr: popl %edx #endif 1: popl %eax - data32 ret /* Info messages */ |