From 70b48b8440a98d9893c1c4aec97c5ba3275022d5 Mon Sep 17 00:00:00 2001 From: jca Date: Fri, 3 Sep 2021 14:09:26 +0000 Subject: [PATCH] Enable ptrace(2) support for PT_GETFPREGS/PT_SETFPREGS The code is already there, it was unreachable because of this #if 0. ok kettenis@ --- sys/arch/riscv64/include/ptrace.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/arch/riscv64/include/ptrace.h b/sys/arch/riscv64/include/ptrace.h index 189c9efe4b7..5b0aeb455b4 100644 --- a/sys/arch/riscv64/include/ptrace.h +++ b/sys/arch/riscv64/include/ptrace.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ptrace.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */ +/* $OpenBSD: ptrace.h,v 1.3 2021/09/03 14:09:26 jca Exp $ */ /* * Copyright (c) 2014 Patrick Wildt @@ -19,7 +19,5 @@ #define PT_STEP (PT_FIRSTMACH + 0) #define PT_GETREGS (PT_FIRSTMACH + 1) #define PT_SETREGS (PT_FIRSTMACH + 2) -#if 0 // XXX ptrace fpreg support #define PT_GETFPREGS (PT_FIRSTMACH + 3) #define PT_SETFPREGS (PT_FIRSTMACH + 4) -#endif -- 2.20.1