/**************************************************************************/
/* */
/* Copyright (c) 1996-2000 by Express Logic Inc. */
/* */
/* This software is copyrighted by and is the sole property of Express */
/* Logic, Inc. All rights, title, ownership, or other interests */
/* in the software remain the property of Express Logic, Inc. This */
/* software may only be used in accordance with the corresponding */
/* license agreement. Any unauthorized use, duplication, transmission, */
/* distribution, or disclosure of this software is expressly forbidden. */
/* */
/* This Copyright notice may not be removed or modified without prior */
/* written consent of Express Logic, Inc. */
/* */
/* Express Logic, Inc. reserves the right to modify this software */
/* without notice. */
/* */
/* Express Logic, Inc. */
/* 11440 West Bernardo Court info@expresslogic.com */
/* Suite 366 http://www.expresslogic.com */
/* San Diego, CA 92127 */
/* */
/**************************************************************************/
/**************************************************************************/
/**************************************************************************/
/** */
/** ThreadX Component */
/** */
/** ThreadX/GHS Event Log (EL) */
/** */
/**************************************************************************/
/**************************************************************************/
#define TX_SOURCE_CODE
#define TX_EL_SOURCE_CODE
/* Include necessary system files. */
#include "tx_api.h"
#include "tx_el.h"
#include "string.h"
/* Define global variables used to manage the event pool. */
UCHAR *_tx_el_tni_start;
UCHAR **_tx_el_current_event;
UCHAR *_tx_el_event_area_start;
UCHAR *_tx_el_event_area_end;
UINT _tx_el_maximum_events;
ULONG _tx_el_total_events;
UINT _tx_el_event_filter;
ULONG _tx_el_fake_time_stamp = 0;
extern char __ghsbegin_events[];
extern char __ghsend_events[];
extern TX_THREAD *_tx_thread_current_ptr;
UINT _tx_thread_interrupt_control(UINT new_posture);
/**************************************************************************/
/* */
/* FUNCTION RELEASE */
/* */
/* _tx_el_initialize 68332/Green Hills */
/* 3.0a */
/* AUTHOR */
/* */
/* William E. Lamie, Express Logic, Inc. */
/* */
/* DESCRIPTION */
/* */
/* This function creates the Event Log (in the format dictated by the */
/* GHS Event Analyzer) and sets up various information for subsequent */
/* operation. The start and end of the Event Log is determined by the */
/* .eventlog section in the linker control file. */
/* */
/* INPUT */
/* */
/* None */
/* */
/* OUTPUT */
/* */
/* None */
/* */
/* CALLS */
/* */
/* None */
/* */
/* CALLED BY */
/* */
/* Application Code */
/* */
/* RELEASE HISTORY */
/* */
/* DATE NAME DESCRIPTION */
/* */
/* 12-02-1999 William E. Lamie Initial Version 3.0a */
/* */
/**************************************************************************/
VOID _tx_el_initialize(VOID)
{
UCHAR *work_ptr;
UCHAR *read_ptr;
ULONG event_log_size;
UCHAR *end_ptr;
UINT i;
/* Clear total event counter. */
_tx_el_total_events = 0;
/* Clear event filter. */
_tx_el_event_filter = 0;
/* First, pickup the starting and ending address of the Event Log memory. */
work_ptr = (unsigned char *) __ghsbegin_events;
end_ptr = (unsigned char *) __ghsend_events;
/* Calculate the event log size. */
event_log_size = end_ptr - work_ptr;
/* Subtract off the number of bytes in the header and the TNI area. */
event_log_size = event_log_size - (TX_EL_HEADER_SIZE +
(TX_EL_TNI_ENTRY_SIZE * TX_EL_TNIS));
/* Make sure the event log is evenly divisible by the event size. */
event_log_size = (event_log_size/TX_EL_EVENT_SIZE) * TX_EL_EVENT_SIZE;
/* Build the Event Log header. */
/* Setup the Event Log Version ID and TNIS. */
*((unsigned short *) work_ptr) = (unsigned short) TX_EL_VERSION_ID;
work_ptr = work_ptr + sizeof(unsigned short);
*((unsigned short *) work_ptr) = (unsigned short) TX_EL_TNIS;
work_ptr = work_ptr + sizeof(unsigned short);
/* Setup the EVPS (event pool size) field. */
*((ULONG *) work_ptr) = event_log_size;
work_ptr = work_ptr + sizeof(ULONG);
/* Remember the maximum number of events. */
_tx_el_maximum_events = event_log_size/TX_EL_EVENT_SIZE;
/* Setup max_events field. */
*((ULONG *) work_ptr) = _tx_el_maximum_events;
work_ptr = work_p
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
threadx 在s5pv210 上移植 (283个子文件)
libarm.a 46KB
zmOS.bin 64KB
tx_el.c 52KB
threadX_cpu.c 28KB
tx_efs.c 23KB
tx_qr.c 21KB
tx_qs.c 20KB
tx_tsus.c 19KB
vsprintf.c 18KB
tx_tte.c 17KB
tx_tprch.c 15KB
tx_tc.c 13KB
tx_byts.c 13KB
tx_ike.c 13KB
tx_bytr.c 13KB
tx_efg.c 12KB
tx_tr.c 12KB
tx_byta.c 12KB
main.c 12KB
tx_ba.c 11KB
tx_bpc.c 11KB
tx_tda.c 11KB
string.c 10KB
tx_br.c 10KB
tx_qc.c 10KB
tx_sg.c 10KB
tx_qf.c 10KB
tx_qcle.c 10KB
tx_bytcl.c 10KB
tx_bytc.c 10KB
tx_efcle.c 10KB
tx_scle.c 10KB
tx_bpcle.c 10KB
tx_bytd.c 10KB
tx_ta.c 10KB
tx_efd.c 10KB
tx_bpd.c 10KB
tx_sp.c 10KB
tx_sd.c 9KB
tx_tpch.c 9KB
tx_qd.c 9KB
txe_tc.c 9KB
tx_tt.c 9KB
tx_ti.c 9KB
tx_timcr.c 9KB
tx_trel.c 9KB
tx_td.c 9KB
txe_efg.c 9KB
tx_tdel.c 9KB
tx_ihl.c 9KB
txe_tmcr.c 8KB
tx_tts.c 8KB
tx_sc.c 8KB
tx_efc.c 8KB
txe_bpc.c 8KB
txe_qc.c 8KB
tx_timi.c 8KB
tx_ghs.c 8KB
txe_byta.c 8KB
txe_bytc.c 8KB
tx_tra.c 8KB
tx_tsle.c 8KB
tx_timd.c 8KB
txe_tmch.c 8KB
txe_qr.c 8KB
txe_ba.c 8KB
tx_tsa.c 8KB
tx_tto.c 7KB
txe_trpc.c 7KB
txe_tpch.c 7KB
txe_sc.c 7KB
txe_qs.c 7KB
txe_efc.c 7KB
txe_ttsc.c 7KB
tx_ttsc.c 7KB
txe_efs.c 7KB
txe_sg.c 7KB
txe_efd.c 7KB
txe_br.c 7KB
txe_sd.c 7KB
tx_tse.c 7KB
txe_bpd.c 7KB
txe_bytd.c 7KB
txe_tt.c 7KB
txe_bytr.c 7KB
txe_timd.c 7KB
tx_timch.c 7KB
txe_tsa.c 7KB
txe_qd.c 7KB
txe_qf.c 7KB
txe_taa.c 7KB
txe_tdel.c 7KB
tx_tide.c 7KB
txe_tda.c 7KB
txe_sp.c 7KB
txe_tra.c 7KB
tx_taa.c 6KB
tx_timeg.c 6KB
tx_times.c 6KB
tx_efi.c 6KB
共 283 条
- 1
- 2
- 3
资源评论
liujia2100
- 粉丝: 444
- 资源: 31
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功