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

📄 kernv.s

📁 uCOS-II ports on Tensilica HiFi330 core.
💻 S
字号:
/* kernv.S -- Kernel 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. *//*    KernelExceptionVector   This implements the kernel exception vector and transfers   control to the KernelExceptionHandler.*/#include <xtensa/coreasm.h>#include <xtensa/config/system.h>#include <xtensa/config/specreg.h>	.begin  literal_prefix .KernelExceptionVector	.section .KernelExceptionVector.text, "ax"	.align  4	.global _KernelExceptionVector_KernelExceptionVector:	wsr     a3, EXCSAVE_1	movi    a3, _KernelExceptionHandler	jx      a3	//  If vector too big for allocated space, catch it at assembly time	//  (albeit with cryptic "can't org backwards" error message):	.org	XSHAL_KERNEL_VECTOR_SIZE.Lendlabel:	.text	.end	literal_prefix

⌨️ 快捷键说明

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