Hello Younggi,
I add the following
definitions and the corresponding declarations to the sysAUtil.s file in my
CPCI-6200 (MPC8572 processor) wb3.2/vx6.8 BSP directory, and it works. I think
it will also apply to MVME-3100.
FUNC_EXPORT(sysIn16) FUNC_EXPORT(sysOut16) FUNC_EXPORT(sysIn32) FUNC_EXPORT(sysOut32)
FUNC_BEGIN(sysIn16)
eieio
/* Sync I/O operation */
sync lhzx
p0,r0,p0 /* Read word from I/O space
*/ bclr
20,0 /* Return
to caller */ FUNC_END(sysIn16)
FUNC_BEGIN(sysOut16)
sthx p1,r0,p0 /*
Write a word to I/O space */
eieio
/* Sync I/O operation */
sync bclr
20,0 /* Return
to caller */ FUNC_END(sysOut16)
FUNC_BEGIN(sysIn32)
eieio
/* Sync I/O operation */
sync lwzx
p0,r0,p0 /* Read long from I/O space
*/ bclr
20,0 /* Return
to caller */ FUNC_END(sysIn32)
FUNC_BEGIN(sysOut32)
stwx p1,r0,p0 /*
Write a long to I/O space */
eieio
/* Sync I/O operation */
sync bclr
20,0 /* Return
to caller */ FUNC_END(sysOut32)
Lin
Wang
----- Original Message -----
Sent: Tuesday, March 05, 2013 2:30 PM
Subject: undefined symbol when loading
mrfioc2
Hello:
When loading mrfioc2, I got some undefined
symbol errors as follows.
-> ld < mrf.munch
Warning: module 0x166a330 holds reference
to undefined symbol SysIn16.
Warning: module 0x166a330 holds reference
to undefined symbol SysOut32.
Warning: module 0x166a330 holds
reference to undefined symbol SysIn32.
Warning: module 0x166a330 holds
reference to undefined symbol SysOut16.
ld(): module contains undefined symbol(s)
and may be unusable.
value = 0 = 0x0
->
The undefined symbols are included in
/mrfioc2/mrfCommon/src/os/vxWorks/mrfIoOps.h
Do i have to
add more items to kernel (bsp) configuration?
Could you help me how to fix this
problem?
Thanks in advance!
Best regards.
Younggi.
-------------------------------------- Build environment is as follows.
-------------------------------------- - EPICS Base3.14.12.2
- vxWorks 6.8
- mvme3100 (mps8540)
- modules : autosave-4.8, devLib2-2.3, mrfioc2-2.0.1
|