|
@@ -1,10 +1,13 @@
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
/*
|
|
|
- * Copyright (C) 2017 SiFive
|
|
|
+ * Copyright (C) 2017-2018 SiFive
|
|
|
*/
|
|
|
|
|
|
-#ifndef _ASM__UAPI__SYSCALLS_H
|
|
|
-#define _ASM__UAPI__SYSCALLS_H
|
|
|
+/*
|
|
|
+ * There is explicitly no include guard here because this file is expected to
|
|
|
+ * be included multiple times in order to define the syscall macros via
|
|
|
+ * __SYSCALL.
|
|
|
+ */
|
|
|
|
|
|
/*
|
|
|
* Allows the instruction cache to be flushed from userspace. Despite RISC-V
|
|
@@ -20,7 +23,7 @@
|
|
|
* caller. We don't currently do anything with the address range, that's just
|
|
|
* in there for forwards compatibility.
|
|
|
*/
|
|
|
+#ifndef __NR_riscv_flush_icache
|
|
|
#define __NR_riscv_flush_icache (__NR_arch_specific_syscall + 15)
|
|
|
-__SYSCALL(__NR_riscv_flush_icache, sys_riscv_flush_icache)
|
|
|
-
|
|
|
#endif
|
|
|
+__SYSCALL(__NR_riscv_flush_icache, sys_riscv_flush_icache)
|