Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2007 14:31:06 +0300
From:      Krassimir Slavchev <krassi@bulinfo.net>
To:        Attilio Rao <attilio@freebsd.org>
Cc:        freebsd-arm@freebsd.org, freebsd-current@freebsd.org, =?UTF-8?B?QmrDtnJuIEvDtm5pZw==?= <bkoenig@alpha-tierchen.de>
Subject:   Re: kernel linking
Message-ID:  <46669AFA.2060104@bulinfo.net>
In-Reply-To: <3bbf2fe10706050815u619bd2e6p728c0d20e2aae802@mail.gmail.com>
References:  <46657B33.5010804@bulinfo.net> <3bbf2fe10706050815u619bd2e6p728c0d20e2aae802@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Attilio Rao wrote:
> 2007/6/5, Krassimir Slavchev <krassi@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@bulinfo.net           (+359 2) 969-9160
http://www.bulinfo.net       (+359 2) 969-9166




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46669AFA.2060104>