test_memtest_asm.s

来自「操作系统SunOS 4.1.3版本的源码」· S 代码 · 共 45 行

S
45
字号
#include <machine/asm_linkage.h>	/*	 * doustorem_asmX(addr)	 *	addr_t addr;	 *	 * Create an asynchronous store error immediately followed by a	 * synchronous error.	 *	 * There are 4 routines, to get all 4 possible cache-line	 * assignments.	 */	ENTRY(doustorem_asm0)	save	%sp, -SA(MINFRAME), %sp1:	set	1b, %l0		! so we'll store to a cached location	st	%g0, [%i0]	! this should cause an async trap	st	%g0, [%l0]	! and this should cause a sync one	ret	restore	ENTRY(doustorem_asm1)	save	%sp, -SA(MINFRAME), %sp1:	set	1b, %l0		! so we'll store to a cached location	st	%g0, [%i0]	! this should cause an async trap	st	%g0, [%l0]	! and this should cause a sync one	ret	restore	ENTRY(doustorem_asm2)	save	%sp, -SA(MINFRAME), %sp1:	set	1b, %l0		! so we'll store to a cached location	st	%g0, [%i0]	! this should cause an async trap	st	%g0, [%l0]	! and this should cause a sync one	ret	restore	ENTRY(doustorem_asm3)	save	%sp, -SA(MINFRAME), %sp1:	set	1b, %l0		! so we'll store to a cached location	st	%g0, [%i0]	! this should cause an async trap	st	%g0, [%l0]	! and this should cause a sync one	ret	restore

⌨️ 快捷键说明

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