summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/conf/Makefile.i3864
-rw-r--r--sys/i386/i386/conf.c12
-rw-r--r--sys/i386/i386/machdep.c5
-rw-r--r--sys/i386/i386/pmap.c6
-rw-r--r--sys/i386/i386/trap.c4
-rw-r--r--sys/i386/i386/tsc.c4
-rw-r--r--sys/i386/include/cpufunc.h3
-rw-r--r--sys/i386/include/pmap.h16
-rw-r--r--sys/i386/isa/clock.c4
-rw-r--r--sys/i386/isa/if_ed.c4
10 files changed, 13 insertions, 49 deletions
diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386
index 73df15a..0dc0931 100644
--- a/sys/i386/conf/Makefile.i386
+++ b/sys/i386/conf/Makefile.i386
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.27 1994/08/06 10:52:15 davidg Exp $
+# $Id: Makefile.i386,v 1.28 1994/08/13 03:49:32 wollman Exp $
#
# Makefile for FreeBSD
#
@@ -33,7 +33,7 @@ S= ../..
.endif
I386= ${S}/i386
-CWARNFLAGS=-W -Wreturn-type -Wcomment
+CWARNFLAGS=-W -Wreturn-type -Wcomment -Wredundant-decls
#
# The following flags are next up for working on:
# -Wredundant-decls -Wnested-externs
diff --git a/sys/i386/i386/conf.c b/sys/i386/i386/conf.c
index 3360de6..3f03743 100644
--- a/sys/i386/i386/conf.c
+++ b/sys/i386/i386/conf.c
@@ -41,7 +41,7 @@
* SUCH DAMAGE.
*
* from: @(#)conf.c 5.8 (Berkeley) 5/12/91
- * $Id: conf.c,v 1.24 1994/04/21 14:10:31 sos Exp $
+ * $Id: conf.c,v 1.26 1994/05/25 08:52:45 rgrimes Exp $
*/
#include <sys/param.h>
@@ -66,7 +66,6 @@ typedef int d_reset_t __P((int));
typedef int d_select_t __P((dev_t, int, struct proc *));
typedef int d_mmap_t __P((/* XXX */));
-int nullop(), enxio(), enodev();
d_rdwr_t rawread, rawwrite;
d_strategy_t swstrategy;
@@ -203,7 +202,6 @@ d_ioctl_t fdioctl;
#define swopen (d_open_t *)enodev
#define swclose (d_close_t *)enodev
-d_strategy_t swstrategy;
#define swioctl (d_ioctl_t *)enodev
#define swdump (d_dump_t *)enodev
#define swsize (d_psize_t *)enodev
@@ -240,12 +238,6 @@ int nblkdev = sizeof (bdevsw) / sizeof (bdevsw[0]);
/* console */
#include "machine/cons.h"
-d_open_t cnopen;
-d_close_t cnclose;
-d_rdwr_t cnread, cnwrite;
-d_ioctl_t cnioctl;
-d_select_t cnselect;
-
/* more console */
d_open_t pcopen;
d_close_t pcclose;
@@ -322,8 +314,6 @@ d_rdwr_t logread;
d_ioctl_t logioctl;
d_select_t logselect;
-d_select_t ttselect, seltrue;
-
#include "lpt.h"
#if NLPT > 0
d_open_t lptopen;
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index b5616e5..54c2a58 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.51 1994/08/13 03:49:42 wollman Exp $
+ * $Id: machdep.c,v 1.52 1994/08/13 14:21:42 davidg Exp $
*/
#include "npx.h"
@@ -95,7 +95,6 @@ static void identifycpu(void);
static void initcpu(void);
static int test_page(int *, int);
-extern int grow(struct proc *,u_int);
char machine[] = "i386";
char cpu_model[sizeof("Pentium") + 1];
@@ -1073,7 +1072,7 @@ void
init386(first)
int first;
{
- extern ssdtosd(), lgdt(), lidt(), lldt(), etext;
+ extern lgdt(), lidt(), lldt(), etext;
int x, *pi;
unsigned biosbasemem, biosextmem;
struct gate_descriptor *gdp;
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 2a1011f..70fa5ff 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.31 1994/08/07 14:53:10 davidg Exp $
+ * $Id: pmap.c,v 1.32 1994/08/13 03:49:44 wollman Exp $
*/
/*
@@ -153,7 +153,6 @@ static inline pv_entry_t get_pv_entry();
static inline void pmap_use_pt();
static inline void pmap_unuse_pt();
-inline pt_entry_t * pmap_pte();
extern vm_offset_t clean_sva, clean_eva;
extern int cpu_class;
@@ -338,7 +337,6 @@ pmap_bootstrap(firstaddr, loadaddr)
vm_offset_t va;
pt_entry_t *pte;
#endif
- extern int IdlePTD;
avail_start = firstaddr + DMAPAGES*NBPG;
@@ -414,7 +412,6 @@ pmap_init(phys_start, phys_end)
int rv;
int i;
extern int KPTphys;
- extern int IdlePTD;
/*
* Now that kernel map has been allocated, we can mark as
@@ -1465,7 +1462,6 @@ pmap_object_init_pt(pmap, addr, object, offset, size)
int s;
vm_offset_t v, lastv=0;
pt_entry_t pte;
- extern vm_map_t kernel_map;
vm_offset_t objbytes;
int anyvalid = 0;
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index 21cdac6..58c0090 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.27 1994/08/01 11:25:28 davidg Exp $
+ * $Id: trap.c,v 1.28 1994/08/10 04:39:47 wollman Exp $
*/
/*
@@ -73,8 +73,6 @@
int trap_pfault __P((struct trapframe *, int));
void trap_fatal __P((struct trapframe *));
-extern int grow(struct proc *,u_int);
-
struct sysent sysent[];
int nsysent;
diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c
index e3f3f21..e72d6a3 100644
--- a/sys/i386/i386/tsc.c
+++ b/sys/i386/i386/tsc.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.14 1994/08/15 03:15:18 wollman Exp $
+ * $Id: clock.c,v 1.15 1994/08/18 05:09:21 davidg Exp $
*/
/*
@@ -59,8 +59,6 @@
#endif
#define TIMER_DIV(x) ((TIMER_FREQ+(x)/2)/(x))
-void hardclock();
-void statclock();
static int beeping;
int timer0_divisor = TIMER_DIV(100); /* XXX should be hz */
u_int timer0_prescale;
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h
index 77f9213..8c99782 100644
--- a/sys/i386/include/cpufunc.h
+++ b/sys/i386/include/cpufunc.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cpufunc.h,v 1.15 1994/08/11 02:26:08 jkh Exp $
+ * $Id: cpufunc.h,v 1.16 1994/08/13 03:49:49 wollman Exp $
*/
/*
@@ -153,6 +153,7 @@ void load_cr0 __P((u_int cr0));
u_int rcr0 __P((void));
void load_cr3(u_long);
u_long rcr3(void);
+extern void DELAY(int);
void setidt __P((int, void (*)(), int, int));
extern u_long kvtop(void *);
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h
index 7ddcebd..1e4cf2b 100644
--- a/sys/i386/include/pmap.h
+++ b/sys/i386/include/pmap.h
@@ -42,7 +42,7 @@
*
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
- * $Id: pmap.h,v 1.12 1994/03/24 23:12:48 davidg Exp $
+ * $Id: pmap.h,v 1.14 1994/05/25 08:56:24 rgrimes Exp $
*/
#ifndef _PMAP_MACHINE_
@@ -194,23 +194,9 @@ pv_entry_t pv_table; /* array of entries, one per page */
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
-extern pmap_t pmap_create(vm_size_t);
-extern void pmap_pinit(struct pmap *);
-extern void pmap_destroy(pmap_t);
-extern void pmap_release(struct pmap *);
-extern void pmap_reference(pmap_t);
-extern void pmap_remove(struct pmap *, vm_offset_t, vm_offset_t);
-extern void pmap_protect(struct pmap *, vm_offset_t, vm_offset_t, vm_prot_t);
-extern void pmap_enter(pmap_t, vm_offset_t, vm_offset_t, vm_prot_t, boolean_t);
-extern void pmap_change_wiring(pmap_t, vm_offset_t, boolean_t);
extern inline pt_entry_t *pmap_pte(pmap_t, vm_offset_t);
-extern vm_offset_t pmap_extract(pmap_t, vm_offset_t);
-extern void pmap_copy(pmap_t, pmap_t, vm_offset_t, vm_size_t, vm_offset_t);
-extern void pmap_collect(pmap_t);
struct pcb; extern void pmap_activate(pmap_t, struct pcb *);
extern pmap_t pmap_kernel(void);
-extern void pmap_pageable(pmap_t, vm_offset_t, vm_offset_t, boolean_t);
-
#endif /* KERNEL */
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c
index e3f3f21..e72d6a3 100644
--- a/sys/i386/isa/clock.c
+++ b/sys/i386/isa/clock.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.14 1994/08/15 03:15:18 wollman Exp $
+ * $Id: clock.c,v 1.15 1994/08/18 05:09:21 davidg Exp $
*/
/*
@@ -59,8 +59,6 @@
#endif
#define TIMER_DIV(x) ((TIMER_FREQ+(x)/2)/(x))
-void hardclock();
-void statclock();
static int beeping;
int timer0_divisor = TIMER_DIV(100); /* XXX should be hz */
u_int timer0_prescale;
diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c
index bca7f31..8577d08 100644
--- a/sys/i386/isa/if_ed.c
+++ b/sys/i386/isa/if_ed.c
@@ -13,7 +13,7 @@
* the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,
* and a variety of similar clones.
*
- * $Id: if_ed.c,v 1.43 1994/08/12 06:36:51 davidg Exp $
+ * $Id: if_ed.c,v 1.44 1994/08/13 03:50:03 wollman Exp $
*/
#include "ed.h"
@@ -131,8 +131,6 @@ u_short ed_pio_write_mbufs();
void ed_setrcr(struct ifnet *, struct ed_softc *);
-extern int ether_output();
-
struct trailer_header {
u_short ether_type;
u_short ether_residual;
OpenPOWER on IntegriCloud