Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc remove a local copy of mfmsr().



details:   https://anonhg.NetBSD.org/src/rev/1d7c6c92e622
branches:  trunk
changeset: 534490:1d7c6c92e622
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jul 28 07:05:19 2002 +0000

description:
remove a local copy of mfmsr().

diffstat:

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

diffs (24 lines):

diff -r 2b2b69bea24a -r 1d7c6c92e622 sys/arch/powerpc/powerpc/pmap_subr.c
--- a/sys/arch/powerpc/powerpc/pmap_subr.c      Sun Jul 28 07:05:06 2002 +0000
+++ b/sys/arch/powerpc/powerpc/pmap_subr.c      Sun Jul 28 07:05:19 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_subr.c,v 1.2 2002/07/18 22:51:58 matt Exp $       */
+/*     $NetBSD: pmap_subr.c,v 1.3 2002/07/28 07:05:19 chs Exp $        */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -54,14 +54,6 @@
 #define        MFMSR()         mfmsr()
 #define        MTMSR(psl)      __asm __volatile("sync; mtmsr %0; isync" :: "r"(psl))
 
-static __inline u_int32_t
-mfmsr(void)
-{
-       u_int32_t psl;
-       __asm __volatile("mfmsr %0" : "=r"(psl) : );
-       return psl;
-}
-
 /*
  * This file uses a sick & twisted method to deal with the common pmap
  * operations of zero'ing, copying, and syncing the page with the



Home | Main Index | Thread Index | Old Index