Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/include don't expose vaddr_t to userland.
details: https://anonhg.NetBSD.org/src/rev/a5353a48962e
branches: trunk
changeset: 978865:a5353a48962e
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 06 03:46:23 2020 +0000
description:
don't expose vaddr_t to userland.
diffstat:
sys/arch/mips/include/proc.h | 6 +++---
sys/arch/mips/include/types.h | 7 ++++++-
2 files changed, 9 insertions(+), 4 deletions(-)
diffs (48 lines):
diff -r 8929c544d65d -r a5353a48962e sys/arch/mips/include/proc.h
--- a/sys/arch/mips/include/proc.h Sun Dec 06 03:29:03 2020 +0000
+++ b/sys/arch/mips/include/proc.h Sun Dec 06 03:46:23 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: proc.h,v 1.32 2020/09/04 08:17:53 mrg Exp $ */
+/* $NetBSD: proc.h,v 1.33 2020/12/06 03:46:23 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -49,7 +49,7 @@
struct mdlwp {
struct trapframe *md_utf; /* trapframe from userspace */
- vaddr_t md_ss_addr; /* single step address for ptrace */
+ __vaddr_t 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 */
int md_upte[UPAGES_MAX]; /* ptes for mapping u page */
@@ -57,7 +57,7 @@
struct mdproc {
/* syscall entry for this process */
- void (*md_syscall)(struct lwp *, u_int, u_int, vaddr_t);
+ void (*md_syscall)(struct lwp *, u_int, u_int, __vaddr_t);
int md_abi; /* which ABI is this process using? */
};
diff -r 8929c544d65d -r a5353a48962e sys/arch/mips/include/types.h
--- a/sys/arch/mips/include/types.h Sun Dec 06 03:29:03 2020 +0000
+++ b/sys/arch/mips/include/types.h Sun Dec 06 03:46:23 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.72 2020/08/17 03:19:35 mrg Exp $ */
+/* $NetBSD: types.h,v 1.73 2020/12/06 03:46:23 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -64,6 +64,11 @@
* the rest of the operating system as possible.
*/
+#ifdef _LP64
+typedef __uint64_t __vaddr_t;
+#else
+typedef __uint32_t __vaddr_t;
+#endif
#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
#if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
Home |
Main Index |
Thread Index |
Old Index