drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / arch / loongarch / include / asm / branch.h
blob9a133e4c068e26c98fce575e67a1c174b2e0be03
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5 #ifndef _ASM_BRANCH_H
6 #define _ASM_BRANCH_H
8 #include <asm/ptrace.h>
10 static inline unsigned long exception_era(struct pt_regs *regs)
12 return regs->csr_era;
15 static inline void compute_return_era(struct pt_regs *regs)
17 regs->csr_era += 4;
20 #endif /* _ASM_BRANCH_H */