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

📄 l4v.s

📁 uCOS-II ports on Tensilica HiFi330 core.
💻 S
字号:
/* l4v.S -- Level 4 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. *//*    Level4InterruptVector (High Priority for Diamond Cores)   This implements the Level 4 Interrupt (High Priority) vector and transfers   control to the Level4InterruptHandler.*/#include <xtensa/coreasm.h>#include <xtensa/config/system.h>#include <xtensa/config/specreg.h>	.begin literal_prefix .Level4InterruptVector	.section .Level4InterruptVector.text, "ax"	.align 4	.global _Level4InterruptVector	_Level4InterruptVector:	wsr     a2, EXCSAVE_4	movi    a2, _Level4InterruptHandler	jx      a2			//  If vector too big for allocated space, catch it at assembly time	//  (albeit with cryptic "can't org backwards" error message):	.org	XSHAL_INTLEVEL4_VECTOR_SIZE.Lendlabel:	.text	.end	literal_prefix

⌨️ 快捷键说明

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