Subject: profiling kernel fails with: Error: suffix or operands invalid for `pushf'
To: None <port-amd64@netbsd.org>
From: Makoto Fujiwara <makoto@ki.nu>
List: port-amd64
Date: 12/05/2007 17:55:58
I wrote trivial patch to: current-users to build profiling
kernel with build.sh.

But amd64 has minor problem building profiling kernel (the
patch itself is not significant, you may encounter the same problem
with regular config -p GENERIC method) as:

/var/tmp//cciUwi3L.s:173: Error: suffix or operands invalid for `pushf'
(etc.)

It seems to me the asm doesn't like the line
in sys/arch/amd64/include/profile.h 

    142         __asm volatile("pushfl; popl %0" : "=r" (ef));
of
    149         __asm volatile("pushl %0; popfl" : : "r" (ef));

(etc).

Does anybody fix this ?

| To: current-users@NetBSD.org
| From: Makoto Fujiwara <makoto@ki.nu>
| Subject: making profiling kernel with ./build.sh
| Date: Wed, 05 Dec 2007 17:06:22 +0900
| Message-ID: <yfmzlwpzhtt.wl%makoto@ki.nu>

MEF> Hi, I am just interesting to build profiling kernel. But
MEF> it doesn't seems to do with ./build.sh, so..

MEF> Index: build.sh
MEF> ===================================================================
MEF> RCS file: /e/cvsync/cvsync/src/build.sh,v
MEF> retrieving revision 1.180
MEF> diff -u -u -r1.180 build.sh
MEF> --- build.sh	23 Nov 2007 19:38:43 -0000	1.180
MEF> +++ build.sh	5 Dec 2007 07:38:37 -0000
----
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.