a4300.s
来自「mips架构的bootloader,99左右的版本 但源代码现在没人更新了」· S 代码 · 共 42 行
S
42 行
/************************************************************* * File: lib/a4300.s * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 980305 Created from a4011.s */#ifndef VR4300#define VR4300#endif#include <mips.h>#define C0_CONFIG $16#define CONFIG_ECMASK (7<<28)#define CONFIG_EC_13 (1<<28)#define CONFIG_EPMASK (15<<24)#define CONFIG_EP_DD (6<<24)#define CONFIG_BE (1<<15)#define CONFIG_K0_3 (3<<0) .globl a4300init .ent a4300inita4300init: beq a0,zero,1f j c4300init 1: .set noreorder li t0, (CONFIG_EC_13|CONFIG_BE|CONFIG_K0_3) mtc0 t0,C0_CONFIG nop .set reorder # select the correct cache flushing routines la s0,r4300_flush j ra .end a4300init
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?