2007-09-08 Joel Sherrill <joel.sherrill@OARcorp.com>

* shared/abort/abort.c, shared/abort/simple_abort.c: Remove incorrect
	and unneccessary prototype of printk.
This commit is contained in:
Joel Sherrill
2007-09-08 17:22:28 +00:00
parent fb61b0fea5
commit 46ba602fe2
3 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
2007-09-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/abort/abort.c, shared/abort/simple_abort.c: Remove incorrect
and unneccessary prototype of printk.
2007-06-13 Ray Xu <rayx@gmail.com>
* shared/abort/simple_abort.c: Shrink the memory requirements. Joel

View File

@@ -20,6 +20,7 @@
#include <rtems/system.h>
#include <rtems.h>
#include <rtems/bspIo.h>
#define INSN_MASK 0xc5
@@ -43,8 +44,6 @@
#define SET_REG(r, ctx, v) (((uint32_t *)ctx)[r] = v)
#define GET_OFFSET(insn) (insn & 0xfff)
extern void printk(char *fmt, ...);
uint32_t g_data_abort_cnt = 0;
/*this is a big overhead for MCU only got 16K RAM*/
uint32_t g_data_abort_insn_list[1024];
@@ -83,7 +82,8 @@ void _print_full_context(uint32_t spsr)
: [spsr] "r" (spsr)
: "cc");
printk("Previous sp=0x%08x lr=0x%08x and actual cpsr=%08x\n", prev_sp, prev_lr, cpsr);
printk("Previous sp=0x%08x lr=0x%08x and actual cpsr=%08x\n",
prev_sp, prev_lr, cpsr);
for(i=0;i<48;){
printk(" 0x%08x",((uint32_t*)prev_sp)[i++]);

View File

@@ -17,8 +17,9 @@
* http://www.rtems.com/license/LICENSE.
*
*/
#include <rtems/system.h>
#include <rtems.h>
#include <rtems/bspIo.h>
#define INSN_MASK 0xc5
@@ -42,9 +43,6 @@
#define SET_REG(r, ctx, v) (((uint32_t *)ctx)[r] = v)
#define GET_OFFSET(insn) (insn & 0xfff)
extern void printk(char *fmt, ...);
char *_print_full_context_mode2txt[0x10]={
[0x0]="user", /* User */
[0x1]="fiq", /* FIQ - Fast Interrupt Request */