From 40fe4b8627af067bd45aebc2ea5a24459199d603 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 6 Dec 2012 17:40:08 +0100 Subject: bsps: Use --- c/src/lib/libbsp/m68k/mcf5329/startup/init5329.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'c/src/lib/libbsp/m68k/mcf5329') diff --git a/c/src/lib/libbsp/m68k/mcf5329/startup/init5329.c b/c/src/lib/libbsp/m68k/mcf5329/startup/init5329.c index 718b433ecf..f85bd511a4 100644 --- a/c/src/lib/libbsp/m68k/mcf5329/startup/init5329.c +++ b/c/src/lib/libbsp/m68k/mcf5329/startup/init5329.c @@ -4,17 +4,15 @@ * functions can be called from here. */ -#include +#include extern void _wr_vbr(uint32_t); extern void init_main(void); -extern int boot_card(const char *); /* * From linkcmds */ -extern uint8_t _VBR[]; extern uint8_t _INTERRUPT_VECTOR[]; extern uint8_t _clear_start[]; @@ -39,15 +37,15 @@ void Init5329(void) * Copy the vector table to RAM */ - if (_VBR != _INTERRUPT_VECTOR) { + if (&_VBR != _INTERRUPT_VECTOR) { sp = (uint32_t *) _INTERRUPT_VECTOR; - dp = (uint32_t *) _VBR; + dp = (uint32_t *) &_VBR; for (i = 0; i < 256; i++) { *dp++ = *sp++; } } - _wr_vbr((uint32_t) _VBR); + _wr_vbr((uint32_t) &_VBR); /* * Move initialized data from ROM to RAM. -- cgit v1.2.3