kernels/linux-2.4.0/arch/ia64/kernel/mca.c
/*
 * ia64_log_processor_info_print
 *	Display the processor-specific information logged by PAL as a part
 *	of MCA or INIT or CMC.
 * Inputs 	:	lh	(Pointer of the sal log header which specifies the format
 *				 of SAL state info as specified by the SAL spec).
 * Outputs	: 	None
 */
ia64_log_processor_info_print
Display the processor-specific information logged by PAL as a part
of MCA or INIT or CMC.
Inputs       :       lh      (Pointer of the sal log header which specifies the format
of SAL state info as specified by the SAL spec).
Outputs      :       None
ia64_log_processor_info_print Display the processor - specific information logged by PAL as a part of MCA or INIT or CMC . Inputs : lh ( Pointer of the sal log header which specifies the format of SAL state info as specified by the SAL spec ) . Outputs : None
void
ia64_log_processor_info_print(sal_log_header_t *lh, prfunc_t prfunc)
{
	sal_log_processor_info_t	*slpi;
	int				i;
	if (!lh)
		return;
	if (lh->slh_log_type != SAL_SUB_INFO_TYPE_PROCESSOR)
		return;
	slpi = (sal_log_processor_info_t *)((char *)lh+sizeof(sal_log_header_t));  
	if (!slpi) {
		prfunc("No Processor Error Log found\n");
		return;
	}
	if (slpi->slpi_valid.slpi_br) 
		ia64_log_processor_regs_print(slpi->slpi_br, 8, "Branch", "br", prfunc);
	if (slpi->slpi_valid.slpi_cr) 
		ia64_log_processor_regs_print(slpi->slpi_cr, 128, "Control", "cr", prfunc);
	if (slpi->slpi_valid.slpi_ar) 
		ia64_log_processor_regs_print(slpi->slpi_br, 128, "Application", "ar", prfunc);
	if (slpi->slpi_valid.slpi_rr) 
		ia64_log_processor_regs_print(slpi->slpi_rr, 8, "Region", "rr", prfunc);
	if (slpi->slpi_valid.slpi_fr) 
		ia64_log_processor_regs_print(slpi->slpi_fr, 128, "Floating-point", "fr", 
					      prfunc);
	for (i = 0 ; i < MAX_CACHE_ERRORS; i++)
		ia64_log_cache_check_info_print(i, 
					slpi->slpi_cache_check_info[i].slpi_cache_check,
					slpi->slpi_cache_check_info[i].slpi_target_address,
						prfunc);
	for (i = 0 ; i < MAX_TLB_ERRORS; i++)
		ia64_log_tlb_check_info_print(i,slpi->slpi_tlb_check_info[i], prfunc);
	for (i = 0 ; i < MAX_BUS_ERRORS; i++)
		ia64_log_bus_check_info_print(i, 
					slpi->slpi_bus_check_info[i].slpi_bus_check,
					slpi->slpi_bus_check_info[i].slpi_requestor_addr,
					slpi->slpi_bus_check_info[i].slpi_responder_addr,
					slpi->slpi_bus_check_info[i].slpi_target_addr,
					      prfunc);
}
void ia64_log_processor_info_print ( sal_log_header_t * lh , prfunc_t prfunc ) { sal_log_processor_info_t * slpi ; int i ; if ( ! lh ) return ; if ( lh -> slh_log_type != SAL_SUB_INFO_TYPE_PROCESSOR ) return ; slpi = ( sal_log_processor_info_t * ) ( ( char * ) lh + sizeof ( sal_log_header_t ) ) ; if ( ! slpi ) { prfunc ( " \n " ) ; return ; } if ( slpi -> slpi_valid . slpi_br ) ia64_log_processor_regs_print ( slpi -> slpi_br , 8 , " " , " " , prfunc ) ; if ( slpi -> slpi_valid . slpi_cr ) ia64_log_processor_regs_print ( slpi -> slpi_cr , 128 , " " , " " , prfunc ) ; if ( slpi -> slpi_valid . slpi_ar ) ia64_log_processor_regs_print ( slpi -> slpi_br , 128 , " " , " " , prfunc ) ; if ( slpi -> slpi_valid . slpi_rr ) ia64_log_processor_regs_print ( slpi -> slpi_rr , 8 , " " , " " , prfunc ) ; if ( slpi -> slpi_valid . slpi_fr ) ia64_log_processor_regs_print ( slpi -> slpi_fr , 128 , " " , " " , prfunc ) ; for ( i = 0 ; i < MAX_CACHE_ERRORS ; i ++ ) ia64_log_cache_check_info_print ( i , slpi -> slpi_cache_check_info [ i ] . slpi_cache_check , slpi -> slpi_cache_check_info [ i ] . slpi_target_address , prfunc ) ; for ( i = 0 ; i < MAX_TLB_ERRORS ; i ++ ) ia64_log_tlb_check_info_print ( i , slpi -> slpi_tlb_check_info [ i ] , prfunc ) ; for ( i = 0 ; i < MAX_BUS_ERRORS ; i ++ ) ia64_log_bus_check_info_print ( i , slpi -> slpi_bus_check_info [ i ] . slpi_bus_check , slpi -> slpi_bus_check_info [ i ] . slpi_requestor_addr , slpi -> slpi_bus_check_info [ i ] . slpi_responder_addr , slpi -> slpi_bus_check_info [ i ] . slpi_target_addr , prfunc ) ; }
ia64_log_processor_info_print
      Display the processor-specific information logged by PAL as a part
      of MCA or INIT or CMC.
ia64_log_processor_info_print Display the processor - specific information logged by PAL as a part of MCA or INIT or CMC .
/* point to proc info */ /* Print branch register contents if valid */ /* Print control register contents if valid */ /* Print application register contents if valid */ /* Print region register contents if valid */ /* Print floating-point register contents if valid */ /* Print the cache check information if any*/ /* Print the tlb check information if any*/ /* Print the bus check information if any*/