exceptionhandler-bf535.asm

来自「Balackfi processor VDK code example」· 汇编 代码 · 共 62 行

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