02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

B<br />

Upgrading a <strong>BSP</strong> for Tornado 2.2<br />

■<br />

The preferred replacements for this routine are vxImmrIsbGet( ) and<br />

vxImmrDevGet( ), which are implemented in vxALib.s and should not be<br />

overridden by the <strong>BSP</strong>. Standard Wind River drivers use the new interface.<br />

Some early MPC74xx/AltiVec support included a routine, typically<br />

vmxExcLoad( ), to initialize the AltiVec exception vectors. For example:<br />

{<br />

bcopy ((char*)(LOCAL_MEM_LOCAL_ADRS + 0x0100),<br />

(char*)(LOCAL_MEM_LOCAL_ADRS + _EXC_VMX_UNAVAIL),<br />

SIZEOF_EXCEPTION);<br />

bcopy ((char*)(LOCAL_MEM_LOCAL_ADRS + 0x0100),<br />

(char*)(LOCAL_MEM_LOCAL_ADRS + _EXC_VMX_ASSIST),<br />

SIZEOF_EXCEPTION);<br />

}<br />

Such code must be removed. AltiVec exception vectors are initialized by<br />

altivecInit( ).<br />

The following change is optional for PowerPC <strong>BSP</strong>s:<br />

■<br />

Assembly files can be converted to use the Wind River standard macros<br />

defined in installDir/target/h/arch/ppc/toolsPpc.h:<br />

B<br />

FUNC_EXPORT<br />

FUNC_IMPORT<br />

_WRS_TEXT_SEG_START<br />

FUNC_BEGIN<br />

FUNC_LABEL<br />

FUNC_END<br />

Converting assembly files in this way is not generally required. However,<br />

conversion (especially to _WRS_TEXT_SEG_START) occasionally fixes a silent<br />

bug.<br />

For more information on using VxWorks with PowerPC targets, see the VxWorks<br />

for PowerPC Architecture Supplement.<br />

B.2.8 XScale/StrongARM<br />

NOTE: This section describes <strong>BSP</strong> migration from Tornado 2.1\VxWorks 5.4 to<br />

Tornado 2.2\VxWorks 5.5. For information on migrating a <strong>BSP</strong> from Tornado 2.0.x<br />

to Tornado 2.1, see the Tornado for StrongARM/XScale Release Notes and Architecture<br />

Supplement manual available on WindSurf.<br />

219

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!