2
* functions for handling OS log buffer
4
* Copyright (c) 2009 Analog Devices Inc.
6
* Licensed under the 2-clause BSD.
11
#define OS_LOG_MAGIC 0xDEADBEEF
12
#define OS_LOG_MAGIC_ADDR ((unsigned long *)0x4f0)
13
#define OS_LOG_PTR_ADDR ((char **)0x4f4)
15
bool bfin_os_log_check(void)
17
if (*OS_LOG_MAGIC_ADDR != OS_LOG_MAGIC)
19
*OS_LOG_MAGIC_ADDR = 0;
23
void bfin_os_log_dump(void)
25
char *log = *OS_LOG_PTR_ADDR;
28
log += strlen(log) + 1;