Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/include KNF



details:   https://anonhg.NetBSD.org/src/rev/0090709921ea
branches:  trunk
changeset: 480426:0090709921ea
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jan 12 14:40:27 2000 +0000

description:
KNF

diffstat:

 sys/arch/sh3/include/cpufunc.h |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r 3769cc9c39f6 -r 0090709921ea sys/arch/sh3/include/cpufunc.h
--- a/sys/arch/sh3/include/cpufunc.h    Wed Jan 12 10:29:35 2000 +0000
+++ b/sys/arch/sh3/include/cpufunc.h    Wed Jan 12 14:40:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.h,v 1.2 1999/09/16 14:42:27 msaitoh Exp $      */
+/*     $NetBSD: cpufunc.h,v 1.3 2000/01/12 14:40:27 msaitoh Exp $      */
 
 /*
  * Copyright (c) 1993 Charles Hannum.
@@ -49,6 +49,10 @@
 
 #ifdef _KERNEL
 
+void enable_ext_intr __P((void));
+void disable_ext_intr __P((void));
+static __inline void setPageDir __P((int));
+
 static __inline void
 tlbflush(void)
 {
@@ -60,8 +64,10 @@
 }
 
 static __inline void
-setPageDir(int pagedir)
+setPageDir(pagedir)
+       int pagedir;
 {
+
        PageDirReg = pagedir;
        tlbflush();
 }
@@ -71,6 +77,7 @@
 static __inline void
 disable_intr(void)
 {
+
        __asm __volatile("mov.l r0, @-r15");
        __asm __volatile("mov.l r1, @-r15");
        __asm __volatile("mov #0x10, r0");
@@ -86,6 +93,7 @@
 static __inline void
 enable_intr(void)
 {
+
        __asm __volatile("mov.l r0, @-r15");
        __asm __volatile("mov.l r1, @-r15");
        __asm __volatile("mov #0x10, r0");



Home | Main Index | Thread Index | Old Index