diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-05-17 15:28:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-05-17 15:28:25 +0000 |
commit | 9bfb9d2780ef09c00cb121a02e3f8a22a0aa3535 (patch) | |
tree | ad891554b16684b73580ed72f1246fa0603ba945 /regress/sys | |
parent | 0da9349138ed2433cc0e522c23ef8acf94874d58 (diff) |
add riscv support
Diffstat (limited to 'regress/sys')
-rw-r--r-- | regress/sys/ptrace/ptrace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/sys/ptrace/ptrace.c b/regress/sys/ptrace/ptrace.c index 5ab07626b40..b055de8e57d 100644 --- a/regress/sys/ptrace/ptrace.c +++ b/regress/sys/ptrace/ptrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ptrace.c,v 1.9 2020/07/06 07:31:51 kettenis Exp $ */ +/* $OpenBSD: ptrace.c,v 1.10 2021/05/17 15:28:24 deraadt Exp $ */ /* * Copyright (c) 2004, Mark Kettenis. * Copyright (c) 2004, Miodrag Vallat. @@ -77,6 +77,8 @@ main(void) regs.r_pc |= 0x03; #elif defined(__powerpc__) regs.pc |= 0x03; +#elif defined(__riscv) + regs.r_sepc |= 0x01; #elif defined(__sh__) regs.r_spc |= 0x01; #elif defined( __sparcv9__) |