⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 altivec.h

📁 ge公司的dv4av4信号处理板的bsp源代码
💻 H
字号:
/***************************************************************************
*
*  $RCSfile: altivec.h $
*
*  Copyright 2001 by Dy 4 Systems, Inc.  All Rights Reserved.
*
*  $Revision: 1.3 $
*
*  $Name: AV4-ISP-R1.2-1 AV4-ISP-R1.2-0 HMTST2 HMTST1 DVT_AV4_4.101 AV4-VSP-R1.0-2 AV4-VSP-R1.0 CT-ISP-1.1 AV4 ISP 1.1 CT_R0.1_AV4/CAV4 champtools2.22 CAV4_CP1 CHAMPtools FW 3.0 champtools2.21_1215 champtools2.21 champ221_build1 champtools2.2 $  $State: Developmental $  $Locker: $
*
*  $Source: L:/SWRND/champAV2/src/vx/h/drv/altivec/rcs/altivec.h $
*
*  RCS Project Name:
*
*  CSC:
*
*  Target:  7400/7410
*
*  Description: Altivec support functions
*  Prototypes and constants related to Altivec multi-tasking
*  support.
*
*  Usage:
*
*  $Log: altivec.h $
*  Revision 1.3  2004/06/10 21:12:59Z  dsessler
*  Added C++ support.
*  Revision 1.2  2002/03/27 20:01:05  dsessler
*
****************************************************************************/


#ifndef __ALTIVEC__
#define __ALTIVEC__

#ifdef __cplusplus
extern "C" {
#endif

/*
 *  New task create option bit:  this will be superseded 
 *  when wind river supports the Altivec.
 */

#ifndef VX_ALTIVEC
#define VX_ALTIVEC		0x02000000	/* tspawn option	*/
#endif



/*
 *  Save the address of the register save area within
 *  the ALTIVEC_RSAVE field of the TCB.  The register 
 *  save area will be RSAVE_SIZE longwords in length:
 *  32 vector registers, + 4 for vscr, +1 for vrsave.
 */

#define ALTIVEC_RSAVE		spare1
#define ALTIVEC_RSAVE_SIZE	(32*4 + 4 + 1)



/*
 *  Altivec Init function must be called during BSP initialization,
 *  after malloc's are allowed.  This function has no effect when
 *  called from a non-Altivec processor.
 */
void sysAltivecInit (void);



/*
 *  Altivec enable function must be called from tasks wishing to use
 *  the Altivec (unless those tasks were created with the Altivec
 *  option).
 */

int sysAltivecEnable (void);




/*
 *  Context save/restore functions
 */ 

void sysAltivecLoad (void *);
void sysAltivecStore (void *);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -