1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Use __riscv to determine building for RISC-V

Reviewed by:	br
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D16398
This commit is contained in:
Li-Wen Hsu 2018-07-23 19:49:54 +00:00
parent f84d8f0ce5
commit 03154ade2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336650

View File

@ -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