Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap If not MULTIPROCESSOR, just make cpu_tlb_info(c...



details:   https://anonhg.NetBSD.org/src/rev/4f58d262ba06
branches:  trunk
changeset: 788819:4f58d262ba06
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jul 22 03:39:55 2013 +0000

description:
If not MULTIPROCESSOR, just make cpu_tlb_info(ci) return &pmap_tlb0_info

diffstat:

 sys/uvm/pmap/pmap_tlb.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r b2f036c8e44c -r 4f58d262ba06 sys/uvm/pmap/pmap_tlb.h
--- a/sys/uvm/pmap/pmap_tlb.h   Mon Jul 22 03:37:17 2013 +0000
+++ b/sys/uvm/pmap/pmap_tlb.h   Mon Jul 22 03:39:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.h,v 1.2 2013/07/17 23:15:20 matt Exp $        */
+/*     $NetBSD: pmap_tlb.h,v 1.3 2013/07/22 03:39:55 matt Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -148,7 +148,11 @@
 #define        cpu_set_tlb_info(ci, ti)        ((void)((ci)->ci_tlb_info = (ti)))
 #endif
 #ifndef cpu_tlb_info
+#ifdef MULTIPROCESSOR
 #define        cpu_tlb_info(ci)                ((ci)->ci_tlb_info)
+#else
+#define        cpu_tlb_info(ci)                (&pmap_tlb0_info)
+#endif
 #endif
 
 #ifdef MULTIPROCESSOR



Home | Main Index | Thread Index | Old Index