kernv.s

来自「uCOS-II ports on Tensilica HiFi330 core.」· S 代码 · 共 52 行

S
52
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?