traps.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) | traps.c (e64f737ad70fee4a3c57d147fc511e5d5014b5dd) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2012 Regents of the University of California 4 */ 5 6#include <linux/cpu.h> 7#include <linux/kernel.h> 8#include <linux/init.h> --- 72 unchanged lines hidden (view full) --- 81 if (user_mode(regs)) { 82 do_trap(regs, signo, code, addr); 83 } else { 84 if (!fixup_exception(regs)) 85 die(regs, str); 86 } 87} 88 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2012 Regents of the University of California 4 */ 5 6#include <linux/cpu.h> 7#include <linux/kernel.h> 8#include <linux/init.h> --- 72 unchanged lines hidden (view full) --- 81 if (user_mode(regs)) { 82 do_trap(regs, signo, code, addr); 83 } else { 84 if (!fixup_exception(regs)) 85 die(regs, str); 86 } 87} 88 |
89#if defined (CONFIG_XIP_KERNEL) && defined (CONFIG_RISCV_ERRATA_ALTERNATIVE) | 89#if defined(CONFIG_XIP_KERNEL) && defined(CONFIG_RISCV_ALTERNATIVE) |
90#define __trap_section __section(".xip.traps") 91#else 92#define __trap_section 93#endif 94#define DO_ERROR_INFO(name, signo, code, str) \ 95asmlinkage __visible __trap_section void name(struct pt_regs *regs) \ 96{ \ 97 do_trap_error(regs, signo, code, regs->epc, "Oops - " str); \ --- 138 unchanged lines hidden --- | 90#define __trap_section __section(".xip.traps") 91#else 92#define __trap_section 93#endif 94#define DO_ERROR_INFO(name, signo, code, str) \ 95asmlinkage __visible __trap_section void name(struct pt_regs *regs) \ 96{ \ 97 do_trap_error(regs, signo, code, regs->epc, "Oops - " str); \ --- 138 unchanged lines hidden --- |