📄 debugexceptionvector.s
字号:
// DebugExceptionVector.S -- Debug Exception Handler Vector
// $Id: //depot/rel/BearValley/Xtensa/OS/xtos/DebugExceptionVector.S#1 $
// Customer ID=4654; Build=0x116b0; Copyright (c) 2003 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.
#include <xtensa/config/specreg.h>
#include <xtensa/coreasm.h>
#include <xtensa/config/system.h>
#if XCHAL_HAVE_DEBUG
#if XCHAL_HAVE_EXCEPTIONS
// Exports
.global _DebugExceptionVector
// Imports
// _DebugExceptionFromVector
// This code goes at the debug exception vector
.begin literal_prefix .DebugExceptionVector
.section .DebugExceptionVector.text, "ax"
.align 4
_DebugExceptionVector:
wsr a0, EXCSAVE_6
movi a0, _DebugExceptionFromVector
jx a0
// If vector too big for allocated space, catch it at assembly time
// (albeit with cryptic "can't org backwards" error message):
.org XSHAL_DEBUG_VECTOR_SIZE
.Lendlabel:
.text
.end literal_prefix
#endif /* XCHAL_HAVE_DEBUG */
#endif /* XCHAL_HAVE_EXCEPTIONS */
// Local Variables:
// mode:fundamental
// comment-start: "// "
// comment-start-skip: "// *"
// End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -