您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ BUS_ERROR函数代码示例

51自学网 2021-06-01 19:54:03
  C++
这篇教程C++ BUS_ERROR函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中BUS_ERROR函数的典型用法代码示例。如果您正苦于以下问题:C++ BUS_ERROR函数的具体用法?C++ BUS_ERROR怎么用?C++ BUS_ERROR使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了BUS_ERROR函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: decode_mc3_mce

static void decode_mc3_mce(struct mce *m){	u16 ec = EC(m->status);	u8 xec = XEC(m->status, xec_mask);	if (boot_cpu_data.x86 >= 0x14) {		pr_emerg("You shouldn't be seeing MC3 MCE on this cpu family,"			 " please report on LKML./n");		return;	}	pr_emerg(HW_ERR "MC3 Error");	if (xec == 0x0) {		u8 r4 = R4(ec);		if (!BUS_ERROR(ec) || (r4 != R4_DRD && r4 != R4_DWR))			goto wrong_mc3_mce;		pr_cont(" during %s./n", R4_MSG(ec));	} else		goto wrong_mc3_mce;	return; wrong_mc3_mce:	pr_emerg(HW_ERR "Corrupted MC3 MCE info?/n");}
开发者ID:AdrianHuang,项目名称:linux-3.8.13,代码行数:28,


示例2: f15h_mc2_mce

