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

📄 xp_nofault.s

📁 linux-2.6.15.6
💻 S
字号:
/* * 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. * * Copyright (c) 2004-2005 Silicon Graphics, Inc.  All Rights Reserved. *//* * The xp_nofault_PIOR function takes a pointer to a remote PIO register * and attempts to load and consume a value from it.  This function * will be registered as a nofault code block.  In the event that the * PIO read fails, the MCA handler will force the error to look * corrected and vector to the xp_error_PIOR which will return an error. * *	extern int xp_nofault_PIOR(void *remote_register); */	.global xp_nofault_PIORxp_nofault_PIOR:	mov	r8=r0			// Stage a success return value	ld8.acq	r9=[r32];;		// PIO Read the specified register	adds	r9=1,r9			// Add to force a consume	br.ret.sptk.many b0;;		// Return success	.global xp_error_PIORxp_error_PIOR:	mov	r8=1			// Return value of 1	br.ret.sptk.many b0;;		// Return failure

⌨️ 快捷键说明

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