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

📄 l2v.s

📁 uCOS-II ports on Tensilica HiFi330 core.
💻 S
字号:
/* l2v.S -- Level 2 Interrupt Vector * * This code is taken from example code in the Xtensa Microprocessor * Programmer's Guide. * * WARNING:  It is highly unlikely that this code works as is on your *	particular Xtensa processor configuration.  It is hardcoded *	for the specific processor configuration used for the *	examples in the Xtensa Microprocessor Programmer's Guide. *	(The example code did not use the Xtensa HAL to address this *	portability issue, for clarity's sake.)  Getting it to work *	on another processor configuration requires some modifications. *//* * Copyright (c) 2003-2005 by Tensilica Inc.  ALL RIGHTS RESERVED. * These coded instructions, statements, and computer programs are the * copyrighted works and confidential proprietary information of Tensilica Inc. * They may not be modified, copied, reproduced, distributed, or disclosed to * third parties in any manner, medium, or form, in whole or in part, without * the prior written consent of Tensilica Inc. *//*    Level2InterruptVector (Medium Priority for Diamond Cores)   This implements the Level 2 Interrupt (Medium Priority) vector and transfers   control to the Level2InterruptHandler.*/	#include <xtensa/coreasm.h>#include <xtensa/config/system.h>#include <xtensa/config/specreg.h>	.global _Level2InterruptVector	.begin literal_prefix .Level2InterruptVector	.section .Level2InterruptVector.text, "ax"	.align 4_Level2InterruptVector:# if HAVE_XSR	//  With XSR, we can use this vector which has the advantage of being ROMable	//  without requiring the handler to also be in ROM; however, it requires	//  initializing the EXCSAVEn register (see ResetEpilog.S) and a slightly	//  different save/restore sequence in the handler:	xsr	a2, EXCSAVE_2	jx	a2# else	wsr	a2, EXCSAVE_2	movi	a2, _Level2InterruptHandler	jx	a2# endif			//  If vector too big for allocated space, catch it at assembly time	//  (albeit with cryptic "can't org backwards" error message):	.org	XSHAL_INTLEVEL2_VECTOR_SIZE.Lendlabel:	.text	.end	literal_prefix

⌨️ 快捷键说明

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