summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mcf5235/startup/copyvectors.c
blob: 2c54c31a4401fd96927bb6572c19072b533c75a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Move the copy out of the Init5235 file because gcc is broken.
 */

#include <stdint.h>

void CopyVectors(const uint32_t* old, uint32_t* new);

void CopyVectors(const uint32_t* old, uint32_t* new)
{
    int v = 0;
    while (v < 256)
    {
        *new = *old;
        ++v;
        ++new;
        ++old;
    }
}