summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-08 17:22:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-08 17:22:28 +0000
commit46ba602fe298f8c0d65e4c8be816f27c6e9b6012 (patch)
tree7aec43bde6c38c03b8b5ca9a4bb6b403beeb1965 /c
parent2007-09-07 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-46ba602fe298f8c0d65e4c8be816f27c6e9b6012.tar.bz2
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.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/arm/ChangeLog5
-rw-r--r--c/src/lib/libbsp/arm/shared/abort/abort.c6
-rw-r--r--c/src/lib/libbsp/arm/shared/abort/simple_abort.c6
3 files changed, 10 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/arm/ChangeLog b/c/src/lib/libbsp/arm/ChangeLog
index e0f8c12196..8a628d1370 100644
--- a/c/src/lib/libbsp/arm/ChangeLog
+++ b/c/src/lib/libbsp/arm/ChangeLog
@@ -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
diff --git a/c/src/lib/libbsp/arm/shared/abort/abort.c b/c/src/lib/libbsp/arm/shared/abort/abort.c
index 7222a58d9c..a7dca28094 100644
--- a/c/src/lib/libbsp/arm/shared/abort/abort.c
+++ b/c/src/lib/libbsp/arm/shared/abort/abort.c
@@ -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++]);
diff --git a/c/src/lib/libbsp/arm/shared/abort/simple_abort.c b/c/src/lib/libbsp/arm/shared/abort/simple_abort.c
index 1f6bc025f4..99aefa8ee9 100644
--- a/c/src/lib/libbsp/arm/shared/abort/simple_abort.c
+++ b/c/src/lib/libbsp/arm/shared/abort/simple_abort.c
@@ -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 */