Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6708088 authored by Roman Zippel's avatar Roman Zippel Committed by Geert Uytterhoeven
Browse files

m68k: Use base_trap_init() to initialize vectors



So basic initialization is all in one place.

Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent dcdf3a29
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -48,10 +48,7 @@ asmlinkage void nmihandler(void);
asmlinkage void fpu_emu(void);
#endif

e_vector vectors[256] = {
	[VEC_BUSERR]	= buserr,
	[VEC_SYS]	= system_call,
};
e_vector vectors[256];

/* nmi handler for the Amiga */
asm(".text\n"
@@ -79,6 +76,9 @@ void __init base_trap_init(void)

		vectors[VEC_UNIMPII] = unimp_vec;
	}

	vectors[VEC_BUSERR] = buserr;
	vectors[VEC_SYS] = system_call;
}

void __init trap_init (void)