Re: kernel linking

From: Krassimir Slavchev <krassi_at_bulinfo.net>
Date: Wed, 06 Jun 2007 14:31:06 +0300
Attilio Rao wrote:
> 2007/6/5, Krassimir Slavchev <krassi_at_bulinfo.net>:
>> This is with latest -current on arm:
>>
>> linking kernel
>> kern_intr.o(.text+0x15d8): In function `swi_sched':
>> : undefined reference to `PCPU_LAZY_ADD'
>> kern_synch.o(.text+0x210): In function `mi_switch':
>> : undefined reference to `PCPU_LAZY_ADD'
>> kern_thread.o(.text+0x9b4): In function `thread_exit':
>> : undefined reference to `PCPU_LAZY_ADD'
>> subr_trap.o(.text+0x180): In function `ast':
>> : undefined reference to `PCPU_LAZY_ADD'
>> nfs_bio.o(.text+0x11cc): In function `nfs_getpages':
>> : undefined reference to `PCPU_LAZY_ADD'
>> nfs_bio.o(.text+0x1620): more undefined references to `PCPU_LAZY_ADD' 
>> follow
>
> These have been renamed.
> Be sure you update all your src tree, then recompile by scratch your 
> kernel.
>
> Attilio
>
>
OK, but in src/sys/arm/include/pcpu.h we have:

#define     PCPU_INC(member)        PCPU_LAZY_ADD(member, 1)

which should be:

#define PCPU_INC(member)        PCPU_ADD(member, 1)

or as patch:

RCS file: /home/ncvs/src/sys/arm/include/pcpu.h,v
retrieving revision 1.5
diff -r1.5 pcpu.h
61c61
< #define       PCPU_INC(member)        PCPU_LAZY_ADD(member, 1)
---
 > #define       PCPU_INC(member)        PCPU_ADD(member, 1)

-- 
Krassimir Slavchev           Bulinfo Ltd.
krassi_at_bulinfo.net           (+359 2) 969-9160
http://www.bulinfo.net       (+359 2) 969-9166
Received on Wed Jun 06 2007 - 09:31:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC