#1537 closed defect (fixed)

lm32: _CPU_virtual_to_physical

Reported by: Ralf Corsepius Owned by: Joel Sherrill
Priority: normal Milestone: 4.10
Component: bsps Version: 4.10
Severity: major Keywords:
Cc: Blocked By:
Blocking:

Description

This warning occurs while building the lm32_evr:

../../../../../../../c/src/lib/libcpu/lm32/shared/cache/cache.c:25:3: warning: implicit declaration of function '_CPU_virtual_to_physical'
../../../../../../../c/src/lib/libcpu/lm32/shared/cache/cache.c:25:3: warning: nested extern declaration of '_CPU_virtual_to_physical'

A grep through the source tree shows this function doesn't exist for this cpu/BSP:

# grep -R _CPU_virtual_to_physical cpukit c
cpukit/score/cpu/m68k/rtems/score/m68k.h: * _CPU_virtual_to_physical
cpukit/score/cpu/m68k/rtems/score/m68k.h:static inline void * _CPU_virtual_to_physical (
c/src/lib/libcpu/m68k/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
c/src/lib/libcpu/m68k/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
c/src/lib/libcpu/m68k/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
c/src/lib/libcpu/m68k/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
c/src/lib/libcpu/m68k/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( i_addr );
c/src/lib/libcpu/lm32/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
c/src/lib/libcpu/lm32/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
c/src/lib/libcpu/lm32/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( i_addr );
c/src/lib/libcpu/nios2/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
c/src/lib/libcpu/nios2/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
c/src/lib/libcpu/nios2/shared/cache/cache.c: void * p_address = (void *) _CPU_virtual_to_physical( i_addr );

Change History (1)

comment:1 Changed on May 29, 2010 at 10:28:25 PM by Joel Sherrill

Resolution: fixed
Status: newclosed

This port currently either has no caching to manage or has no cache management support. I added shared/src/no_cache.c and am switching ports which have to stub implementation to use that.

Note: See TracTickets for help on using tickets.