a33000.s

来自「mips架构的bootloader,99左右的版本 但源代码现在没人更新了」· S 代码 · 共 40 行

S
40
字号
/************************************************************* * File: lib/a33000.s * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: *	970304	Start of revision history */#include <mips.h>CACHE_CFG = (CR_IBLK_4|CR_DBLK_4)WAIT_CFG = ((6<<CR_IOWAITSHFT)|(6<<CR_PWAITSHFT))MEM_CFG = (CR_RDYGEN|CR_RFSHEN|CR_DRAMEN)	############# 33000 #################	.globl a33000init	.ent a33000inita33000init:	beq     a0,zero,1f	j       c33000init    1:	# must be a LR33000	li	t0,375			# 512 rows in 8ms = 15us	sw	t0,M_RTIC	# refresh	# turn on the RAM	li	t0,(CACHE_CFG|WAIT_CFG|MEM_CFG)	sw	t0,M_CFGREG	# delay to allow RAM to stabilize	li	t0,10001:	subu	t0,1	bne	t0,zero,1b	# select the correct cache flushing routines	la	s0,r33k_flush	j	ra	.end a33000init

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?