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

📄 page.s

📁 linux-2.6.15.6
💻 S
字号:
/* *  linux/arch/m32r/mm/page.S * *  Clear/Copy page with CPU * *  Copyright (C) 2004  The Free Software Initiative of Japan * *  Written by Niibe Yutaka * * This file is subject to the terms and conditions of the GNU General Public * License.  See the file "COPYING" in the main directory of this archive * for more details. * */	.text	.global	copy_page	/*	 * copy_page (to, from)	 *	 * PAGE_SIZE = 4096-byte	 * Cache line = 16-byte	 * 16 * 256	 */	.align	4copy_page:	ldi	r2, #255	ld	r3, @r0		/* cache line allocate */	ld	r4, @r1+	ld	r5, @r1+	ld	r6, @r1+	ld	r7, @r1+	.fillinsn0:	st	r4, @r0	st	r5, @+r0	st	r6, @+r0	st	r7, @+r0	ld	r4, @r1+	addi	r0, #4	ld	r5, @r1+	ld	r6, @r1+	ld	r7, @r1+	ld	r3, @r0		/* cache line allocate */	addi	r2, #-1	bnez	r2, 0b	st	r4, @r0	st	r5, @+r0	st	r6, @+r0	st	r7, @+r0	jmp	r14	.text	.global	clear_page	/*	 * clear_page (to)	 *	 * PAGE_SIZE = 4096-byte	 * Cache line = 16-byte	 * 16 * 256	 */	.align	4clear_page:	ldi	r2, #255	ldi	r4, #0	ld	r3, @r0		/* cache line allocate */	.fillinsn0:	st	r4, @r0	st	r4, @+r0	st	r4, @+r0	st	r4, @+r0	addi	r0, #4	ld	r3, @r0		/* cache line allocate */	addi	r2, #-1	bnez	r2, 0b	st	r4, @r0	st	r4, @+r0	st	r4, @+r0	st	r4, @+r0	jmp	r14

⌨️ 快捷键说明

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