📄 exceptionhandler-bf535.asm
字号:
/* =============================================================================
*
* Description: This is the exception handler.
*
* -----------------------------------------------------------------------------
* Comments:
*
* ===========================================================================*/
#include "VDK.h"
.file_attr prefersMem="internal";
.section/doubleany data1;
/* declare external globals */
/* declare locals */
.section/doubleany L1_code;
/******************************************************************************
* UserExceptionHandler
*/
/* User Exception Handler entry point */
.GLOBAL UserExceptionHandler;
UserExceptionHandler:
/**
* Handle the exception...
*
* Remember that the VDK reserves the user exception 0, which
* is accessed with the following instruction:
*
* EXCPT 0;
*
* Any other exception (user or system), is your responsibility to
* handle here.
*/
#if 0
// Workaround for ADSP-BF535 caching anomaly number 05000164 "store to load
// forwarding in write through mode". This code is not
// required for applications which do not enable caching.
// If this code needs to be in, the file should be assembled with the
// -wb_wt_fix option
SSYNC;
#endif
RTX;
#if 0
// Workaround for ADSP-BF535 caching anomaly number 05000165 "data cache
// dirty bit set when a load-miss-fill is in progress. This code is not
// required for applications which do not enable caching.
// If this code needs to be in, the file should be assembled with the
// -wb_fix option
NOP;
NOP;
#endif
.UserExceptionHandler.end:
/* ========================================================================== */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -