diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2018-07-23 19:49:54 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2018-07-23 19:49:54 +0000 |
commit | 03154ade2a4c1d9ce37f122e1cacaf29260841a1 (patch) | |
tree | 9f356dce0ec5cff6ea295310ccc7691cc9e047f2 /sys/vm/vm_unix.c | |
parent | f84d8f0ce51cab59302d17046f350e23e4e3673c (diff) | |
download | src-03154ade2a4c1d9ce37f122e1cacaf29260841a1.tar.gz src-03154ade2a4c1d9ce37f122e1cacaf29260841a1.zip |
Use __riscv to determine building for RISC-V
Reviewed by: br
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D16398
Notes
Notes:
svn path=/head/; revision=336650
Diffstat (limited to 'sys/vm/vm_unix.c')
-rw-r--r-- | sys/vm/vm_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index 8a3203c8996f..10d6d85c2158 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -69,7 +69,7 @@ struct break_args { int sys_break(struct thread *td, struct break_args *uap) { -#if !defined(__aarch64__) && !defined(__riscv__) +#if !defined(__aarch64__) && !defined(__riscv) uintptr_t addr; int error; @@ -78,9 +78,9 @@ sys_break(struct thread *td, struct break_args *uap) if (error == 0) td->td_retval[0] = addr; return (error); -#else /* defined(__aarch64__) || defined(__riscv__) */ +#else /* defined(__aarch64__) || defined(__riscv) */ return (ENOSYS); -#endif /* defined(__aarch64__) || defined(__riscv__) */ +#endif /* defined(__aarch64__) || defined(__riscv) */ } int |