asm_exc_handler.s
来自「COG-VP12864液晶屏驱动代码及对应RTC实例」· S 代码 · 共 92 行
S
92 行
/*
********************************************************
// Copyright (c)2004 Ark Pioneer Microelectronics Ltd.,
// All Rights Reserved
//
// Filename: asm_exc_handler.s
// Version: 1.0
// Created: 2004.03.04 By: Philip
*********************************************************
*/
#include <stackframe.h>
#include <asm.h>
#include <cpureg.h>
#include <mipsreg.h>
.set noreorder
# Cold reset, soft reset, NMI -------------------------------
# 0xbfc0 0000
.globl Reset
.ent Reset
Reset:
mfc0 k0, CP0_STATUS
li k1, 0x00100000 /* ST0_SR */
and k1, k1, k0
bne k1, zero, NMI_exception
nop
# Describe processing for cold reset exception
j Reset
nop
NMI_exception:
# Add processings for soft reset and NMI exception
j Reset
nop
.end Reset
# TLB exception ----------------------------------------------
.globl TLB_exception
.ent TLB_exception
TLB_exception:
# Describe processing for TLB exception
j Reset
nop
.end TLB_exception
# XTLB exception --------------------------------------------
.globl XTLB_exception
.ent XTLB_exception
XTLB_exception:
# Describe processing for XTLB exception
j Reset
nop
.end XTLB_exception
# Cache error exception ------------------------------------
.globl Cache_error
.ent Cache_error
Cache_error:
# Describe processing for cache error exception
j Reset
nop
.end Cache_error
# Other exceptions ------------------------------------------
.globl OTHER_exception
.ent OTHER_exception
OTHER_exception:
/* nothing to do, we do in ExceptionProcess routine */
.end OTHER_exception
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?