Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/riscv/include Don't expose vaddr_t or register_t to...



details:   https://anonhg.NetBSD.org/src/rev/11a621527b07
branches:  trunk
changeset: 374631:11a621527b07
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon May 08 20:51:53 2023 +0000

description:
Don't expose vaddr_t or register_t to userland.  The gdb configure script
needs this so it can detect struct lwp correctly.

diffstat:

 sys/arch/riscv/include/proc.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 502dabbc436f -r 11a621527b07 sys/arch/riscv/include/proc.h
--- a/sys/arch/riscv/include/proc.h     Mon May 08 19:23:45 2023 +0000
+++ b/sys/arch/riscv/include/proc.h     Mon May 08 20:51:53 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.4 2023/05/07 12:41:48 skrll Exp $   */
+/*     $NetBSD: proc.h,v 1.5 2023/05/08 20:51:53 skrll Exp $   */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -46,8 +46,8 @@ struct mdlwp {
        struct trapframe *md_utf;       /* trapframe from userspace */
        struct trapframe *md_ktf;       /* trapframe from userspace */
        struct faultbuf *md_onfault;    /* registers to store on fault */
-       register_t md_usp;              /* for locore.S */
-       vaddr_t md_ss_addr;             /* single step address for ptrace */
+       unsigned long md_usp;           /* for locore.S */
+       unsigned long md_ss_addr;       /* single step address for ptrace */
        int     md_ss_instr;            /* single step instruction for ptrace */
        volatile int md_astpending;     /* AST pending on return to userland */
 #if 0



Home | Main Index | Thread Index | Old Index