static bool f15h_mc2_mce(u16 ec, u8 xec){	bool ret = true;	if (TLB_ERROR(ec)) {		if (xec == 0x0)			pr_cont("Data parity TLB read error./n");		else if (xec == 0x1)			pr_cont("Poison data provided for TLB fill./n");		else			ret = false;	} else if (BUS_ERROR(ec)) {		if (xec > 2)			ret = false;		pr_cont("Error during attempted NB data read./n");	} else if (MEM_ERROR(ec)) {		switch (xec) {		case 0x4 ... 0xc:			pr_cont("%s./n", f15h_mc2_mce_desc[xec - 0x4]);			break;		case 0x10 ... 0x14:			pr_cont("%s./n", f15h_mc2_mce_desc[xec - 0x7]);			break;		default:			ret = false;		}	} else if (INT_ERROR(ec)) {
开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:30,


示例3: k8_mc2_mce

static bool k8_mc2_mce(u16 ec, u8 xec){	bool ret = true;	if (xec == 0x1)		pr_cont(" in the write data buffers./n");	else if (xec == 0x3)		pr_cont(" in the victim data buffers./n");	else if (xec == 0x2 && MEM_ERROR(ec))		pr_cont(": %s error in the L2 cache tags./n", R4_MSG(ec));	else if (xec == 0x0) {		if (TLB_ERROR(ec))			pr_cont(": %s error in a Page Descriptor Cache or "				"Guest TLB./n", TT_MSG(ec));		else if (BUS_ERROR(ec))			pr_cont(": %s/ECC error in data read from NB: %s./n",				R4_MSG(ec), PP_MSG(ec));		else if (MEM_ERROR(ec)) {			u8 r4 = R4(ec);			if (r4 >= 0x7)				pr_cont(": %s error during data copyback./n",					R4_MSG(ec));			else if (r4 <= 0x1)				pr_cont(": %s parity/ECC error during data "					"access from L2./n", R4_MSG(ec));			else				ret = false;		} else			ret = false;	} else		ret = false;	return ret;}
开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:35,


示例4: decode_mc1_mce

static void decode_mc1_mce(struct mce *m){	u16 ec = EC(m->status);	u8 xec = XEC(m->status, xec_mask);	pr_emerg(HW_ERR "MC1 Error: ");	if (TLB_ERROR(ec))		pr_cont("%s TLB %s./n", LL_MSG(ec),			(xec ? "multimatch" : "parity error"));	else if (BUS_ERROR(ec)) {		bool k8 = (boot_cpu_data.x86 == 0xf && (m->status & BIT_64(58)));		pr_cont("during %s./n", (k8 ? "system linefill" : "NB data read"));	} else if (INT_ERROR(ec)) {		if (xec <= 0x3f)			pr_cont("Hardware Assert./n");		else			goto wrong_mc1_mce;	} else if (fam_ops->mc1_mce(ec, xec))		;	else		goto wrong_mc1_mce;	return;wrong_mc1_mce:	pr_emerg(HW_ERR "Corrupted MC1 MCE info?/n");}
开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:29,


示例5: decode_mc4_mce

static void decode_mc4_mce(struct mce *m){	struct cpuinfo_x86 *c = &boot_cpu_data;	int node_id = amd_get_nb_id(m->extcpu);	u16 ec = EC(m->status);	u8 xec = XEC(m->status, 0x1f);	u8 offset = 0;	pr_emerg(HW_ERR "MC4 Error (node %d): ", node_id);	switch (xec) {	case 0x0 ... 0xe:		/* special handling for DRAM ECCs */		if (xec == 0x0 || xec == 0x8) {			/* no ECCs on F11h */			if (c->x86 == 0x11)				goto wrong_mc4_mce;			pr_cont("%s./n", mc4_mce_desc[xec]);			if (nb_bus_decoder)				nb_bus_decoder(node_id, m);			return;		}		break;	case 0xf:		if (TLB_ERROR(ec))			pr_cont("GART Table Walk data error./n");		else if (BUS_ERROR(ec))			pr_cont("DMA Exclusion Vector Table Walk error./n");		else			goto wrong_mc4_mce;		return;	case 0x19:		if (boot_cpu_data.x86 == 0x15)			pr_cont("Compute Unit Data Error./n");		else			goto wrong_mc4_mce;		return;	case 0x1c ... 0x1f:		offset = 13;		break;	default:		goto wrong_mc4_mce;	}	pr_cont("%s./n", mc4_mce_desc[xec - offset]);	return; wrong_mc4_mce:	pr_emerg(HW_ERR "Corrupted MC4 MCE info?/n");}
开发者ID:AdrianHuang,项目名称:linux-3.8.13,代码行数:57,


示例6: k8_mc0_mce

static bool k8_mc0_mce(u16 ec, u8 xec){	if (BUS_ERROR(ec)) {		pr_cont("during system linefill./n");		return true;	}	return f10h_mc0_mce(ec, xec);}
开发者ID:AdrianHuang,项目名称:linux-3.8.13,代码行数:9,


示例7: amd_decode_err_code

static inline void amd_decode_err_code(u16 ec){	pr_emerg(HW_ERR "cache level: %s", LL_MSG(ec));	if (BUS_ERROR(ec))		pr_cont(", mem/io: %s", II_MSG(ec));	else		pr_cont(", tx: %s", TT_MSG(ec));	if (MEM_ERROR(ec) || BUS_ERROR(ec)) {		pr_cont(", mem-tx: %s", R4_MSG(ec));		if (BUS_ERROR(ec))			pr_cont(", part-proc: %s (%s)", PP_MSG(ec), TO_MSG(ec));	}	pr_cont("/n");}
开发者ID:AdrianHuang,项目名称:linux-3.8.13,代码行数:19,


示例8: f10h_nb_mce

static bool f10h_nb_mce(u16 ec, u8 xec){	bool ret = true;	u8 offset = 0;	if (k8_nb_mce(ec, xec))		return true;	switch(xec) {	case 0xa ... 0xc:		offset = 10;		break;	case 0xe:		offset = 11;		break;	case 0xf:		if (TLB_ERROR(ec))			pr_cont("GART Table Walk data error./n");		else if (BUS_ERROR(ec))			pr_cont("DMA Exclusion Vector Table Walk error./n");		else			ret = false;		goto out;		break;	case 0x19:		if (boot_cpu_data.x86 == 0x15)			pr_cont("Compute Unit Data Error./n");		else			ret = false;		goto out;		break;	case 0x1c ... 0x1f:		offset = 24;		break;	default:		ret = false;		goto out;		break;	}	pr_cont("%s./n", f10h_nb_mce_desc[xec - offset]);out:	return ret;}
开发者ID:rrowicki,项目名称:Chrono_Kernel-1,代码行数:53,


示例9: f15h_mc0_mce

static bool f15h_mc0_mce(u16 ec, u8 xec){	bool ret = true;	if (MEM_ERROR(ec)) {		switch (xec) {		case 0x0:			pr_cont("Data Array access error./n");			break;		case 0x1:			pr_cont("UC error during a linefill from L2/NB./n");			break;		case 0x2:		case 0x11:			pr_cont("STQ access error./n");			break;		case 0x3:			pr_cont("SCB access error./n");			break;		case 0x10:			pr_cont("Tag error./n");			break;		case 0x12:			pr_cont("LDQ access error./n");			break;		default:			ret = false;		}	} else if (BUS_ERROR(ec)) {		if (!xec)			pr_cont("System Read Data Error./n");		else			pr_cont(" Internal error condition type %d./n", xec);	} else if (INT_ERROR(ec)) {		if (xec <= 0x1f)			pr_cont("Hardware Assert./n");		else			ret = false;	} else		ret = false;	return ret;}
开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:52,


示例10: f14h_mc0_mce

static bool f14h_mc0_mce(u16 ec, u8 xec){	u8 r4	 = R4(ec);	bool ret = true;	if (MEM_ERROR(ec)) {		if (TT(ec) != TT_DATA || LL(ec) != LL_L1)			return false;		switch (r4) {		case R4_DRD:		case R4_DWR:			pr_cont("Data/Tag parity error due to %s./n",				(r4 == R4_DRD ? "load/hw prf" : "store"));			break;		case R4_EVICT:			pr_cont("Copyback parity error on a tag miss./n");			break;		case R4_SNOOP:			pr_cont("Tag parity error during snoop./n");			break;		default:			ret = false;		}	} else if (BUS_ERROR(ec)) {		if ((II(ec) != II_MEM && II(ec) != II_IO) || LL(ec) != LL_LG)			return false;		pr_cont("System read data error on a ");		switch (r4) {		case R4_RD:			pr_cont("TLB reload./n");			break;		case R4_DWR:			pr_cont("store./n");			break;		case R4_DRD:			pr_cont("load./n");			break;		default:			ret = false;		}	} else {		ret = false;	}	return ret;}
开发者ID:AdrianHuang,项目名称:linux-3.8.13,代码行数:51,


示例11: f15h_dc_mce

static bool f15h_dc_mce(u16 ec, u8 xec){	bool ret = true;	if (MEM_ERROR(ec)) {		switch (xec) {		case 0x0:			pr_cont("Data Array access error./n");			break;		case 0x1:			pr_cont("UC error during a linefill from L2/NB./n");			break;		case 0x2:		case 0x11:			pr_cont("STQ access error./n");			break;		case 0x3:			pr_cont("SCB access error./n");			break;		case 0x10:			pr_cont("Tag error./n");			break;		case 0x12:			pr_cont("LDQ access error./n");			break;		default:			ret = false;		}	} else if (BUS_ERROR(ec)) {		if (!xec)			pr_cont("during system linefill./n");		else			pr_cont(" Internal %s condition./n",				((xec == 1) ? "livelock" : "deadlock"));	} else		ret = false;	return ret;}
开发者ID:rrowicki,项目名称:Chrono_Kernel-1,代码行数:47,


示例12: amd_decode_ic_mce

static void amd_decode_ic_mce(struct mce *m){	u16 ec = EC(m->status);	u8 xec = XEC(m->status, xec_mask);	pr_emerg(HW_ERR "Instruction Cache Error: ");	if (TLB_ERROR(ec))		pr_cont("%s TLB %s./n", LL_MSG(ec),			(xec ? "multimatch" : "parity error"));	else if (BUS_ERROR(ec)) {		bool k8 = (boot_cpu_data.x86 == 0xf && (m->status & BIT_64(58)));		pr_cont("during %s./n", (k8 ? "system linefill" : "NB data read"));	} else if (fam_ops->ic_mce(ec, xec))		;	else		pr_emerg(HW_ERR "Corrupted IC MCE info?/n");}
开发者ID:openube,项目名称:android_kernel_sony_c2305,代码行数:19,


示例13: decode_mc2_mce

static void decode_mc2_mce(struct mce *m){	u16 ec = EC(m->status);	u8 xec = XEC(m->status, xec_mask);	pr_emerg(HW_ERR "MC2 Error");	if (xec == 0x1)		pr_cont(" in the write data buffers./n");	else if (xec == 0x3)		pr_cont(" in the victim data buffers./n");	else if (xec == 0x2 && MEM_ERROR(ec))		pr_cont(": %s error in the L2 cache tags./n", R4_MSG(ec));	else if (xec == 0x0) {		if (TLB_ERROR(ec))			pr_cont(": %s error in a Page Descriptor Cache or "				"Guest TLB./n", TT_MSG(ec));		else if (BUS_ERROR(ec))			pr_cont(": %s/ECC error in data read from NB: %s./n",				R4_MSG(ec), PP_MSG(ec));		else if (MEM_ERROR(ec)) {			u8 r4 = R4(ec);			if (r4 >= 0x7)				pr_cont(": %s error during data copyback./n",					R4_MSG(ec));			else if (r4 <= 0x1)				pr_cont(": %s parity/ECC error during data "					"access from L2./n", R4_MSG(ec));			else				goto wrong_mc2_mce;		} else			goto wrong_mc2_mce;	} else		goto wrong_mc2_mce;	return; wrong_mc2_mce:	pr_emerg(HW_ERR "Corrupted MC2 MCE info?/n");}
开发者ID:AdrianHuang,项目名称:linux-3.8.13,代码行数:41,


示例14: decode_f15_mc2_mce

static void decode_f15_mc2_mce(struct mce *m){	u16 ec = EC(m->status);	u8 xec = XEC(m->status, xec_mask);	pr_emerg(HW_ERR "MC2 Error: ");	if (TLB_ERROR(ec)) {		if (xec == 0x0)			pr_cont("Data parity TLB read error./n");		else if (xec == 0x1)			pr_cont("Poison data provided for TLB fill./n");		else			goto wrong_f15_mc2_mce;	} else if (BUS_ERROR(ec)) {		if (xec > 2)			goto wrong_f15_mc2_mce;		pr_cont("Error during attempted NB data read./n");	} else if (MEM_ERROR(ec)) {		switch (xec) {		case 0x4 ... 0xc:			pr_cont("%s./n", f15h_mc2_mce_desc[xec - 0x4]);			break;		case 0x10 ... 0x14:			pr_cont("%s./n", f15h_mc2_mce_desc[xec - 0x7]);			break;		default:			goto wrong_f15_mc2_mce;		}	}	return; wrong_f15_mc2_mce:	pr_emerg(HW_ERR "Corrupted MC2 MCE info?/n");}
开发者ID:AdrianHuang,项目名称:linux-3.8.13,代码行数:39,



注:本文中的BUS_ERROR函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ BUS_RegBitWrite函数代码示例
C++ BUS_ADD_CHILD函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。