More Makefile cleanups, otherwise mainly noticeable are the netfilter fix
[davej-history.git] / include / asm-mips64 / branch.h
blob1ac45c9dc45f471daf9dc6263d36b3375cccfb8e
1 /* $Id$
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Branch and jump emulation.
9 * Copyright (C) 1996, 1997, 1998, 1999 by Ralf Baechle
11 #include <asm/ptrace.h>
13 extern inline int delay_slot(struct pt_regs *regs)
15 return regs->cp0_cause & CAUSEF_BD;
18 extern int __compute_return_epc(struct pt_regs *regs);
20 extern inline int compute_return_epc(struct pt_regs *regs)
22 if (!delay_slot(regs)) {
23 regs->cp0_epc += 4;
24 return 0;
27 return __compute_return_epc(regs);