| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * CPU reset routines |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2015 Huawei Futurewei Technologies. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #ifndef _ARM64_CPU_RESET_H |
|---|
| .. | .. |
|---|
| 16 | 13 | void __cpu_soft_restart(unsigned long el2_switch, unsigned long entry, |
|---|
| 17 | 14 | unsigned long arg0, unsigned long arg1, unsigned long arg2); |
|---|
| 18 | 15 | |
|---|
| 19 | | -static inline void __noreturn cpu_soft_restart(unsigned long entry, |
|---|
| 20 | | - unsigned long arg0, |
|---|
| 21 | | - unsigned long arg1, |
|---|
| 22 | | - unsigned long arg2) |
|---|
| 16 | +static inline void __noreturn __nocfi cpu_soft_restart(unsigned long entry, |
|---|
| 17 | + unsigned long arg0, |
|---|
| 18 | + unsigned long arg1, |
|---|
| 19 | + unsigned long arg2) |
|---|
| 23 | 20 | { |
|---|
| 24 | 21 | typeof(__cpu_soft_restart) *restart; |
|---|
| 25 | 22 | |
|---|