#257 closed defect (fixed)

c4sim accesses c3x function

Reported by: Ralf Corsepius Owned by: Joel Sherrill
Priority: low Milestone: 2
Component: bsps Version: unknown
Severity: major Keywords:
Cc: bugs@… Blocked By:
Blocking:

Description

Apparent bug in the c4xsim BSP:

Making all in ticker
gmake[3]: Entering directory `/users/rtems/src/rtems-cvs/build/c40/c4x-rtems/c/c4xsim/tests/samples/ticker'
../../../../../c4xsim/lib/librtemsbsp.a(clock.o): In function `Install_clock':
../../../../../../../../../../rtems.work/c/src/lib/libbsp/c4x/c4xsim/clock/clock.c:139: undefined reference to `c3x_get_ie'
../../../../../../../../../../rtems.work/c/src/lib/libbsp/c4x/c4xsim/clock/clock.c(.text+0x67): undefined reference to `c3x_set_ie'
collect2: ld returned 1 exit status
gmake[3]: * [o-optimize/ticker.exe] Error 1
gmake[3]: Leaving directory `/users/rtems/src/rtems-cvs/build/c40/c4x-rtems/c/c4xsim/tests/samples/ticker'

The symbols the linker complains about come from c4x.h and are only available for c3x's.

FYI: The c3xsim compiles!

Release:
RTEMS-CVS

Attachments (1)

pr257.diff (1.2 KB) - added by Ralf Corsepius on Dec 3, 2006 at 1:31:12 PM.
pr257.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on Sep 14, 2002 at 6:57:20 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: Attached patch committed but uncompiled. I think it is

correct as I checked the IIE bits. The problem is that
the C3x and C4x have similar timers but do not have
the same interrupt enable registers.

Changed on Dec 3, 2006 at 1:31:12 PM by Ralf Corsepius

Attachment: pr257.diff added

pr257.diff

Note: See TracTickets for help on using tickets.