Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add an e_usertrap function pointer to struct emul.



details:   https://anonhg.NetBSD.org/src/rev/9b50dde9b615
branches:  trunk
changeset: 581015:9b50dde9b615
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Fri May 20 12:44:11 2005 +0000

description:
Add an e_usertrap function pointer to struct emul.

diffstat:

 sys/sys/proc.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r a58e6e0a2261 -r 9b50dde9b615 sys/sys/proc.h
--- a/sys/sys/proc.h    Fri May 20 07:40:09 2005 +0000
+++ b/sys/sys/proc.h    Fri May 20 12:44:11 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.199 2005/03/30 17:07:51 christos Exp $      */
+/*     $NetBSD: proc.h,v 1.200 2005/05/20 12:44:11 fvdl Exp $  */
 
 /*-
  * Copyright (c) 1986, 1989, 1991, 1993
@@ -128,6 +128,9 @@
        int             (*e_fault)(struct proc *, vaddr_t, int, int);
 
        vaddr_t         (*e_vm_default_addr)(struct proc *, vaddr_t, vsize_t);
+
+       /* Emulation-specific hook for userspace page faults */
+       int             (*e_usertrap)(struct lwp *, vaddr_t, void *);
 };
 
 /*



Home | Main Index | Thread Index | Old Index