UKSS_ICE/log_to_mem.c

35 lines
934 B
C
Raw Normal View History

/****************************************************************/
/* TMS320C32 */
/* ====== BIOS, <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> ====== */
/* <09><><EFBFBD><EFBFBD> <20><><EFBFBD> (<28>) 1998-2001<30>. */
/****************************************************************/
/* log_to_mem.c
****************************************************************
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>y<EFBFBD><EFBFBD> *
****************************************************************/
#include "log_to_mem.h"
int no_write = 1,
never_write = 0; // <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD>)
#pragma DATA_SECTION(logs_block,".logg");
unsigned int logs_block[0xF000];
LOG Log;
unsigned int flog=0;
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
void clear_mem()
{
unsigned long i;
Log.Start = LOG_PAGE_START;
Log.Finis = LOG_PAGE_START + LOG_PAGE_LEN;
Log.Adres = Log.Start;
Log.Circl = 0;
for (i=Log.Start; i<Log.Finis; i++)
*(volatile int *)i = 0;
}