kernels/linux-2.4.0/arch/ia64/kernel/mca.c
/* 
 * ia64_log_get
 * 	Get the current MCA log from SAL and copy it into the OS log buffer.
 * Inputs 	:	info_type 	(SAL_INFO_TYPE_{MCA,INIT,CMC})
 *			sub_info_type	(SAL_SUB_INFO_TYPE_{PROCESSOR,PLATFORM})
 * Outputs	: 	None
 *
 */
ia64_log_get
Get the current MCA log from SAL and copy it into the OS log buffer.
ia64_log_get Get the current MCA log from SAL and copy it into the OS log buffer .
void
ia64_log_get(int sal_info_type, int sal_sub_info_type, prfunc_t prfunc)
{
	sal_log_header_t	*log_buffer;
	int			s,total_len=0;
	IA64_LOG_LOCK(sal_info_type, sal_sub_info_type);
	log_buffer = IA64_LOG_NEXT_BUFFER(sal_info_type, sal_sub_info_type);
	if (!(total_len=ia64_sal_get_state_info(sal_info_type, sal_sub_info_type ,(u64 *)log_buffer)))
		prfunc("ia64_mca_log_get : Getting processor log failed\n");
	IA64_MCA_DEBUG("ia64_log_get: retrieved %d bytes of error information\n",total_len);
	IA64_LOG_INDEX_INC(sal_info_type, sal_sub_info_type);
	IA64_LOG_UNLOCK(sal_info_type, sal_sub_info_type);
}
void ia64_log_get ( int sal_info_type , int sal_sub_info_type , prfunc_t prfunc ) { sal_log_header_t * log_buffer ; int s , total_len = 0 ; IA64_LOG_LOCK ( sal_info_type , sal_sub_info_type ) ; log_buffer = IA64_LOG_NEXT_BUFFER ( sal_info_type , sal_sub_info_type ) ; if ( ! ( total_len = ia64_sal_get_state_info ( sal_info_type , sal_sub_info_type , ( u64 * ) log_buffer ) ) ) prfunc ( " \n " ) ; IA64_MCA_DEBUG ( " \n " , total_len ) ; IA64_LOG_INDEX_INC ( sal_info_type , sal_sub_info_type ) ; IA64_LOG_UNLOCK ( sal_info_type , sal_sub_info_type ) ; }
ia64_log_get
      Get the current MCA log from SAL and copy it into the OS log buffer.
ia64_log_get Get the current MCA log from SAL and copy it into the OS log buffer .
/* Get the process state information */