Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/sh3 add a copyfault routine into the TLB miss h...



details:   https://anonhg.NetBSD.org/src/rev/87feec41d4fc
branches:  trunk
changeset: 485148:87feec41d4fc
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Apr 20 14:02:41 2000 +0000

description:
add a copyfault routine into the TLB miss handler

diffstat:

 sys/arch/sh3/sh3/trap.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 8c863e37110a -r 87feec41d4fc sys/arch/sh3/sh3/trap.c
--- a/sys/arch/sh3/sh3/trap.c   Thu Apr 20 13:59:02 2000 +0000
+++ b/sys/arch/sh3/sh3/trap.c   Thu Apr 20 14:02:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.8 2000/04/13 23:00:42 msaitoh Exp $ */
+/*     $NetBSD: trap.c,v 1.9 2000/04/20 14:02:41 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
@@ -861,6 +861,14 @@
        }
 
  nogo:
+       if (p != NULL) {
+               struct pcb *pcb = &p->p_addr->u_pcb;
+               if (pcb->pcb_onfault != 0) {
+                       frame.tf_spc = (int)pcb->pcb_onfault;
+                       return;
+               }
+       }
+
 #ifdef DEBUG
        if (trapdebug) {
                printf("tlb_handler#NOGO:va(0x%lx),spc=%x\n",



Home | Main Index | Thread Index | Old Index