Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3 Clean up function declaration.



details:   https://anonhg.NetBSD.org/src/rev/e0784373a23c
branches:  trunk
changeset: 522460:e0784373a23c
user:      uch <uch%NetBSD.org@localhost>
date:      Tue Feb 19 17:22:34 2002 +0000

description:
Clean up function declaration.

diffstat:

 sys/arch/sh3/include/cpu.h      |  41 ++++-------------------------------------
 sys/arch/sh3/sh3/db_interface.c |   4 ++--
 sys/arch/sh3/sh3/kgdb_machdep.c |   4 ++--
 sys/arch/sh3/sh3/vm_machdep.c   |   5 ++++-
 4 files changed, 12 insertions(+), 42 deletions(-)

diffs (128 lines):

diff -r 4fa242fbdb44 -r e0784373a23c sys/arch/sh3/include/cpu.h
--- a/sys/arch/sh3/include/cpu.h        Tue Feb 19 17:21:18 2002 +0000
+++ b/sys/arch/sh3/include/cpu.h        Tue Feb 19 17:22:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.16 2002/02/17 20:55:52 uch Exp $     */
+/*     $NetBSD: cpu.h,v 1.17 2002/02/19 17:22:34 uch Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -124,7 +124,6 @@
  * We need a machine-independent name for this.
  */
 #define        DELAY(x)                delay(x)
-void   delay(int);
 
 /*
  * Logical address space of SH3 CPU.
@@ -174,45 +173,13 @@
 #include <machine/cputypes.h>
 
 #ifdef _KERNEL
-/* autoconf.c */
-void   configure(void);
-
-/* sh3_machdep.c */
 void sh_cpu_init(int, int);
 void sh3_startup(void);
-
-/* machdep.c */
-void   delay(int);
-void   dumpconf(void);
-void   cpu_reset(void);
-
-/* locore.s */
-struct region_descriptor;
-void   lgdt(struct region_descriptor *);
-void   fillw(short, void *, size_t);
-void   bcopyb (caddr_t, caddr_t, size_t);
-void   bcopyw(caddr_t, caddr_t, size_t);
-
+void delay(int);
 struct pcb;
-void   savectx(struct pcb *);
-void   switch_exit(struct proc *);
-void   proc_trampoline(void);
-
-/* clock.c */
-void   startrtclock(void);
+void savectx(struct pcb *);
 
-/* npx.c */
-void   npxdrop(void);
-void   npxsave(void);
-
-/* vm_machdep.c */
-int kvtop(caddr_t);
-
-#ifdef MATH_EMULATE
-/* math_emulate.c */
-int    math_emulate(struct trapframe *);
-#endif
-
+void startrtclock(void);
 #endif /* _KERNEL */
 
 /*
diff -r 4fa242fbdb44 -r e0784373a23c sys/arch/sh3/sh3/db_interface.c
--- a/sys/arch/sh3/sh3/db_interface.c   Tue Feb 19 17:21:18 2002 +0000
+++ b/sys/arch/sh3/sh3/db_interface.c   Tue Feb 19 17:22:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.8 2002/02/17 20:58:35 uch Exp $     */
+/*     $NetBSD: db_interface.c,v 1.9 2002/02/19 17:22:34 uch Exp $     */
 
 /*-
  * Copyright (C) 2002 UCHIYAMA Yasushi.  All rights reserved.
@@ -137,7 +137,7 @@
 cpu_Debugger()
 {
 
-       breakpoint();
+       __asm__ __volatile__("trapa #0xc3");
 }
 
 #define M_BSR  0xf000
diff -r 4fa242fbdb44 -r e0784373a23c sys/arch/sh3/sh3/kgdb_machdep.c
--- a/sys/arch/sh3/sh3/kgdb_machdep.c   Tue Feb 19 17:21:18 2002 +0000
+++ b/sys/arch/sh3/sh3/kgdb_machdep.c   Tue Feb 19 17:22:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kgdb_machdep.c,v 1.4 2002/02/12 15:26:50 uch Exp $     */
+/*     $NetBSD: kgdb_machdep.c,v 1.5 2002/02/19 17:22:34 uch Exp $     */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -235,7 +235,7 @@
        if (verbose)
                printf("kgdb waiting...");
 
-       breakpoint();
+       __asm__ __volatile__("trapa #0xc3");
 
        if (verbose)
                printf("connected.\n");
diff -r 4fa242fbdb44 -r e0784373a23c sys/arch/sh3/sh3/vm_machdep.c
--- a/sys/arch/sh3/sh3/vm_machdep.c     Tue Feb 19 17:21:18 2002 +0000
+++ b/sys/arch/sh3/sh3/vm_machdep.c     Tue Feb 19 17:22:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.24 2002/02/17 20:55:58 uch Exp $      */
+/*     $NetBSD: vm_machdep.c,v 1.25 2002/02/19 17:22:34 uch Exp $      */
 
 /*-
  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
@@ -94,6 +94,7 @@
 cpu_fork(struct proc *p1, struct proc *p2, void *stack,
     size_t stacksize, void (*func)(void *), void *arg)
 {
+       extern void proc_trampoline(void);
        struct pcb *pcb = &p2->p_addr->u_pcb;
        struct trapframe *tf;
        struct switchframe *sf;
@@ -162,6 +163,8 @@
 void
 cpu_exit(struct proc *p)
 {
+       extern void switch_exit(struct proc *);
+
        uvmexp.swtch++;
        switch_exit(p);
 }



Home | Main Index | Thread Index | Old Index