accesscp15.h
来自「OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI」· C头文件 代码 · 共 52 行
H
52 行
//=====================================================================
// TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
// Property of Texas Instruments -- For Unrestricted Internal Use Only
// Unauthorized reproduction and/or distribution is strictly prohibited
// This product is protected under copyright law and trade secret law as
// an unpublished work.Created 2001,(C) Copyright 2001 Texas Instruments.
// All rights reserved.
//=====================================================================
#ifndef _ACCESS_H
#define _ACCESS_H
#define P_bit 0x10000 /* Prefetch buffer disable */
/*
-----------------------------------------------------------------------------
NAME : ARM_PRE_OFF -
DESCRIPTION : Disable PreFetch Buffer -
PARAMETERS : None. -
RETURN VALUE: None. -
LIMITATIONS : None. -
-----------------------------------------------------------------------------
*/
#define ARM_PRE_OFF \
{ \
int tmp; \
\
tmp = ARM_READ_REG15_C0(); \
tmp |= P_bit; \
ARM_WRITE_REG15_C0(tmp); \
}
/*
-----------------------------------------------------------------------------
NAME : ARM_PRE_ON -
DESCRIPTION : Enable PreFetch Buffer -
PARAMETERS : None. -
RETURN VALUE: None. -
LIMITATIONS : None. -
-----------------------------------------------------------------------------
*/
#define ARM_PRE_ON \
{ \
int tmp; \
\
tmp = ARM_READ_REG15_C0(); \
tmp &= ~P_bit; \
ARM_WRITE_REG15_C0(tmp); \
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?