/* * vectors.c * * Copyright (C) 1993, 1994 by Hamish Macdonald * * 68040 fixes by Michael Rausch * 68040 fixes by Martin Apel * 68040 fixes and writeback by Richard Zidlicky * 68060 fixes by Roman Hodek * 68060 fixes by Jesper Skov * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details. */ /* * Sets up all exception vectors */ #include <linux/sched.h> #include <linux/kernel.h> #include <linux/linkage.h> #include <linux/init.h> #include <linux/kallsyms.h> #include <asm/setup.h> #include <asm/fpu.h> #include <asm/traps.h> /* assembler routines */ asmlinkage void system_call(void); asmlinkage void buserr(void); asmlinkage void trap(void); asmlinkage void nmihandler(void); #ifdef CONFIG_M68KFPU_EMU asmlinkage void fpu_emu(void); #endif e_vector vectors[256]; /* nmi handler for the Amiga */ asm(".text\n" __ALIGN_STR "\n" "nmihandler: rte"); /* * this must be called very early as the kernel might * use some instruction that are emulated on the 060 * and so we're prepared for early probe attempts (e.g. nf_init). */
void __init base_trap_init(void) { if (MACH_IS_SUN3X) { extern e_vector *sun3x_prom_vbr; __asm__ volatile ("movec %%vbr, %0" : "=r" (sun3x_prom_vbr)); } /* setup the exception vector table */ __asm__ volatile ("movec %0,%%vbr" : : "r" ((void*)vectors)); if (CPU_IS_060) { /* set up ISP entry points */ asmlinkage void unimp_vec(void) asm ("_060_isp_unimp"); vectors[VEC_UNIMPII] = unimp_vec; } vectors[VEC_BUSERR] = buserr; vectors[VEC_ILLEGAL] = trap; vectors[VEC_SYS] = system_call; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Greg Ungerer | 72 | 100.00% | 1 | 100.00% |
Total | 72 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Greg Ungerer | 453 | 100.00% | 1 | 100.00% |
Total | 453 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Greg Ungerer | 601 | 100.00% | 1 | 100.00% |
Total | 601 | 100.00% | 1 | 100.00% |