From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <46C40706.5060804@domain.hid> Date: Thu, 16 Aug 2007 10:12:54 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: <46C3FFD8.7010105@domain.hid> <18116.537.895227.330587@domain.hid> In-Reply-To: <18116.537.895227.330587@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [PATCH] fls() not available in Linux 2.4 List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai-core Gilles Chanteperdrix wrote: > Wolfgang Grandegger wrote: > > Hello, > > > > the attached patch fixes the following compilation error with Xenomai's > > head of trunk under Linux 2.4: > > > > kernel/kernel.o(.text+0x135a4): In function `__rthal_generic_full_divmod64': > > /temp/rtcan/devel/linuxppc_2_4_devel-xenomai/kernel/xenomai/arch/generic/hal.c:918: > > undefined reference to `fls' > > kernel/kernel.o(.text+0x135b4):/temp/rtcan/devel/linuxppc_2_4_devel-xenomai/kernel/xenomai/arch/generic/hal.c:918: > > undefined reference to `fls' > > Should not this implementation go to asm-powerpc/wrappers.h instead of > asm-generic/wrappers.h ? Ah, yes, of course, because it uses PowerPC assembler. But it might be missing for other archs as well, e.g. I did not find it for i386 in the DENX Linux 2.4.25 tree. Wolfgang.