Subject: port-i386/15777: kernel with apm won't build with rev. 1.9
To: None <gnats-bugs@gnats.netbsd.org>
From: None <oskar@guug.de>
List: netbsd-bugs
Date: 03/01/2002 12:27:23
>Number:         15777
>Category:       port-i386
>Synopsis:       kernel with apm won't build with rev. 1.9
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 01 03:29:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jan-Hinrich Fessel
>Release:        20020228
>Organization:
	
>Environment:
	
System: NetBSD fixme 1.5W NetBSD 1.5W (FIXME) #19: Sun Jul 8 19:38:42 CEST 2001 root@fixme:/usr/src/sys/arch/i386/compile/FIXME i386
Architecture: i386
Machine: i386
>Description:
	when compiling kernel with APM:
	cc  -x assembler-with-cpp -traditional-cpp -D_LOCORE  -Di386 -I.  -I../../../../arch -I../../../.. -nostdinc -DLKM -DMSGBUFSIZE="0xd000" -DIPSEC_DEBUG -DPNPBIOSDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c ../../../../arch/i386/i386/apmcall.s
	/tmp/ccCVs5Kz.s: Assembler messages:
	/tmp/ccCVs5Kz.s:618: Error: operands given don't match any known 386 instruction
	*** Error code 1

>How-To-Repeat:
	configure kernel with APM enabled
	make kernel.
>Fix:
cvs diff -u apmcall.s
Index: apmcall.s
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/i386/i386/apmcall.s,v
retrieving revision 1.9
diff -u -r1.9 apmcall.s
--- apmcall.s   2002/01/13 12:45:54     1.9
+++ apmcall.s   2002/03/01 11:25:39
@@ -98,7 +98,7 @@
        clc /* clear carry in case BIOS doesn't do it for us on no-error */
        pushl   %ds
        /* Now call the 32-bit code segment entry point */
-       lcall   *%cs:(_C_LABEL(apminfo)+APM_ENTRY)
+       lcall   %cs:(_C_LABEL(apminfo)+APM_ENTRY)
        popl    %ds
        setc    apmstatus
        popfl

>Release-Note:
>Audit-Trail:
>Unformatted: