⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 misc.s

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 S
字号:
/* * Copyright (C) Paul Mackerras 1997. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */	.text/* * Use the BAT3 registers to map the 1st 8MB of RAM to * the address given as the 1st argument. */	.globl	setup_batssetup_bats:	mfpvr	5	rlwinm	5,5,16,16,31		/* r3 = 1 for 601, 4 for 604 */	cmpi	0,5,1	li	0,0	bne	4f	mtibatl	3,0			/* invalidate BAT first */	ori	3,3,4			/* set up BAT registers for 601 */	li	4,0x7f	mtibatu	3,3	mtibatl	3,4	b	5f4:	mtdbatu	3,0			/* invalidate BATs first */	mtibatu	3,0	ori	3,3,0xff		/* set up BAT registers for 604 */	li	4,2	mtdbatl	3,4	mtdbatu	3,3	mtibatl	3,4	mtibatu	3,35:	sync	isync	blr/* * Flush the dcache and invalidate the icache for a range of addresses. * * flush_cache(addr, len) */	.global	flush_cacheflush_cache:	addi	4,4,0x1f	/* len = (len + 0x1f) / 0x20 */	rlwinm.	4,4,27,5,31	mtctr	4	beqlr1:	dcbf	0,3	icbi	0,3	addi	3,3,0x20	bdnz	1b	sync	isync	blr

⌨️ 快捷键说明

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