* [Xenomai-help] __raw_*lock for Xenaomai 2.01 on ppc
@ 2005-11-21 16:56 Anders Blomdell
2005-11-21 18:29 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Anders Blomdell @ 2005-11-21 16:56 UTC (permalink / raw)
To: xenomai
Is it by design or mistake that I get the following undefined symbols on
a PowerPC
# insmod xeno_nucleus.ko
xeno_nucleus: Unknown symbol __raw_read_lock
xeno_nucleus: Unknown symbol __raw_write_unlock
xeno_nucleus: Unknown symbol __raw_read_unlock
xeno_nucleus: Unknown symbol __raw_write_lock
unless the kernel is compiled with:
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SPINLOCK=y
Regards
Anders Blomdell
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] __raw_*lock for Xenaomai 2.01 on ppc
2005-11-21 16:56 [Xenomai-help] __raw_*lock for Xenaomai 2.01 on ppc Anders Blomdell
@ 2005-11-21 18:29 ` Philippe Gerum
2005-11-22 7:55 ` Anders Blomdell
0 siblings, 1 reply; 4+ messages in thread
From: Philippe Gerum @ 2005-11-21 18:29 UTC (permalink / raw)
To: Anders Blomdell; +Cc: xenomai
Anders Blomdell wrote:
> Is it by design or mistake that I get the following undefined symbols on
> a PowerPC
>
> # insmod xeno_nucleus.ko
> xeno_nucleus: Unknown symbol __raw_read_lock
> xeno_nucleus: Unknown symbol __raw_write_unlock
> xeno_nucleus: Unknown symbol __raw_read_unlock
> xeno_nucleus: Unknown symbol __raw_write_lock
>
> unless the kernel is compiled with:
>
> CONFIG_DEBUG_KERNEL=y
> CONFIG_DEBUG_SPINLOCK=y
>
> Regards
>
> Anders Blomdell
>
>
Patch version, please.
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] __raw_*lock for Xenaomai 2.01 on ppc
2005-11-21 18:29 ` Philippe Gerum
@ 2005-11-22 7:55 ` Anders Blomdell
2005-11-22 18:53 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Anders Blomdell @ 2005-11-22 7:55 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai
>> Is it by design or mistake that I get the following undefined symbols
>> on a PowerPC
>>
>> # insmod xeno_nucleus.ko
>> xeno_nucleus: Unknown symbol __raw_read_lock
>> xeno_nucleus: Unknown symbol __raw_write_unlock
>> xeno_nucleus: Unknown symbol __raw_read_unlock
>> xeno_nucleus: Unknown symbol __raw_write_lock
>>
>> unless the kernel is compiled with:
>>
>> CONFIG_DEBUG_KERNEL=y
>> CONFIG_DEBUG_SPINLOCK=y
> Patch version, please.
xenomai-2.0.1/arch/ppc/patches/adeos-ipipe-2.6.14-ppc-1.0-06.patch
The problem probably is that the EXPORT_SYMBOL are done in
lib/spinlock_debug.c, which is only compiled if CONFIG_DEBUG_SPINLOCK=y
Regards
Anders Blomdell
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] __raw_*lock for Xenaomai 2.01 on ppc
2005-11-22 7:55 ` Anders Blomdell
@ 2005-11-22 18:53 ` Philippe Gerum
0 siblings, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2005-11-22 18:53 UTC (permalink / raw)
To: Anders Blomdell; +Cc: xenomai
Anders Blomdell wrote:
>>> Is it by design or mistake that I get the following undefined symbols
>>> on a PowerPC
>>>
>>> # insmod xeno_nucleus.ko
>>> xeno_nucleus: Unknown symbol __raw_read_lock
>>> xeno_nucleus: Unknown symbol __raw_write_unlock
>>> xeno_nucleus: Unknown symbol __raw_read_unlock
>>> xeno_nucleus: Unknown symbol __raw_write_lock
>>>
>>> unless the kernel is compiled with:
>>>
>>> CONFIG_DEBUG_KERNEL=y
>>> CONFIG_DEBUG_SPINLOCK=y
>>
>> Patch version, please.
>
> xenomai-2.0.1/arch/ppc/patches/adeos-ipipe-2.6.14-ppc-1.0-06.patch
>
> The problem probably is that the EXPORT_SYMBOL are done in
> lib/spinlock_debug.c, which is only compiled if CONFIG_DEBUG_SPINLOCK=y
>
lib/debug_spinlock.c adds exports for the _raw_* symbols, not for
__raw_* ones (actually, I did add those since they were missing in the
vanilla kernel in the first place). At first sight, the issue looks like
related to linux/spinlock_up.h not defining no-ops for those symbols in
the non-debug case. Maybe another vanilla kernel issue.
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-11-22 18:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-21 16:56 [Xenomai-help] __raw_*lock for Xenaomai 2.01 on ppc Anders Blomdell
2005-11-21 18:29 ` Philippe Gerum
2005-11-22 7:55 ` Anders Blomdell
2005-11-22 18:53 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.