__raw_*lock for Xenaomai 2.01 on ppc
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=yCONFIG_DEBUG_SPINLOCK=y
Regards
Anders Blomdell
Quoted 8 lines · Anders Blomdell
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
Quoted 10 lines
unless the kernel is compiled with:
CONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_SPINLOCK=yRegards
Anders Blomdell
Patch version, please.
Quoted 5 lines
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Quoted 8 lines
Quoted 8 lines
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
Quoted 5 lines
Quoted 4 lines
unless the kernel is compiled with:
CONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_SPINLOCK=yPatch 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
Quoted 10 lines · Anders Blomdell
Quoted 10 lines
Quoted 10 lines
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_lockunless the kernel is compiled with:
Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
CONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_SPINLOCK=yPatch version, please.
xenomai-2.0.1/arch/ppc/patches/adeos-ipipe-2.6.14-ppc-1.0-06.patchThe problem probably is that the
EXPORT_SYMBOLare done inlib/spinlock_debug.c, which is only compiled ifCONFIG_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.
Signature · 1 line
Philippe.