mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
This commit is contained in:
parent
11098d3bad
commit
b5e8ce9f12
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7090
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
|
||||
* $Id: autoconf.c,v 1.19 1995/02/01 23:11:38 se Exp $
|
||||
* $Id: autoconf.c,v 1.20 1995/02/18 18:04:30 wpaul Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -54,6 +54,7 @@
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/pte.h>
|
||||
|
||||
static void swapconf(void);
|
||||
@ -65,7 +66,6 @@ static void setroot(void);
|
||||
* the machine.
|
||||
*/
|
||||
int dkn; /* number of iostat dk numbers assigned so far */
|
||||
extern int cold; /* cold start flag initialized in locore.s */
|
||||
|
||||
extern int (*mountroot) __P((void));
|
||||
#ifdef FFS
|
||||
@ -101,12 +101,8 @@ configure()
|
||||
#endif
|
||||
|
||||
#ifdef NFS
|
||||
{
|
||||
extern int nfs_diskless_valid;
|
||||
|
||||
if (nfs_diskless_valid)
|
||||
mountroot = nfs_mountroot;
|
||||
}
|
||||
#endif /* NFS */
|
||||
#ifdef FFS
|
||||
if (!mountroot) {
|
||||
@ -143,7 +139,6 @@ swapconf()
|
||||
{
|
||||
register struct swdevt *swp;
|
||||
register int nblks;
|
||||
extern int Maxmem;
|
||||
|
||||
for (swp = swdevt; swp->sw_dev > 0; swp++)
|
||||
{
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_interface.c,v 1.10 1994/09/15 11:38:59 davidg Exp $
|
||||
* $Id: db_interface.c,v 1.11 1995/01/14 10:24:48 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -35,6 +35,7 @@
|
||||
#include <sys/proc.h>
|
||||
#include <sys/reboot.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/segments.h>
|
||||
|
||||
#include <ddb/ddb.h>
|
||||
@ -192,7 +193,6 @@ db_write_bytes(addr, size, data)
|
||||
vm_offset_t addr1;
|
||||
register pt_entry_t *ptep1 = 0;
|
||||
pt_entry_t oldmap1 = { 0 };
|
||||
extern char etext;
|
||||
|
||||
db_nofault = &db_jmpbuf;
|
||||
|
||||
|
@ -23,13 +23,15 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_trace.c,v 1.8 1994/08/13 03:49:37 wollman Exp $
|
||||
* $Id: db_trace.c,v 1.9 1995/03/01 21:37:44 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/lock.h>
|
||||
@ -109,7 +111,6 @@ db_numargs(fp)
|
||||
int *argp;
|
||||
int inst;
|
||||
int args;
|
||||
extern char etext[];
|
||||
|
||||
argp = (int *)db_get_value((int)&fp->f_retaddr, 4, FALSE);
|
||||
if (argp < (int *)VM_MIN_KERNEL_ADDRESS || argp > (int *)etext)
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.112 1995/03/03 00:43:08 davidg Exp $
|
||||
* $Id: machdep.c,v 1.113 1995/03/07 19:58:02 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -54,6 +54,7 @@
|
||||
#include <sys/callout.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/msgbuf.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/sysent.h>
|
||||
@ -79,9 +80,31 @@
|
||||
#include <sys/exec.h>
|
||||
#include <sys/vnode.h>
|
||||
|
||||
#include <ddb/ddb.h>
|
||||
|
||||
#include <net/netisr.h>
|
||||
|
||||
extern vm_offset_t avail_start, avail_end;
|
||||
/* XXX correctly declaring all the netisr's is painful. */
|
||||
#include <net/if.h>
|
||||
#include <net/route.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/in_systm.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/if_ether.h>
|
||||
#include <netinet/ip_var.h>
|
||||
|
||||
#include <netns/ns.h>
|
||||
#include <netns/ns_if.h>
|
||||
|
||||
#include <netiso/iso.h>
|
||||
#include <netiso/iso_var.h>
|
||||
|
||||
#include <netccitt/dll.h>
|
||||
#include <netccitt/x25.h>
|
||||
#include <netccitt/pk.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <netccitt/pk_var.h>
|
||||
|
||||
#include "ether.h"
|
||||
|
||||
@ -95,6 +118,7 @@ extern vm_offset_t avail_start, avail_end;
|
||||
#include <machine/cons.h>
|
||||
#include <machine/devconf.h>
|
||||
#include <machine/bootinfo.h>
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
@ -160,7 +184,6 @@ cpu_startup()
|
||||
{
|
||||
register unsigned i;
|
||||
register caddr_t v;
|
||||
extern void (*netisrs[32])(void);
|
||||
vm_offset_t maxaddr;
|
||||
vm_size_t size = 0;
|
||||
int firstaddr;
|
||||
@ -193,7 +216,7 @@ cpu_startup()
|
||||
/*
|
||||
* Quickly wire in netisrs.
|
||||
*/
|
||||
#define DONET(isr, n) do { extern void isr(void); netisrs[n] = isr; } while(0)
|
||||
#define DONET(isr, n) do { netisrs[n] = isr; } while(0)
|
||||
#ifdef INET
|
||||
#if NETHER > 0
|
||||
DONET(arpintr, NETISR_ARP);
|
||||
@ -377,8 +400,6 @@ struct cpu_nameclass i386_cpus[] = {
|
||||
static void
|
||||
identifycpu()
|
||||
{
|
||||
extern u_long cpu_id, cpu_high, cpu_feature;
|
||||
extern char cpu_vendor[];
|
||||
printf("CPU: ");
|
||||
if (cpu >= 0
|
||||
&& cpu < (sizeof i386_cpus/sizeof(struct cpu_nameclass))) {
|
||||
@ -482,8 +503,6 @@ identifycpu()
|
||||
}
|
||||
}
|
||||
|
||||
extern char kstack[];
|
||||
|
||||
/*
|
||||
* Send an interrupt to process.
|
||||
*
|
||||
@ -726,7 +745,6 @@ boot(arghowto)
|
||||
register long dummy; /* r12 is reserved */
|
||||
register int howto; /* r11 == how to boot */
|
||||
register int devtype; /* r10 == major of root dev */
|
||||
extern int cold;
|
||||
|
||||
if (cold) {
|
||||
printf("hit reset please");
|
||||
@ -1161,18 +1179,14 @@ void
|
||||
init386(first)
|
||||
int first;
|
||||
{
|
||||
extern char etext[];
|
||||
int x;
|
||||
unsigned biosbasemem, biosextmem;
|
||||
struct gate_descriptor *gdp;
|
||||
int gsel_tss;
|
||||
extern int sigcode,szsigcode;
|
||||
/* table descriptors - used to load tables by microp */
|
||||
struct region_descriptor r_gdt, r_idt;
|
||||
int pagesinbase, pagesinext;
|
||||
int target_page;
|
||||
extern struct pte *CMAP1;
|
||||
extern caddr_t CADDR1;
|
||||
|
||||
proc0.p_addr = proc0paddr;
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.51 1995/03/01 22:08:35 davidg Exp $
|
||||
* $Id: pmap.c,v 1.52 1995/03/10 08:05:00 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -96,6 +96,7 @@
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
#include <machine/cputypes.h>
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <i386/isa/isa.h>
|
||||
|
||||
@ -159,6 +160,7 @@ extern int cpu_class;
|
||||
* All those kernel PT submaps that BSD is so fond of
|
||||
*/
|
||||
pt_entry_t *CMAP1, *CMAP2, *ptmmap;
|
||||
pv_entry_t pv_table;
|
||||
caddr_t CADDR1, CADDR2, ptvmmap;
|
||||
pt_entry_t *msgbufmap;
|
||||
struct msgbuf *msgbufp;
|
||||
@ -392,8 +394,6 @@ pmap_bootstrap(firstaddr, loadaddr)
|
||||
* buffer (contiguous virtual *and* physical memory).
|
||||
*/
|
||||
{
|
||||
extern vm_offset_t isaphysmem;
|
||||
|
||||
isaphysmem = va;
|
||||
|
||||
virtual_avail = pmap_map(va, firstaddr,
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.47 1995/02/10 06:43:47 davidg Exp $
|
||||
* $Id: trap.c,v 1.48 1995/02/14 19:20:31 sos Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -56,10 +56,12 @@
|
||||
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/psl.h>
|
||||
#include <machine/reg.h>
|
||||
#include <machine/trap.h>
|
||||
@ -302,8 +304,6 @@ trap(frame)
|
||||
*/
|
||||
#define MAYBE_DORETI_FAULT(where, whereto) \
|
||||
do { \
|
||||
extern void where(void) __asm(__STRING(where)); \
|
||||
extern void whereto(void) __asm(__STRING(whereto)); \
|
||||
if (frame.tf_eip == (int)where) { \
|
||||
frame.tf_eip = (int)whereto; \
|
||||
return; \
|
||||
@ -398,7 +398,6 @@ trap_pfault(frame, usermode)
|
||||
vm_map_t map = 0;
|
||||
int rv = 0;
|
||||
vm_prot_t ftype;
|
||||
extern vm_map_t kernel_map;
|
||||
int eva;
|
||||
struct proc *p = curproc;
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.29 1994/12/30 12:43:34 bde Exp $
|
||||
* $Id: clock.c,v 1.31 1995/01/19 22:05:27 ats Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -55,6 +55,7 @@
|
||||
#include <machine/frame.h>
|
||||
#include <i386/isa/icu.h>
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/rtc.h>
|
||||
#include <i386/isa/timerreg.h>
|
||||
|
||||
@ -558,8 +559,9 @@ cpu_initclocks()
|
||||
profhz = RTC_PROFRATE;
|
||||
|
||||
/* Finish initializing 8253 timer 0. */
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0, clkintr,
|
||||
&clk_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)clkintr, &clk_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ0);
|
||||
|
||||
/* Initialize RTC. */
|
||||
@ -568,8 +570,9 @@ cpu_initclocks()
|
||||
diag = rtcin(RTC_DIAG);
|
||||
if (diag != 0)
|
||||
printf("RTC BIOS diagnostic error %b\n", diag, RTCDG_BITS);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0, rtcintr,
|
||||
&stat_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)rtcintr, &stat_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ8);
|
||||
writertc(RTC_STATUSB, RTCSB_24HR | RTCSB_PINTR);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
|
||||
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
|
||||
* $Id: vm_machdep.c,v 1.32 1995/02/20 22:23:31 davidg Exp $
|
||||
* $Id: vm_machdep.c,v 1.33 1995/03/01 23:59:21 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -51,6 +51,7 @@
|
||||
#include <sys/user.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_kern.h>
|
||||
@ -546,8 +547,6 @@ cpu_fork(p1, p2)
|
||||
{
|
||||
register struct user *up = p2->p_addr;
|
||||
int offset;
|
||||
extern char kstack[];
|
||||
extern int mvesp();
|
||||
|
||||
/*
|
||||
* Copy pcb and stack from proc p1 to p2.
|
||||
|
@ -48,13 +48,6 @@
|
||||
#include <sys/cdefs.h>
|
||||
#include <machine/frame.h>
|
||||
|
||||
/*
|
||||
* Kernel to clock driver interface.
|
||||
*/
|
||||
void inittodr __P((time_t base));
|
||||
void resettodr __P((void));
|
||||
void startrtclock __P((void));
|
||||
|
||||
/*
|
||||
* i386 to clock driver interface.
|
||||
* XXX almost all of it is misplaced. i586 stuff is done in isa/clock.c
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)frame.h 5.2 (Berkeley) 1/18/91
|
||||
* $Id: frame.h,v 1.7 1994/01/03 07:55:32 davidg Exp $
|
||||
* $Id: frame.h,v 1.9 1994/05/25 08:56:02 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_FRAME_H_
|
||||
@ -72,8 +72,6 @@ struct trapframe {
|
||||
int tf_ss;
|
||||
};
|
||||
|
||||
extern int kdb_trap(int, int, struct trapframe *);
|
||||
|
||||
/* Interrupt stack frame */
|
||||
|
||||
struct intrframe {
|
||||
@ -137,4 +135,8 @@ struct sigframe {
|
||||
sig_t sf_handler;
|
||||
struct sigcontext sf_sc;
|
||||
};
|
||||
|
||||
int kdb_trap __P((int, int, struct trapframe *));
|
||||
int math_emulate __P((struct trapframe * info));
|
||||
|
||||
#endif /* _MACHINE_FRAME_H_ */
|
||||
|
68
sys/amd64/include/md_var.h
Normal file
68
sys/amd64/include/md_var.h
Normal file
@ -0,0 +1,68 @@
|
||||
/*-
|
||||
* Copyright (c) 1995 Bruce D. Evans.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the author nor the names of contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_MD_VAR_H_
|
||||
#define _MACHINE_MD_VAR_H_
|
||||
|
||||
/*
|
||||
* Miscellaneous machine-dependent declarations.
|
||||
*/
|
||||
|
||||
extern int Maxmem;
|
||||
extern u_long cpu_feature;
|
||||
extern u_long cpu_high;
|
||||
extern u_long cpu_id;
|
||||
extern char cpu_vendor[];
|
||||
extern char etext[];
|
||||
extern vm_offset_t isaphysmem;
|
||||
extern char kstack[];
|
||||
extern void (*netisrs[32]) __P((void));
|
||||
extern int nfs_diskless_valid;
|
||||
extern int sigcode;
|
||||
extern int szsigcode;
|
||||
|
||||
struct proc;
|
||||
struct reg;
|
||||
|
||||
void configure __P((void));
|
||||
void cpu_reset __P((void));
|
||||
void doreti_iret __P((void)) __asm(__STRING(doreti_iret));
|
||||
void doreti_iret_fault __P((void)) __asm(__STRING(doreti_iret_fault));
|
||||
void doreti_popl_ds __P((void)) __asm(__STRING(doreti_popl_ds));
|
||||
void doreti_popl_ds_fault __P((void)) __asm(__STRING(doreti_popl_ds_fault));
|
||||
void doreti_popl_es __P((void)) __asm(__STRING(doreti_popl_es));
|
||||
void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault));
|
||||
int fill_regs __P((struct proc *p, struct reg *regs));
|
||||
int mvesp __P((void));
|
||||
void setconf __P((void));
|
||||
void userconfig __P((void));
|
||||
|
||||
#endif /* !_MACHINE_MD_VAR_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.22 1995/02/14 06:55:42 phk Exp $
|
||||
* $Id: pmap.h,v 1.23 1995/02/14 06:57:45 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_PMAP_H_
|
||||
@ -190,7 +190,14 @@ typedef struct pv_entry {
|
||||
|
||||
#ifdef KERNEL
|
||||
|
||||
pv_entry_t pv_table; /* array of entries, one per page */
|
||||
extern caddr_t CADDR1;
|
||||
extern pt_entry_t *CMAP1;
|
||||
extern vm_offset_t avail_end;
|
||||
extern vm_offset_t avail_start;
|
||||
extern vm_offset_t phys_avail[6];
|
||||
extern pv_entry_t pv_table; /* array of entries, one per page */
|
||||
extern vm_offset_t virtual_avail;
|
||||
extern vm_offset_t virtual_end;
|
||||
|
||||
#define pa_index(pa) atop(pa - vm_first_phys)
|
||||
#define pa_to_pvh(pa) (&pv_table[pa_index(pa)])
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.29 1994/12/30 12:43:34 bde Exp $
|
||||
* $Id: clock.c,v 1.31 1995/01/19 22:05:27 ats Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -55,6 +55,7 @@
|
||||
#include <machine/frame.h>
|
||||
#include <i386/isa/icu.h>
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/rtc.h>
|
||||
#include <i386/isa/timerreg.h>
|
||||
|
||||
@ -558,8 +559,9 @@ cpu_initclocks()
|
||||
profhz = RTC_PROFRATE;
|
||||
|
||||
/* Finish initializing 8253 timer 0. */
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0, clkintr,
|
||||
&clk_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)clkintr, &clk_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ0);
|
||||
|
||||
/* Initialize RTC. */
|
||||
@ -568,8 +570,9 @@ cpu_initclocks()
|
||||
diag = rtcin(RTC_DIAG);
|
||||
if (diag != 0)
|
||||
printf("RTC BIOS diagnostic error %b\n", diag, RTCDG_BITS);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0, rtcintr,
|
||||
&stat_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)rtcintr, &stat_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ8);
|
||||
writertc(RTC_STATUSB, RTCSB_24HR | RTCSB_PINTR);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_command.c,v 1.9 1995/02/05 21:09:04 phk Exp $
|
||||
* $Id: db_command.c,v 1.10 1995/03/05 22:56:21 joerg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -62,6 +62,9 @@ db_addr_t db_next;
|
||||
boolean_t db_ed_style = TRUE;
|
||||
|
||||
|
||||
void db_help_cmd __P((void));
|
||||
void db_fncall __P((void));
|
||||
|
||||
/*
|
||||
* Utility routine - discard tokens through end-of-line.
|
||||
*/
|
||||
@ -182,7 +185,6 @@ db_command(last_cmdp, cmd_table)
|
||||
modif[0] = '\0';
|
||||
}
|
||||
else if (t == tEXCL) {
|
||||
void db_fncall();
|
||||
db_fncall();
|
||||
return;
|
||||
}
|
||||
@ -308,7 +310,9 @@ extern void db_show_one_thread(), db_show_all_threads();
|
||||
extern void vm_page_print();
|
||||
extern void db_ps();
|
||||
extern void ipc_port_print();
|
||||
#if 0
|
||||
void db_show_help();
|
||||
#endif
|
||||
void db_panic();
|
||||
|
||||
struct command db_show_all_cmds[] = {
|
||||
@ -338,9 +342,6 @@ struct command db_show_cmds[] = {
|
||||
{ (char *)0, }
|
||||
};
|
||||
|
||||
void db_help_cmd();
|
||||
void db_fncall();
|
||||
|
||||
struct command db_command_table[] = {
|
||||
{ "print", db_print_cmd, 0, 0 },
|
||||
{ "p", db_print_cmd, 0, 0 },
|
||||
@ -372,6 +373,7 @@ struct command db_command_table[] = {
|
||||
|
||||
struct command *db_last_command = 0;
|
||||
|
||||
#if 0
|
||||
void
|
||||
db_help_cmd()
|
||||
{
|
||||
@ -383,6 +385,7 @@ db_help_cmd()
|
||||
cmd++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
db_panic()
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_sym.h,v 1.5 1994/08/20 03:48:27 davidg Exp $
|
||||
* $Id: db_sym.h,v 1.6 1994/09/27 03:34:57 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef _DDB_DB_SYM_H_
|
||||
@ -97,6 +97,7 @@ extern int db_eqname(/* char*, char*, char */);
|
||||
extern void db_printsym(/* db_expr_t, db_strategy_t */);
|
||||
/* print closest symbol to a value */
|
||||
extern boolean_t db_line_at_pc(db_sym_t, char **, int *, db_expr_t);
|
||||
extern int db_sym_numargs(db_sym_t, int *, char **);
|
||||
extern int X_db_sym_numargs(db_symtab_t *, db_sym_t, int *, char **);
|
||||
|
||||
#endif /* _DDB_DB_SYM_H_ */
|
||||
|
@ -27,7 +27,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ddb.h,v 1.3 1994/09/27 12:11:09 davidg Exp $
|
||||
* $Id: ddb.h,v 1.4 1994/09/27 12:15:56 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -105,6 +105,9 @@ extern void db_single_step (db_regs_t *regs);
|
||||
|
||||
extern void db_trap (int type, int code);
|
||||
|
||||
extern void cnpollc(int);
|
||||
|
||||
extern void kdb_init(void);
|
||||
extern void kdbprinttrap(int, int);
|
||||
|
||||
#endif /* __h_ddb_ddb */
|
||||
|
@ -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.66 1995/02/25 15:56:00 davidg Exp $
|
||||
* $Id: if_ed.c,v 1.67 1995/02/26 20:03:53 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "ed.h"
|
||||
@ -50,6 +50,8 @@
|
||||
#include <net/bpfdesc.h>
|
||||
#endif
|
||||
|
||||
#include <machine/clock.h>
|
||||
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/icu.h>
|
||||
|
@ -43,7 +43,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.52 1995/02/26 01:37:51 bde Exp $
|
||||
* $Id: fd.c,v 1.53 1995/03/12 22:40:56 joerg Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -289,6 +289,7 @@ static timeout_t fd_turnoff;
|
||||
static timeout_t fd_motor_on;
|
||||
static void fd_turnon(fdu_t);
|
||||
static void fdc_reset(fdc_p);
|
||||
static int fd_in(fdcu_t, int *);
|
||||
static void fdstart(fdcu_t);
|
||||
static timeout_t fd_timeout;
|
||||
static timeout_t fd_pseudointr;
|
||||
@ -477,9 +478,19 @@ int
|
||||
fd_read_status(fdc_p fdc, int fdsu)
|
||||
{
|
||||
int i, ret;
|
||||
|
||||
for (i = 0; i < 7; i++)
|
||||
{
|
||||
if ((ret = fd_in(fdc->fdcu, fdc->status + i)))
|
||||
/*
|
||||
* XXX types are poorly chosen. Only bytes can by read
|
||||
* from the hardware, but fdc_status wants u_longs and
|
||||
* fd_in() gives ints.
|
||||
*/
|
||||
int status;
|
||||
|
||||
ret = fd_in(fdc->fdcu, &status);
|
||||
fdc->status[i] = status;
|
||||
if (ret != 0)
|
||||
break;
|
||||
}
|
||||
|
||||
@ -854,7 +865,7 @@ in_fdc(fdcu_t fdcu)
|
||||
/*
|
||||
* fd_in: Like in_fdc, but allows you to see if it worked.
|
||||
*/
|
||||
int
|
||||
static int
|
||||
fd_in(fdcu_t fdcu, int *ptr)
|
||||
{
|
||||
int baseport = fdc_data[fdcu].baseport;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.69 1995/02/28 00:20:54 pst Exp $
|
||||
* $Id: sio.c,v 1.70 1995/02/28 23:21:33 ache Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
@ -313,10 +313,9 @@ struct tty *sio_tty[NSIO];
|
||||
#else
|
||||
struct tty sio_tty[NSIO];
|
||||
#endif
|
||||
extern struct tty *constty; /* XXX */
|
||||
|
||||
#ifdef KGDB
|
||||
#include "machine/remote-sl.h"
|
||||
#include <machine/remote-sl.h>
|
||||
|
||||
extern int kgdb_dev;
|
||||
extern int kgdb_rate;
|
||||
@ -1955,7 +1954,7 @@ comwakeup(chan)
|
||||
/*
|
||||
* Following are all routines needed for SIO to act as console
|
||||
*/
|
||||
#include "i386/i386/cons.h"
|
||||
#include <i386/i386/cons.h>
|
||||
|
||||
struct siocnstate {
|
||||
u_char dlbl;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
|
||||
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
|
||||
*
|
||||
* $Id: spkr.c,v 1.10 1994/10/14 16:37:58 ache Exp $
|
||||
* $Id: spkr.c,v 1.11 1995/02/03 10:19:38 ache Exp $
|
||||
*/
|
||||
|
||||
#include "speaker.h"
|
||||
@ -16,9 +16,11 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/uio.h>
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/timerreg.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/speaker.h>
|
||||
|
||||
/**************** MACHINE DEPENDENT PART STARTS HERE *************************
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)cd9660_node.c 8.2 (Berkeley) 1/23/94
|
||||
* $Id: cd9660_node.c,v 1.8 1995/01/16 17:03:24 joerg Exp $
|
||||
* $Id: cd9660_node.c,v 1.9 1995/02/21 18:41:30 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -80,8 +80,6 @@ union iso_dhead {
|
||||
} iso_dhead[DNOHSZ];
|
||||
#endif
|
||||
|
||||
int prtactive; /* 1 => print out reclaim of active vnodes */
|
||||
|
||||
/*
|
||||
* Initialize hash links for inodes and dnodes.
|
||||
*/
|
||||
@ -289,11 +287,8 @@ loop:
|
||||
vp->v_type = IFTOVT(ip->inode.iso_mode);
|
||||
|
||||
if ( vp->v_type == VFIFO ) {
|
||||
extern int (**cd9660_fifoop_p)();
|
||||
vp->v_op = cd9660_fifoop_p;
|
||||
} else if ( vp->v_type == VCHR || vp->v_type == VBLK ) {
|
||||
extern int (**cd9660_specop_p)();
|
||||
|
||||
/*
|
||||
* if device, look at device number table for translation
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)cd9660_node.h 8.2 (Berkeley) 1/23/94
|
||||
* $Id: cd9660_node.h,v 1.3 1994/09/15 19:46:00 bde Exp $
|
||||
* $Id: cd9660_node.h,v 1.4 1995/01/16 17:03:25 joerg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -111,6 +111,9 @@ struct iso_node {
|
||||
#define ISO_ILOCK(ip) iso_ilock(ip)
|
||||
#define ISO_IUNLOCK(ip) iso_iunlock(ip)
|
||||
|
||||
extern int (**cd9660_fifoop_p)();
|
||||
extern int (**cd9660_specop_p)();
|
||||
|
||||
/*
|
||||
* Prototypes for ISOFS vnode operations
|
||||
*/
|
||||
|
@ -35,7 +35,7 @@
|
||||
*
|
||||
* @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: fdesc_vfsops.c,v 1.1.1.1 1994/05/24 10:04:59 rgrimes Exp $
|
||||
* $Id: fdesc_vfsops.c,v 1.2 1994/09/21 03:46:55 wollman Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -116,7 +116,6 @@ fdesc_unmount(mp, mntflags, p)
|
||||
{
|
||||
int error;
|
||||
int flags = 0;
|
||||
extern int doforce;
|
||||
struct vnode *rootvp = VFSTOFDESC(mp)->f_root;
|
||||
|
||||
if (mntflags & MNT_FORCE) {
|
||||
|
@ -31,9 +31,11 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)fifo.h 8.2 (Berkeley) 2/2/94
|
||||
* $Id: fifo.h,v 1.3 1994/09/22 19:38:05 wollman Exp $
|
||||
* $Id: fifo.h,v 1.4 1995/02/14 06:30:18 phk Exp $
|
||||
*/
|
||||
|
||||
extern int (**fifo_vnodeop_p)();
|
||||
|
||||
/*
|
||||
* Prototypes for fifo operations on vnodes.
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)fifo_vnops.c 8.2 (Berkeley) 1/4/94
|
||||
* $Id: fifo_vnops.c,v 1.6 1994/10/02 17:48:00 phk Exp $
|
||||
* $Id: fifo_vnops.c,v 1.7 1995/02/03 06:46:13 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -48,6 +48,7 @@
|
||||
#include <sys/file.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/un.h>
|
||||
#include <miscfs/fifofs/fifo.h>
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: denode.h,v 1.2 1994/12/12 12:35:40 bde Exp $ */
|
||||
/* $Id: denode.h,v 1.3 1994/12/27 12:37:33 bde Exp $ */
|
||||
/* $NetBSD: denode.h,v 1.8 1994/08/21 18:43:49 ws Exp $ */
|
||||
|
||||
/*-
|
||||
@ -225,6 +225,8 @@ struct defid {
|
||||
/* u_long defid_gen; generation number */
|
||||
};
|
||||
|
||||
extern int (**msdosfs_vnodeop_p)();
|
||||
|
||||
/*
|
||||
* Prototypes for MSDOSFS vnode operations
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: msdosfs_denode.c,v 1.7 1995/01/09 16:04:59 davidg Exp $ */
|
||||
/* $Id: msdosfs_denode.c,v 1.8 1995/01/29 01:27:58 ats Exp $ */
|
||||
/* $NetBSD: msdosfs_denode.c,v 1.9 1994/08/21 18:44:00 ws Exp $ */
|
||||
|
||||
/*-
|
||||
@ -168,7 +168,6 @@ deget(pmp, dirclust, diroffset, direntptr, depp)
|
||||
int error;
|
||||
dev_t dev = pmp->pm_dev;
|
||||
struct mount *mntp = pmp->pm_mountp;
|
||||
extern int (**msdosfs_vnodeop_p)();
|
||||
struct denode *ldep;
|
||||
struct vnode *nvp;
|
||||
struct buf *bp;
|
||||
@ -614,7 +613,6 @@ msdosfs_reclaim(ap)
|
||||
{
|
||||
struct vnode *vp = ap->a_vp;
|
||||
struct denode *dep = VTODE(vp);
|
||||
extern int prtactive;
|
||||
|
||||
#ifdef MSDOSFS_DEBUG
|
||||
printf("msdosfs_reclaim(): dep %p, file %s, refcnt %ld\n",
|
||||
@ -655,7 +653,6 @@ msdosfs_inactive(ap)
|
||||
struct vnode *vp = ap->a_vp;
|
||||
struct denode *dep = VTODE(vp);
|
||||
int error = 0;
|
||||
extern int prtactive;
|
||||
struct timespec ts;
|
||||
|
||||
#ifdef MSDOSFS_DEBUG
|
||||
|
@ -36,7 +36,7 @@
|
||||
* @(#)null_vfsops.c 8.2 (Berkeley) 1/21/94
|
||||
*
|
||||
* @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92
|
||||
* $Id: null_vfsops.c,v 1.3 1994/09/22 19:38:14 wollman Exp $
|
||||
* $Id: null_vfsops.c,v 1.4 1994/10/10 07:55:28 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -186,7 +186,6 @@ nullfs_unmount(mp, mntflags, p)
|
||||
struct vnode *nullm_rootvp = MOUNTTONULLMOUNT(mp)->nullm_rootvp;
|
||||
int error;
|
||||
int flags = 0;
|
||||
extern int doforce;
|
||||
|
||||
#ifdef NULLFS_DIAGNOSTIC
|
||||
printf("nullfs_unmount(mp = %x)\n", mp);
|
||||
|
@ -35,7 +35,7 @@
|
||||
*
|
||||
* @(#)portal_vfsops.c 8.6 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: portal_vfsops.c,v 1.4 1994/09/23 11:01:58 davidg Exp $
|
||||
* $Id: portal_vfsops.c,v 1.5 1994/10/10 07:55:35 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -155,7 +155,6 @@ portal_unmount(mp, mntflags, p)
|
||||
int mntflags;
|
||||
struct proc *p;
|
||||
{
|
||||
extern int doforce;
|
||||
struct vnode *rootvp = VFSTOPORTAL(mp)->pm_root;
|
||||
int error, flags = 0;
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
*
|
||||
* @(#)procfs.h 8.6 (Berkeley) 2/3/94
|
||||
*
|
||||
* $Id: procfs.h,v 1.1.1.1 1994/05/24 10:05:07 rgrimes Exp $
|
||||
* $Id: procfs.h,v 1.2 1994/08/02 07:45:08 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -139,6 +139,8 @@ extern int procfs_dostatus __P((struct proc *, struct proc *, struct pfsnode *pf
|
||||
extern int (**procfs_vnodeop_p)();
|
||||
extern struct vfsops procfs_vfsops;
|
||||
|
||||
int procfs_root __P((struct mount *, struct vnode **));
|
||||
|
||||
/*
|
||||
* Prototypes for procfs vnode ops
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@
|
||||
*
|
||||
* @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: procfs_ctl.c,v 1.3 1994/12/31 12:26:50 ache Exp $
|
||||
* $Id: procfs_ctl.c,v 1.4 1995/02/20 15:53:32 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -47,10 +47,15 @@
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/tty.h>
|
||||
#include <sys/ptrace.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/resourcevar.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/signalvar.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
|
||||
#include <miscfs/procfs/procfs.h>
|
||||
#include <sys/signal.h> /* for sigmask() */
|
||||
|
||||
/*
|
||||
* True iff process (p) is in trace wait state
|
||||
|
@ -36,7 +36,7 @@
|
||||
*
|
||||
* @(#)procfs_vfsops.c 8.4 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: procfs_vfsops.c,v 1.6 1994/10/10 07:55:39 phk Exp $
|
||||
* $Id: procfs_vfsops.c,v 1.7 1995/02/20 15:53:33 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -104,7 +104,6 @@ procfs_unmount(mp, mntflags, p)
|
||||
struct proc *p;
|
||||
{
|
||||
int error;
|
||||
extern int doforce;
|
||||
int flags = 0;
|
||||
|
||||
if (mntflags & MNT_FORCE) {
|
||||
|
@ -35,7 +35,7 @@
|
||||
*
|
||||
* @(#)umap_vfsops.c 8.3 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: umap_vfsops.c,v 1.4 1994/09/22 19:38:19 wollman Exp $
|
||||
* $Id: umap_vfsops.c,v 1.5 1994/10/10 07:55:43 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -227,7 +227,6 @@ umapfs_unmount(mp, mntflags, p)
|
||||
struct vnode *umapm_rootvp = MOUNTTOUMAPMOUNT(mp)->umapm_rootvp;
|
||||
int error;
|
||||
int flags = 0;
|
||||
extern int doforce;
|
||||
|
||||
#ifdef UMAPFS_DIAGNOSTIC
|
||||
printf("umapfs_unmount(mp = %x)\n", mp);
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)union.h 8.2 (Berkeley) 2/17/94
|
||||
* $Id$
|
||||
* $Id: union.h,v 1.2 1994/08/02 07:45:42 davidg Exp $
|
||||
*/
|
||||
|
||||
struct union_args {
|
||||
@ -93,12 +93,15 @@ extern int union_allocvp __P((struct vnode **, struct mount *,
|
||||
struct vnode *, struct vnode *,
|
||||
struct componentname *, struct vnode *,
|
||||
struct vnode *));
|
||||
extern int union_freevp __P((struct vnode *));
|
||||
extern int union_copyfile __P((struct proc *, struct ucred *,
|
||||
struct vnode *, struct vnode *));
|
||||
extern int union_mkshadow __P((struct union_mount *, struct vnode *,
|
||||
struct componentname *, struct vnode **));
|
||||
extern int union_vn_create __P((struct vnode **, struct union_node *,
|
||||
struct proc *));
|
||||
extern int union_vn_close __P((struct vnode *, int, struct ucred *,
|
||||
struct proc *));
|
||||
extern int union_cn_close __P((struct vnode *, int, struct ucred *,
|
||||
struct proc *));
|
||||
extern void union_removed_upper __P((struct union_node *un));
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)union_vfsops.c 8.7 (Berkeley) 3/5/94
|
||||
* $Id: union_vfsops.c,v 1.6 1994/10/10 07:55:47 phk Exp $
|
||||
* $Id: union_vfsops.c,v 1.7 1994/11/04 14:41:43 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -56,6 +56,9 @@
|
||||
#include <sys/queue.h>
|
||||
#include <miscfs/union/union.h>
|
||||
|
||||
int union_root __P((struct mount *, struct vnode **));
|
||||
int union_statfs __P((struct mount *, struct statfs *, struct proc *));
|
||||
|
||||
/*
|
||||
* Mount union filesystem
|
||||
*/
|
||||
@ -303,7 +306,6 @@ union_unmount(mp, mntflags, p)
|
||||
struct vnode *um_rootvp;
|
||||
int error;
|
||||
int flags = 0;
|
||||
extern int doforce;
|
||||
|
||||
#ifdef UNION_DIAGNOSTIC
|
||||
printf("union_unmount(mp = %x)\n", mp);
|
||||
|
@ -56,7 +56,7 @@
|
||||
* W. Metzenthen June 1994.
|
||||
*
|
||||
*
|
||||
* $Id: errors.c,v 1.2 1994/04/29 21:07:12 gclarkii Exp $
|
||||
* $Id: errors.c,v 1.3 1994/06/10 07:44:10 rich Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -72,6 +72,7 @@
|
||||
|
||||
|
||||
#include "param.h"
|
||||
#include "systm.h"
|
||||
#include "proc.h"
|
||||
#include "machine/cpu.h"
|
||||
#include "machine/pcb.h"
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
* $Id:$
|
||||
* $Id: fpu_proto.h,v 1.2 1994/04/29 21:16:23 gclarkii Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -53,7 +53,9 @@ extern void ffreep(void);
|
||||
extern void fst_i_(void);
|
||||
extern void fstp_i(void);
|
||||
/* fpu_entry.c */
|
||||
#if 0
|
||||
extern int math_emulate(struct trapframe * info);
|
||||
#endif
|
||||
/* fpu_etc.c */
|
||||
extern void fp_etc(void);
|
||||
/* fpu_trig.c */
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
|
||||
* $Id: autoconf.c,v 1.19 1995/02/01 23:11:38 se Exp $
|
||||
* $Id: autoconf.c,v 1.20 1995/02/18 18:04:30 wpaul Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -54,6 +54,7 @@
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/pte.h>
|
||||
|
||||
static void swapconf(void);
|
||||
@ -65,7 +66,6 @@ static void setroot(void);
|
||||
* the machine.
|
||||
*/
|
||||
int dkn; /* number of iostat dk numbers assigned so far */
|
||||
extern int cold; /* cold start flag initialized in locore.s */
|
||||
|
||||
extern int (*mountroot) __P((void));
|
||||
#ifdef FFS
|
||||
@ -101,12 +101,8 @@ configure()
|
||||
#endif
|
||||
|
||||
#ifdef NFS
|
||||
{
|
||||
extern int nfs_diskless_valid;
|
||||
|
||||
if (nfs_diskless_valid)
|
||||
mountroot = nfs_mountroot;
|
||||
}
|
||||
#endif /* NFS */
|
||||
#ifdef FFS
|
||||
if (!mountroot) {
|
||||
@ -143,7 +139,6 @@ swapconf()
|
||||
{
|
||||
register struct swdevt *swp;
|
||||
register int nblks;
|
||||
extern int Maxmem;
|
||||
|
||||
for (swp = swdevt; swp->sw_dev > 0; swp++)
|
||||
{
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_interface.c,v 1.10 1994/09/15 11:38:59 davidg Exp $
|
||||
* $Id: db_interface.c,v 1.11 1995/01/14 10:24:48 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -35,6 +35,7 @@
|
||||
#include <sys/proc.h>
|
||||
#include <sys/reboot.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/segments.h>
|
||||
|
||||
#include <ddb/ddb.h>
|
||||
@ -192,7 +193,6 @@ db_write_bytes(addr, size, data)
|
||||
vm_offset_t addr1;
|
||||
register pt_entry_t *ptep1 = 0;
|
||||
pt_entry_t oldmap1 = { 0 };
|
||||
extern char etext;
|
||||
|
||||
db_nofault = &db_jmpbuf;
|
||||
|
||||
|
@ -23,13 +23,15 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_trace.c,v 1.8 1994/08/13 03:49:37 wollman Exp $
|
||||
* $Id: db_trace.c,v 1.9 1995/03/01 21:37:44 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/lock.h>
|
||||
@ -109,7 +111,6 @@ db_numargs(fp)
|
||||
int *argp;
|
||||
int inst;
|
||||
int args;
|
||||
extern char etext[];
|
||||
|
||||
argp = (int *)db_get_value((int)&fp->f_retaddr, 4, FALSE);
|
||||
if (argp < (int *)VM_MIN_KERNEL_ADDRESS || argp > (int *)etext)
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.112 1995/03/03 00:43:08 davidg Exp $
|
||||
* $Id: machdep.c,v 1.113 1995/03/07 19:58:02 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -54,6 +54,7 @@
|
||||
#include <sys/callout.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/msgbuf.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/sysent.h>
|
||||
@ -79,9 +80,31 @@
|
||||
#include <sys/exec.h>
|
||||
#include <sys/vnode.h>
|
||||
|
||||
#include <ddb/ddb.h>
|
||||
|
||||
#include <net/netisr.h>
|
||||
|
||||
extern vm_offset_t avail_start, avail_end;
|
||||
/* XXX correctly declaring all the netisr's is painful. */
|
||||
#include <net/if.h>
|
||||
#include <net/route.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/in_systm.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/if_ether.h>
|
||||
#include <netinet/ip_var.h>
|
||||
|
||||
#include <netns/ns.h>
|
||||
#include <netns/ns_if.h>
|
||||
|
||||
#include <netiso/iso.h>
|
||||
#include <netiso/iso_var.h>
|
||||
|
||||
#include <netccitt/dll.h>
|
||||
#include <netccitt/x25.h>
|
||||
#include <netccitt/pk.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <netccitt/pk_var.h>
|
||||
|
||||
#include "ether.h"
|
||||
|
||||
@ -95,6 +118,7 @@ extern vm_offset_t avail_start, avail_end;
|
||||
#include <machine/cons.h>
|
||||
#include <machine/devconf.h>
|
||||
#include <machine/bootinfo.h>
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
@ -160,7 +184,6 @@ cpu_startup()
|
||||
{
|
||||
register unsigned i;
|
||||
register caddr_t v;
|
||||
extern void (*netisrs[32])(void);
|
||||
vm_offset_t maxaddr;
|
||||
vm_size_t size = 0;
|
||||
int firstaddr;
|
||||
@ -193,7 +216,7 @@ cpu_startup()
|
||||
/*
|
||||
* Quickly wire in netisrs.
|
||||
*/
|
||||
#define DONET(isr, n) do { extern void isr(void); netisrs[n] = isr; } while(0)
|
||||
#define DONET(isr, n) do { netisrs[n] = isr; } while(0)
|
||||
#ifdef INET
|
||||
#if NETHER > 0
|
||||
DONET(arpintr, NETISR_ARP);
|
||||
@ -377,8 +400,6 @@ struct cpu_nameclass i386_cpus[] = {
|
||||
static void
|
||||
identifycpu()
|
||||
{
|
||||
extern u_long cpu_id, cpu_high, cpu_feature;
|
||||
extern char cpu_vendor[];
|
||||
printf("CPU: ");
|
||||
if (cpu >= 0
|
||||
&& cpu < (sizeof i386_cpus/sizeof(struct cpu_nameclass))) {
|
||||
@ -482,8 +503,6 @@ identifycpu()
|
||||
}
|
||||
}
|
||||
|
||||
extern char kstack[];
|
||||
|
||||
/*
|
||||
* Send an interrupt to process.
|
||||
*
|
||||
@ -726,7 +745,6 @@ boot(arghowto)
|
||||
register long dummy; /* r12 is reserved */
|
||||
register int howto; /* r11 == how to boot */
|
||||
register int devtype; /* r10 == major of root dev */
|
||||
extern int cold;
|
||||
|
||||
if (cold) {
|
||||
printf("hit reset please");
|
||||
@ -1161,18 +1179,14 @@ void
|
||||
init386(first)
|
||||
int first;
|
||||
{
|
||||
extern char etext[];
|
||||
int x;
|
||||
unsigned biosbasemem, biosextmem;
|
||||
struct gate_descriptor *gdp;
|
||||
int gsel_tss;
|
||||
extern int sigcode,szsigcode;
|
||||
/* table descriptors - used to load tables by microp */
|
||||
struct region_descriptor r_gdt, r_idt;
|
||||
int pagesinbase, pagesinext;
|
||||
int target_page;
|
||||
extern struct pte *CMAP1;
|
||||
extern caddr_t CADDR1;
|
||||
|
||||
proc0.p_addr = proc0paddr;
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.51 1995/03/01 22:08:35 davidg Exp $
|
||||
* $Id: pmap.c,v 1.52 1995/03/10 08:05:00 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -96,6 +96,7 @@
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
#include <machine/cputypes.h>
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <i386/isa/isa.h>
|
||||
|
||||
@ -159,6 +160,7 @@ extern int cpu_class;
|
||||
* All those kernel PT submaps that BSD is so fond of
|
||||
*/
|
||||
pt_entry_t *CMAP1, *CMAP2, *ptmmap;
|
||||
pv_entry_t pv_table;
|
||||
caddr_t CADDR1, CADDR2, ptvmmap;
|
||||
pt_entry_t *msgbufmap;
|
||||
struct msgbuf *msgbufp;
|
||||
@ -392,8 +394,6 @@ pmap_bootstrap(firstaddr, loadaddr)
|
||||
* buffer (contiguous virtual *and* physical memory).
|
||||
*/
|
||||
{
|
||||
extern vm_offset_t isaphysmem;
|
||||
|
||||
isaphysmem = va;
|
||||
|
||||
virtual_avail = pmap_map(va, firstaddr,
|
||||
|
@ -37,7 +37,7 @@
|
||||
* @(#)procfs_machdep.c 8.3 (Berkeley) 1/27/94
|
||||
*
|
||||
* From:
|
||||
* $Id: procfs_machdep.c,v 1.2 1994/05/25 08:54:48 rgrimes Exp $
|
||||
* $Id: procfs_machdep.c,v 1.3 1995/01/14 13:20:09 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -71,15 +71,15 @@
|
||||
#include <sys/time.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/ptrace.h>
|
||||
#include <sys/user.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <machine/psl.h>
|
||||
#include <machine/reg.h>
|
||||
#include <machine/frame.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <miscfs/procfs/procfs.h>
|
||||
|
||||
extern char kstack[]; /* XXX */
|
||||
|
||||
int
|
||||
procfs_read_regs(p, regs)
|
||||
struct proc *p;
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)swapgeneric.c 5.5 (Berkeley) 5/9/91
|
||||
* $Id: swapgeneric.c,v 1.5 1994/12/31 17:11:59 jkh Exp $
|
||||
* $Id: swapgeneric.c,v 1.6 1995/03/02 23:45:49 wpaul Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -45,6 +45,8 @@
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/devconf.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include "wd.h"
|
||||
#include "fd.h"
|
||||
#include "sd.h"
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.47 1995/02/10 06:43:47 davidg Exp $
|
||||
* $Id: trap.c,v 1.48 1995/02/14 19:20:31 sos Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -56,10 +56,12 @@
|
||||
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/psl.h>
|
||||
#include <machine/reg.h>
|
||||
#include <machine/trap.h>
|
||||
@ -302,8 +304,6 @@ trap(frame)
|
||||
*/
|
||||
#define MAYBE_DORETI_FAULT(where, whereto) \
|
||||
do { \
|
||||
extern void where(void) __asm(__STRING(where)); \
|
||||
extern void whereto(void) __asm(__STRING(whereto)); \
|
||||
if (frame.tf_eip == (int)where) { \
|
||||
frame.tf_eip = (int)whereto; \
|
||||
return; \
|
||||
@ -398,7 +398,6 @@ trap_pfault(frame, usermode)
|
||||
vm_map_t map = 0;
|
||||
int rv = 0;
|
||||
vm_prot_t ftype;
|
||||
extern vm_map_t kernel_map;
|
||||
int eva;
|
||||
struct proc *p = curproc;
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.29 1994/12/30 12:43:34 bde Exp $
|
||||
* $Id: clock.c,v 1.31 1995/01/19 22:05:27 ats Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -55,6 +55,7 @@
|
||||
#include <machine/frame.h>
|
||||
#include <i386/isa/icu.h>
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/rtc.h>
|
||||
#include <i386/isa/timerreg.h>
|
||||
|
||||
@ -558,8 +559,9 @@ cpu_initclocks()
|
||||
profhz = RTC_PROFRATE;
|
||||
|
||||
/* Finish initializing 8253 timer 0. */
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0, clkintr,
|
||||
&clk_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)clkintr, &clk_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ0);
|
||||
|
||||
/* Initialize RTC. */
|
||||
@ -568,8 +570,9 @@ cpu_initclocks()
|
||||
diag = rtcin(RTC_DIAG);
|
||||
if (diag != 0)
|
||||
printf("RTC BIOS diagnostic error %b\n", diag, RTCDG_BITS);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0, rtcintr,
|
||||
&stat_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)rtcintr, &stat_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ8);
|
||||
writertc(RTC_STATUSB, RTCSB_24HR | RTCSB_PINTR);
|
||||
}
|
||||
|
@ -38,13 +38,15 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: userconfig.c,v 1.20 1995/03/02 20:07:05 dufault Exp $
|
||||
* $Id: userconfig.c,v 1.21 1995/03/12 13:25:51 ugen Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/malloc.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <i386/i386/cons.h>
|
||||
|
||||
#include <i386/isa/isa_device.h>
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
|
||||
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
|
||||
* $Id: vm_machdep.c,v 1.32 1995/02/20 22:23:31 davidg Exp $
|
||||
* $Id: vm_machdep.c,v 1.33 1995/03/01 23:59:21 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -51,6 +51,7 @@
|
||||
#include <sys/user.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_kern.h>
|
||||
@ -546,8 +547,6 @@ cpu_fork(p1, p2)
|
||||
{
|
||||
register struct user *up = p2->p_addr;
|
||||
int offset;
|
||||
extern char kstack[];
|
||||
extern int mvesp();
|
||||
|
||||
/*
|
||||
* Copy pcb and stack from proc p1 to p2.
|
||||
|
@ -48,13 +48,6 @@
|
||||
#include <sys/cdefs.h>
|
||||
#include <machine/frame.h>
|
||||
|
||||
/*
|
||||
* Kernel to clock driver interface.
|
||||
*/
|
||||
void inittodr __P((time_t base));
|
||||
void resettodr __P((void));
|
||||
void startrtclock __P((void));
|
||||
|
||||
/*
|
||||
* i386 to clock driver interface.
|
||||
* XXX almost all of it is misplaced. i586 stuff is done in isa/clock.c
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)frame.h 5.2 (Berkeley) 1/18/91
|
||||
* $Id: frame.h,v 1.7 1994/01/03 07:55:32 davidg Exp $
|
||||
* $Id: frame.h,v 1.9 1994/05/25 08:56:02 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_FRAME_H_
|
||||
@ -72,8 +72,6 @@ struct trapframe {
|
||||
int tf_ss;
|
||||
};
|
||||
|
||||
extern int kdb_trap(int, int, struct trapframe *);
|
||||
|
||||
/* Interrupt stack frame */
|
||||
|
||||
struct intrframe {
|
||||
@ -137,4 +135,8 @@ struct sigframe {
|
||||
sig_t sf_handler;
|
||||
struct sigcontext sf_sc;
|
||||
};
|
||||
|
||||
int kdb_trap __P((int, int, struct trapframe *));
|
||||
int math_emulate __P((struct trapframe * info));
|
||||
|
||||
#endif /* _MACHINE_FRAME_H_ */
|
||||
|
68
sys/i386/include/md_var.h
Normal file
68
sys/i386/include/md_var.h
Normal file
@ -0,0 +1,68 @@
|
||||
/*-
|
||||
* Copyright (c) 1995 Bruce D. Evans.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the author nor the names of contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_MD_VAR_H_
|
||||
#define _MACHINE_MD_VAR_H_
|
||||
|
||||
/*
|
||||
* Miscellaneous machine-dependent declarations.
|
||||
*/
|
||||
|
||||
extern int Maxmem;
|
||||
extern u_long cpu_feature;
|
||||
extern u_long cpu_high;
|
||||
extern u_long cpu_id;
|
||||
extern char cpu_vendor[];
|
||||
extern char etext[];
|
||||
extern vm_offset_t isaphysmem;
|
||||
extern char kstack[];
|
||||
extern void (*netisrs[32]) __P((void));
|
||||
extern int nfs_diskless_valid;
|
||||
extern int sigcode;
|
||||
extern int szsigcode;
|
||||
|
||||
struct proc;
|
||||
struct reg;
|
||||
|
||||
void configure __P((void));
|
||||
void cpu_reset __P((void));
|
||||
void doreti_iret __P((void)) __asm(__STRING(doreti_iret));
|
||||
void doreti_iret_fault __P((void)) __asm(__STRING(doreti_iret_fault));
|
||||
void doreti_popl_ds __P((void)) __asm(__STRING(doreti_popl_ds));
|
||||
void doreti_popl_ds_fault __P((void)) __asm(__STRING(doreti_popl_ds_fault));
|
||||
void doreti_popl_es __P((void)) __asm(__STRING(doreti_popl_es));
|
||||
void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault));
|
||||
int fill_regs __P((struct proc *p, struct reg *regs));
|
||||
int mvesp __P((void));
|
||||
void setconf __P((void));
|
||||
void userconfig __P((void));
|
||||
|
||||
#endif /* !_MACHINE_MD_VAR_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.22 1995/02/14 06:55:42 phk Exp $
|
||||
* $Id: pmap.h,v 1.23 1995/02/14 06:57:45 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_PMAP_H_
|
||||
@ -190,7 +190,14 @@ typedef struct pv_entry {
|
||||
|
||||
#ifdef KERNEL
|
||||
|
||||
pv_entry_t pv_table; /* array of entries, one per page */
|
||||
extern caddr_t CADDR1;
|
||||
extern pt_entry_t *CMAP1;
|
||||
extern vm_offset_t avail_end;
|
||||
extern vm_offset_t avail_start;
|
||||
extern vm_offset_t phys_avail[6];
|
||||
extern pv_entry_t pv_table; /* array of entries, one per page */
|
||||
extern vm_offset_t virtual_avail;
|
||||
extern vm_offset_t virtual_end;
|
||||
|
||||
#define pa_index(pa) atop(pa - vm_first_phys)
|
||||
#define pa_to_pvh(pa) (&pv_table[pa_index(pa)])
|
||||
|
@ -12,7 +12,7 @@
|
||||
* on the understanding that TFS is not responsible for the correct
|
||||
* functioning of this software in any circumstances.
|
||||
*
|
||||
* $Id: bt742a.c,v 1.29 1994/10/23 21:27:10 wollman Exp $
|
||||
* $Id: bt742a.c,v 1.30 1994/11/08 02:53:42 jkh Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -48,6 +48,8 @@
|
||||
#include <sys/user.h>
|
||||
#endif /* KERNEL */
|
||||
|
||||
#include <machine/clock.h>
|
||||
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <scsi/scsi_all.h>
|
||||
#include <scsi/scsiconf.h>
|
||||
@ -395,7 +397,9 @@ int btprobe();
|
||||
int btattach();
|
||||
int btintr();
|
||||
int32 bt_scsi_cmd();
|
||||
int bt_poll __P((int unit, struct scsi_xfer *xs, struct bt_ccb *ccb));
|
||||
void bt_timeout(void *);
|
||||
int bt_init __P((int unit));
|
||||
void bt_inquire_setup_information();
|
||||
void bt_done();
|
||||
void btminphys();
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.29 1994/12/30 12:43:34 bde Exp $
|
||||
* $Id: clock.c,v 1.31 1995/01/19 22:05:27 ats Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -55,6 +55,7 @@
|
||||
#include <machine/frame.h>
|
||||
#include <i386/isa/icu.h>
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/rtc.h>
|
||||
#include <i386/isa/timerreg.h>
|
||||
|
||||
@ -558,8 +559,9 @@ cpu_initclocks()
|
||||
profhz = RTC_PROFRATE;
|
||||
|
||||
/* Finish initializing 8253 timer 0. */
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0, clkintr,
|
||||
&clk_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)clkintr, &clk_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ0);
|
||||
|
||||
/* Initialize RTC. */
|
||||
@ -568,8 +570,9 @@ cpu_initclocks()
|
||||
diag = rtcin(RTC_DIAG);
|
||||
if (diag != 0)
|
||||
printf("RTC BIOS diagnostic error %b\n", diag, RTCDG_BITS);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0, rtcintr,
|
||||
&stat_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)rtcintr, &stat_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ8);
|
||||
writertc(RTC_STATUSB, RTCSB_24HR | RTCSB_PINTR);
|
||||
}
|
||||
|
@ -43,7 +43,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.52 1995/02/26 01:37:51 bde Exp $
|
||||
* $Id: fd.c,v 1.53 1995/03/12 22:40:56 joerg Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -289,6 +289,7 @@ static timeout_t fd_turnoff;
|
||||
static timeout_t fd_motor_on;
|
||||
static void fd_turnon(fdu_t);
|
||||
static void fdc_reset(fdc_p);
|
||||
static int fd_in(fdcu_t, int *);
|
||||
static void fdstart(fdcu_t);
|
||||
static timeout_t fd_timeout;
|
||||
static timeout_t fd_pseudointr;
|
||||
@ -477,9 +478,19 @@ int
|
||||
fd_read_status(fdc_p fdc, int fdsu)
|
||||
{
|
||||
int i, ret;
|
||||
|
||||
for (i = 0; i < 7; i++)
|
||||
{
|
||||
if ((ret = fd_in(fdc->fdcu, fdc->status + i)))
|
||||
/*
|
||||
* XXX types are poorly chosen. Only bytes can by read
|
||||
* from the hardware, but fdc_status wants u_longs and
|
||||
* fd_in() gives ints.
|
||||
*/
|
||||
int status;
|
||||
|
||||
ret = fd_in(fdc->fdcu, &status);
|
||||
fdc->status[i] = status;
|
||||
if (ret != 0)
|
||||
break;
|
||||
}
|
||||
|
||||
@ -854,7 +865,7 @@ in_fdc(fdcu_t fdcu)
|
||||
/*
|
||||
* fd_in: Like in_fdc, but allows you to see if it worked.
|
||||
*/
|
||||
int
|
||||
static int
|
||||
fd_in(fdcu_t fdcu, int *ptr)
|
||||
{
|
||||
int baseport = fdc_data[fdcu].baseport;
|
||||
|
@ -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.66 1995/02/25 15:56:00 davidg Exp $
|
||||
* $Id: if_ed.c,v 1.67 1995/02/26 20:03:53 davidg Exp $
|
||||
*/
|
||||
|
||||
#include "ed.h"
|
||||
@ -50,6 +50,8 @@
|
||||
#include <net/bpfdesc.h>
|
||||
#endif
|
||||
|
||||
#include <machine/clock.h>
|
||||
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/icu.h>
|
||||
|
@ -46,7 +46,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: unknown origin, 386BSD 0.1
|
||||
* $Id: lpt.c,v 1.25 1995/02/26 05:14:50 bde Exp $
|
||||
* $Id: lpt.c,v 1.26 1995/02/26 21:41:41 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -114,6 +114,7 @@
|
||||
#include <sys/syslog.h>
|
||||
#include <sys/devconf.h>
|
||||
|
||||
#include <machine/clock.h>
|
||||
#include <machine/lpt.h>
|
||||
|
||||
#include <i386/isa/isa.h>
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.69 1995/02/28 00:20:54 pst Exp $
|
||||
* $Id: sio.c,v 1.70 1995/02/28 23:21:33 ache Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
@ -313,10 +313,9 @@ struct tty *sio_tty[NSIO];
|
||||
#else
|
||||
struct tty sio_tty[NSIO];
|
||||
#endif
|
||||
extern struct tty *constty; /* XXX */
|
||||
|
||||
#ifdef KGDB
|
||||
#include "machine/remote-sl.h"
|
||||
#include <machine/remote-sl.h>
|
||||
|
||||
extern int kgdb_dev;
|
||||
extern int kgdb_rate;
|
||||
@ -1955,7 +1954,7 @@ comwakeup(chan)
|
||||
/*
|
||||
* Following are all routines needed for SIO to act as console
|
||||
*/
|
||||
#include "i386/i386/cons.h"
|
||||
#include <i386/i386/cons.h>
|
||||
|
||||
struct siocnstate {
|
||||
u_char dlbl;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
|
||||
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
|
||||
*
|
||||
* $Id: spkr.c,v 1.10 1994/10/14 16:37:58 ache Exp $
|
||||
* $Id: spkr.c,v 1.11 1995/02/03 10:19:38 ache Exp $
|
||||
*/
|
||||
|
||||
#include "speaker.h"
|
||||
@ -16,9 +16,11 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/uio.h>
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/timerreg.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/speaker.h>
|
||||
|
||||
/**************** MACHINE DEPENDENT PART STARTS HERE *************************
|
||||
|
@ -22,7 +22,7 @@
|
||||
* today: Fri Jun 2 17:21:03 EST 1994
|
||||
* added 24F support ++sg
|
||||
*
|
||||
* $Id: ultra14f.c,v 1.26 1994/10/23 21:27:38 wollman Exp $
|
||||
* $Id: ultra14f.c,v 1.27 1995/01/07 23:23:40 ats Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -40,6 +40,8 @@
|
||||
#include <sys/user.h>
|
||||
#include <sys/devconf.h>
|
||||
|
||||
#include <machine/clock.h>
|
||||
|
||||
#include <i386/isa/isa_device.h>
|
||||
#endif /*KERNEL */
|
||||
#include <scsi/scsi_all.h>
|
||||
@ -271,6 +273,8 @@ void uhaminphys();
|
||||
void uha_done();
|
||||
u_int32 uha_adapter_info();
|
||||
struct mscp *uha_mscp_phys_kv();
|
||||
int uha_init __P((int unit));
|
||||
int uha24_init __P((int unit));
|
||||
|
||||
struct mscp *cheat;
|
||||
unsigned long int scratch;
|
||||
|
@ -37,7 +37,7 @@ static int wdtest = 0;
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: wd.c,v 1.67 1995/02/27 06:42:35 davidg Exp $
|
||||
* $Id: wd.c,v 1.68 1995/03/06 05:40:44 davidg Exp $
|
||||
*/
|
||||
|
||||
/* TODO:
|
||||
@ -81,6 +81,8 @@ static int wdtest = 0;
|
||||
#include <sys/devconf.h>
|
||||
#include <machine/bootinfo.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <i386/i386/cons.h>
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/wdreg.h>
|
||||
@ -1616,9 +1618,7 @@ wddump(dev_t dev)
|
||||
long cylin, head, sector;
|
||||
long secpertrk, secpercyl, nblocks;
|
||||
char *addr;
|
||||
extern int Maxmem;
|
||||
static int wddoingadump = 0;
|
||||
extern caddr_t CADDR1;
|
||||
|
||||
/* Toss any characters present prior to dump. */
|
||||
while (cncheckc())
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.29 1994/12/30 12:43:34 bde Exp $
|
||||
* $Id: clock.c,v 1.31 1995/01/19 22:05:27 ats Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -55,6 +55,7 @@
|
||||
#include <machine/frame.h>
|
||||
#include <i386/isa/icu.h>
|
||||
#include <i386/isa/isa.h>
|
||||
#include <i386/isa/isa_device.h>
|
||||
#include <i386/isa/rtc.h>
|
||||
#include <i386/isa/timerreg.h>
|
||||
|
||||
@ -558,8 +559,9 @@ cpu_initclocks()
|
||||
profhz = RTC_PROFRATE;
|
||||
|
||||
/* Finish initializing 8253 timer 0. */
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0, clkintr,
|
||||
&clk_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)clkintr, &clk_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ0);
|
||||
|
||||
/* Initialize RTC. */
|
||||
@ -568,8 +570,9 @@ cpu_initclocks()
|
||||
diag = rtcin(RTC_DIAG);
|
||||
if (diag != 0)
|
||||
printf("RTC BIOS diagnostic error %b\n", diag, RTCDG_BITS);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0, rtcintr,
|
||||
&stat_imask, /* unit */ 0);
|
||||
register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0,
|
||||
/* XXX */ (inthand2_t *)rtcintr, &stat_imask,
|
||||
/* unit */ 0);
|
||||
INTREN(IRQ8);
|
||||
writertc(RTC_STATUSB, RTCSB_24HR | RTCSB_PINTR);
|
||||
}
|
||||
|
17
sys/isa/fd.c
17
sys/isa/fd.c
@ -43,7 +43,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.52 1995/02/26 01:37:51 bde Exp $
|
||||
* $Id: fd.c,v 1.53 1995/03/12 22:40:56 joerg Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -289,6 +289,7 @@ static timeout_t fd_turnoff;
|
||||
static timeout_t fd_motor_on;
|
||||
static void fd_turnon(fdu_t);
|
||||
static void fdc_reset(fdc_p);
|
||||
static int fd_in(fdcu_t, int *);
|
||||
static void fdstart(fdcu_t);
|
||||
static timeout_t fd_timeout;
|
||||
static timeout_t fd_pseudointr;
|
||||
@ -477,9 +478,19 @@ int
|
||||
fd_read_status(fdc_p fdc, int fdsu)
|
||||
{
|
||||
int i, ret;
|
||||
|
||||
for (i = 0; i < 7; i++)
|
||||
{
|
||||
if ((ret = fd_in(fdc->fdcu, fdc->status + i)))
|
||||
/*
|
||||
* XXX types are poorly chosen. Only bytes can by read
|
||||
* from the hardware, but fdc_status wants u_longs and
|
||||
* fd_in() gives ints.
|
||||
*/
|
||||
int status;
|
||||
|
||||
ret = fd_in(fdc->fdcu, &status);
|
||||
fdc->status[i] = status;
|
||||
if (ret != 0)
|
||||
break;
|
||||
}
|
||||
|
||||
@ -854,7 +865,7 @@ in_fdc(fdcu_t fdcu)
|
||||
/*
|
||||
* fd_in: Like in_fdc, but allows you to see if it worked.
|
||||
*/
|
||||
int
|
||||
static int
|
||||
fd_in(fdcu_t fdcu, int *ptr)
|
||||
{
|
||||
int baseport = fdc_data[fdcu].baseport;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.69 1995/02/28 00:20:54 pst Exp $
|
||||
* $Id: sio.c,v 1.70 1995/02/28 23:21:33 ache Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
@ -313,10 +313,9 @@ struct tty *sio_tty[NSIO];
|
||||
#else
|
||||
struct tty sio_tty[NSIO];
|
||||
#endif
|
||||
extern struct tty *constty; /* XXX */
|
||||
|
||||
#ifdef KGDB
|
||||
#include "machine/remote-sl.h"
|
||||
#include <machine/remote-sl.h>
|
||||
|
||||
extern int kgdb_dev;
|
||||
extern int kgdb_rate;
|
||||
@ -1955,7 +1954,7 @@ comwakeup(chan)
|
||||
/*
|
||||
* Following are all routines needed for SIO to act as console
|
||||
*/
|
||||
#include "i386/i386/cons.h"
|
||||
#include <i386/i386/cons.h>
|
||||
|
||||
struct siocnstate {
|
||||
u_char dlbl;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)cd9660_node.c 8.2 (Berkeley) 1/23/94
|
||||
* $Id: cd9660_node.c,v 1.8 1995/01/16 17:03:24 joerg Exp $
|
||||
* $Id: cd9660_node.c,v 1.9 1995/02/21 18:41:30 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -80,8 +80,6 @@ union iso_dhead {
|
||||
} iso_dhead[DNOHSZ];
|
||||
#endif
|
||||
|
||||
int prtactive; /* 1 => print out reclaim of active vnodes */
|
||||
|
||||
/*
|
||||
* Initialize hash links for inodes and dnodes.
|
||||
*/
|
||||
@ -289,11 +287,8 @@ loop:
|
||||
vp->v_type = IFTOVT(ip->inode.iso_mode);
|
||||
|
||||
if ( vp->v_type == VFIFO ) {
|
||||
extern int (**cd9660_fifoop_p)();
|
||||
vp->v_op = cd9660_fifoop_p;
|
||||
} else if ( vp->v_type == VCHR || vp->v_type == VBLK ) {
|
||||
extern int (**cd9660_specop_p)();
|
||||
|
||||
/*
|
||||
* if device, look at device number table for translation
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)cd9660_node.h 8.2 (Berkeley) 1/23/94
|
||||
* $Id: cd9660_node.h,v 1.3 1994/09/15 19:46:00 bde Exp $
|
||||
* $Id: cd9660_node.h,v 1.4 1995/01/16 17:03:25 joerg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -111,6 +111,9 @@ struct iso_node {
|
||||
#define ISO_ILOCK(ip) iso_ilock(ip)
|
||||
#define ISO_IUNLOCK(ip) iso_iunlock(ip)
|
||||
|
||||
extern int (**cd9660_fifoop_p)();
|
||||
extern int (**cd9660_specop_p)();
|
||||
|
||||
/*
|
||||
* Prototypes for ISOFS vnode operations
|
||||
*/
|
||||
|
@ -28,7 +28,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_aout.c,v 1.10 1995/02/14 19:22:27 sos Exp $
|
||||
* $Id: imgact_aout.c,v 1.11 1995/02/20 22:23:03 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -52,7 +52,6 @@ exec_aout_imgact(iparams)
|
||||
unsigned long vmaddr, virtual_offset, file_offset;
|
||||
unsigned long bss_size;
|
||||
int error;
|
||||
extern struct sysentvec aout_sysvec;
|
||||
|
||||
#ifdef COMPAT_LINUX
|
||||
/*
|
||||
|
@ -6,7 +6,7 @@
|
||||
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
* $Id: imgact_gzip.c,v 1.11 1995/02/13 07:40:33 phk Exp $
|
||||
* $Id: imgact_gzip.c,v 1.12 1995/02/20 22:23:07 davidg Exp $
|
||||
*
|
||||
* This module handles execution of a.out files which have been run through
|
||||
* "gzip". This saves diskspace, but wastes cpu-cycles and VM.
|
||||
@ -52,8 +52,6 @@ static int NextByte __P((void *vp));
|
||||
static int do_aout_hdr __P((struct imgact_gzip *));
|
||||
static int Flush __P((void *vp, u_char *, u_long siz));
|
||||
|
||||
extern struct sysentvec aout_sysvec;
|
||||
|
||||
int
|
||||
exec_gzip_imgact(iparams)
|
||||
struct image_params *iparams;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
|
||||
* $Id: init_main.c,v 1.17 1994/11/25 07:58:16 davidg Exp $
|
||||
* $Id: init_main.c,v 1.18 1995/02/20 22:23:09 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -44,6 +44,9 @@
|
||||
#include <sys/errno.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/kernel.h>
|
||||
#ifdef GPROF
|
||||
#include <sys/gmon.h>
|
||||
#endif
|
||||
#include <sys/mount.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/resourcevar.h>
|
||||
@ -64,6 +67,7 @@
|
||||
#include <machine/cpu.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_pageout.h>
|
||||
|
||||
#ifdef HPFPLIB
|
||||
char copyright[] =
|
||||
@ -125,10 +129,6 @@ main(framep)
|
||||
register struct filedesc0 *fdp;
|
||||
register int i;
|
||||
int s, rval[2];
|
||||
extern int (*mountroot) __P((void));
|
||||
extern void roundrobin __P((void *));
|
||||
extern void schedcpu __P((void *));
|
||||
extern struct sysentvec aout_sysvec;
|
||||
|
||||
/*
|
||||
* Initialize the current process pointer (curproc) before
|
||||
@ -445,7 +445,7 @@ start_init(p, framep)
|
||||
* Now try to exec the program. If can't for any reason
|
||||
* other than it doesn't exist, complain.
|
||||
*/
|
||||
if ((error = execve(p, &args, &retval)) == 0)
|
||||
if ((error = execve(p, &args, &retval[0])) == 0)
|
||||
return;
|
||||
if (error != ENOENT)
|
||||
printf("exec %s: error %d\n", path, error);
|
||||
|
@ -2,11 +2,10 @@
|
||||
* System call switch table.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: syscalls.master,v 1.12 1994/12/14 17:57:23 wollman Exp $
|
||||
* created from $Id: syscalls.master,v 1.13 1995/03/04 03:24:26 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysent.h>
|
||||
|
||||
int nosys();
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
|
||||
* $Id: kern_clock.c,v 1.10 1994/10/16 03:52:12 wollman Exp $
|
||||
* $Id: kern_clock.c,v 1.11 1994/12/12 11:58:46 bde Exp $
|
||||
*/
|
||||
|
||||
/* Portions of this software are covered by the following: */
|
||||
@ -415,8 +415,6 @@ hardclock(frame)
|
||||
register struct callout *p1;
|
||||
register struct proc *p;
|
||||
register int needsoft;
|
||||
extern int tickdelta;
|
||||
extern long timedelta;
|
||||
|
||||
/*
|
||||
* Update real-time timeout queue.
|
||||
|
@ -28,7 +28,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kern_exec.c,v 1.14 1995/03/01 04:09:50 davidg Exp $
|
||||
* $Id: kern_exec.c,v 1.15 1995/03/10 08:44:20 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -60,7 +60,6 @@ static int exec_check_permissions(struct image_params *);
|
||||
* execsw_set is constructed for us by the linker. Each of the items
|
||||
* is a pointer to a `const struct execsw', hence the double pointer here.
|
||||
*/
|
||||
extern const struct linker_set execsw_set;
|
||||
const struct execsw **execsw = (const struct execsw **)&execsw_set.ls_items[0];
|
||||
|
||||
/*
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_exit.c 8.7 (Berkeley) 2/12/94
|
||||
* $Id: kern_exit.c,v 1.12 1994/10/27 05:21:39 phk Exp $
|
||||
* $Id: kern_exit.c,v 1.13 1994/12/28 06:15:07 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -281,16 +281,6 @@ done:
|
||||
cpu_exit(p);
|
||||
}
|
||||
|
||||
struct wait_args {
|
||||
int pid;
|
||||
int *status;
|
||||
int options;
|
||||
struct rusage *rusage;
|
||||
#if defined(COMPAT_43) || defined(COMPAT_IBCS2)
|
||||
int compat; /* pseudo */
|
||||
#endif
|
||||
};
|
||||
|
||||
#if defined(COMPAT_43) || defined(COMPAT_IBCS2)
|
||||
#if defined(hp300) || defined(luna68k)
|
||||
#include <machine/frame.h>
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_fork.c 8.6 (Berkeley) 4/8/94
|
||||
* $Id: kern_fork.c,v 1.9 1994/10/10 01:00:43 phk Exp $
|
||||
* $Id: kern_fork.c,v 1.10 1995/01/21 15:08:57 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -55,9 +55,6 @@
|
||||
|
||||
static int fork1(struct proc *, int, int *);
|
||||
|
||||
struct fork_args {
|
||||
int dummy;
|
||||
};
|
||||
/* ARGSUSED */
|
||||
int
|
||||
fork(p, uap, retval)
|
||||
|
@ -496,7 +496,6 @@ _lkm_syscall(lkmtp, cmd)
|
||||
struct lkm_syscall *args = lkmtp->private.lkm_syscall;
|
||||
int i;
|
||||
int err = 0;
|
||||
extern struct sysentvec aout_sysvec;
|
||||
|
||||
switch(cmd) {
|
||||
case LKM_E_LOAD:
|
||||
@ -566,7 +565,6 @@ _lkm_vfs(lkmtp, cmd)
|
||||
{
|
||||
struct lkm_vfs *args = lkmtp->private.lkm_vfs;
|
||||
struct vfsconf *vfc = args->lkm_vfsconf;
|
||||
extern struct vfsconf void_vfsconf;
|
||||
int i;
|
||||
int err = 0;
|
||||
|
||||
@ -791,7 +789,6 @@ _lkm_exec(lkmtp, cmd)
|
||||
struct lkm_exec *args = lkmtp->private.lkm_exec;
|
||||
int i;
|
||||
int err = 0;
|
||||
extern const struct linker_set execsw_set;
|
||||
const struct execsw **execsw =
|
||||
(const struct execsw **)&execsw_set.ls_items[0];
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
* 4. Modifications may be freely made to this file if the above conditions
|
||||
* are met.
|
||||
*
|
||||
* $Id: kern_physio.c,v 1.8 1994/09/25 19:33:40 phk Exp $
|
||||
* $Id: kern_physio.c,v 1.9 1995/01/09 16:04:51 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -30,7 +30,7 @@ static void physwakeup();
|
||||
|
||||
int
|
||||
physio(strategy, bp, dev, rw, minp, uio)
|
||||
int (*strategy)();
|
||||
d_strategy_t *strategy;
|
||||
struct buf *bp;
|
||||
dev_t dev;
|
||||
int rw;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_sig.c 8.7 (Berkeley) 4/18/94
|
||||
* $Id: kern_sig.c,v 1.8 1994/11/06 11:13:02 ache Exp $
|
||||
* $Id: kern_sig.c,v 1.9 1995/01/29 01:19:12 ats Exp $
|
||||
*/
|
||||
|
||||
#define SIGPROP /* include signal properties table */
|
||||
@ -65,7 +65,6 @@
|
||||
|
||||
void setsigvec __P((struct proc *, int, struct sigaction *));
|
||||
void stop __P((struct proc *));
|
||||
void sigexit __P((struct proc *, int));
|
||||
|
||||
/*
|
||||
* Can process p, with pcred pc, send the signal signum to process q?
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_synch.c 8.6 (Berkeley) 1/21/94
|
||||
* $Id: kern_synch.c,v 1.8 1994/10/18 06:55:39 davidg Exp $
|
||||
* $Id: kern_synch.c,v 1.9 1994/12/12 06:04:27 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -57,6 +57,8 @@
|
||||
u_char curpriority; /* usrpri of curproc */
|
||||
int lbolt; /* once a second sleep address */
|
||||
|
||||
void endtsleep __P((void *));
|
||||
|
||||
/*
|
||||
* Force switch among equal priority processes every 100ms.
|
||||
*/
|
||||
@ -287,8 +289,6 @@ tsleep(ident, priority, wmesg, timo)
|
||||
register struct slpque *qp;
|
||||
register s;
|
||||
int sig, catch = priority & PCATCH;
|
||||
extern int cold;
|
||||
void endtsleep __P((void *));
|
||||
|
||||
#ifdef KTRACE
|
||||
if (KTRPOINT(p, KTR_CSW))
|
||||
@ -415,7 +415,6 @@ sleep(ident, priority)
|
||||
register struct proc *p = curproc;
|
||||
register struct slpque *qp;
|
||||
register s;
|
||||
extern int cold;
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (priority > PZERO) {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
|
||||
* $Id: kern_sysctl.c,v 1.21 1994/12/28 06:15:08 davidg Exp $
|
||||
* $Id: kern_sysctl.c,v 1.22 1995/02/20 19:42:35 guido Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -192,7 +192,6 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
struct proc *p;
|
||||
{
|
||||
int error, level, inthostid;
|
||||
extern char ostype[], osrelease[];
|
||||
|
||||
/* all sysctl names at this level are terminal */
|
||||
if (namelen != 1 && !(name[0] == KERN_PROC || name[0] == KERN_PROF
|
||||
@ -313,9 +312,6 @@ hw_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
size_t newlen;
|
||||
struct proc *p;
|
||||
{
|
||||
extern char machine[], cpu_model[];
|
||||
extern int hw_float;
|
||||
|
||||
/* almost all sysctl names at this level are terminal */
|
||||
if (namelen != 1 && name[0] != HW_DEVCONF)
|
||||
return (ENOTDIR); /* overloaded */
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
|
||||
* $Id: kern_clock.c,v 1.10 1994/10/16 03:52:12 wollman Exp $
|
||||
* $Id: kern_clock.c,v 1.11 1994/12/12 11:58:46 bde Exp $
|
||||
*/
|
||||
|
||||
/* Portions of this software are covered by the following: */
|
||||
@ -415,8 +415,6 @@ hardclock(frame)
|
||||
register struct callout *p1;
|
||||
register struct proc *p;
|
||||
register int needsoft;
|
||||
extern int tickdelta;
|
||||
extern long timedelta;
|
||||
|
||||
/*
|
||||
* Update real-time timeout queue.
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_time.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: kern_time.c,v 1.5 1994/10/02 17:35:20 phk Exp $
|
||||
* $Id: kern_time.c,v 1.6 1995/02/14 06:33:53 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -43,7 +43,6 @@
|
||||
#include <sys/vnode.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/clock.h>
|
||||
|
||||
/*
|
||||
* Time of day and interval timer support.
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
|
||||
* $Id: kern_clock.c,v 1.10 1994/10/16 03:52:12 wollman Exp $
|
||||
* $Id: kern_clock.c,v 1.11 1994/12/12 11:58:46 bde Exp $
|
||||
*/
|
||||
|
||||
/* Portions of this software are covered by the following: */
|
||||
@ -415,8 +415,6 @@ hardclock(frame)
|
||||
register struct callout *p1;
|
||||
register struct proc *p;
|
||||
register int needsoft;
|
||||
extern int tickdelta;
|
||||
extern long timedelta;
|
||||
|
||||
/*
|
||||
* Update real-time timeout queue.
|
||||
|
@ -1,6 +1,6 @@
|
||||
#! /bin/sh -
|
||||
# @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93
|
||||
# $Id: makesyscalls.sh,v 1.10 1994/11/06 21:57:16 ats Exp $
|
||||
# $Id: makesyscalls.sh,v 1.11 1995/02/14 19:22:29 sos Exp $
|
||||
|
||||
set -e
|
||||
|
||||
@ -55,7 +55,6 @@ awk < $1 "
|
||||
NR == 1 {
|
||||
printf " * created from%s\n */\n\n", $0 > sysdcl
|
||||
printf "#include <sys/param.h>\n" > sysdcl
|
||||
printf "#include <sys/systm.h>\n" > sysdcl
|
||||
printf "#include <sys/sysent.h>\n\n" > sysdcl
|
||||
|
||||
printf "struct sysent sysent[] = {\n" > sysent
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
|
||||
* $Id: subr_prf.c,v 1.9 1994/12/30 12:17:42 bde Exp $
|
||||
* $Id: subr_prf.c,v 1.10 1995/02/19 15:02:26 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -491,7 +491,6 @@ putchar(c, flags, tp)
|
||||
int flags;
|
||||
struct tty *tp;
|
||||
{
|
||||
extern int msgbufmapped;
|
||||
register struct msgbuf *mbp;
|
||||
|
||||
if (panicstr)
|
||||
|
@ -31,14 +31,17 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)subr_prof.c 8.3 (Berkeley) 9/23/93
|
||||
* $Id: subr_prof.c,v 1.4 1994/09/21 21:58:39 bde Exp $
|
||||
* $Id: subr_prof.c,v 1.5 1995/01/29 03:03:23 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
#include <vm/vm.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/user.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
|
||||
#ifdef GPROF
|
||||
|
@ -54,7 +54,7 @@
|
||||
* functioning of this software, nor does the author assume any responsibility
|
||||
* for damages incurred with its use.
|
||||
*
|
||||
* $Id: subr_rlist.c,v 1.7 1994/10/02 17:35:23 phk Exp $
|
||||
* $Id: subr_rlist.c,v 1.8 1995/01/31 06:48:53 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -64,10 +64,9 @@
|
||||
#include <sys/rlist.h>
|
||||
#include <sys/proc.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_map.h>
|
||||
|
||||
extern vm_map_t kernel_map;
|
||||
|
||||
/*
|
||||
* Resource lists.
|
||||
*/
|
||||
@ -83,7 +82,6 @@ rlist_malloc()
|
||||
struct rlist *rl;
|
||||
int i;
|
||||
while( rlist_count < RLIST_MIN) {
|
||||
extern vm_map_t kmem_map;
|
||||
int s = splhigh();
|
||||
rl = (struct rlist *)kmem_malloc(kmem_map, NBPG, M_WAITOK);
|
||||
splx(s);
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.47 1995/02/10 06:43:47 davidg Exp $
|
||||
* $Id: trap.c,v 1.48 1995/02/14 19:20:31 sos Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -56,10 +56,12 @@
|
||||
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/psl.h>
|
||||
#include <machine/reg.h>
|
||||
#include <machine/trap.h>
|
||||
@ -302,8 +304,6 @@ trap(frame)
|
||||
*/
|
||||
#define MAYBE_DORETI_FAULT(where, whereto) \
|
||||
do { \
|
||||
extern void where(void) __asm(__STRING(where)); \
|
||||
extern void whereto(void) __asm(__STRING(whereto)); \
|
||||
if (frame.tf_eip == (int)where) { \
|
||||
frame.tf_eip = (int)whereto; \
|
||||
return; \
|
||||
@ -398,7 +398,6 @@ trap_pfault(frame, usermode)
|
||||
vm_map_t map = 0;
|
||||
int rv = 0;
|
||||
vm_prot_t ftype;
|
||||
extern vm_map_t kernel_map;
|
||||
int eva;
|
||||
struct proc *p = curproc;
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: sys_process.c,v 1.10 1995/02/16 00:41:16 davidg Exp $
|
||||
* $Id: sys_process.c,v 1.11 1995/02/19 02:50:31 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -304,7 +304,7 @@ ptrace(curp, uap, retval)
|
||||
|
||||
if (uap->addr != (caddr_t)1) {
|
||||
fill_eproc (p, &p->p_addr->u_kproc.kp_eproc);
|
||||
if ((error = ptrace_set_pc (p, uap->addr)))
|
||||
if ((error = ptrace_set_pc (p, (u_int)uap->addr)))
|
||||
return error;
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* System call names.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: syscalls.master,v 1.12 1994/12/14 17:57:23 wollman Exp $
|
||||
* created from $Id: syscalls.master,v 1.13 1995/03/04 03:24:26 davidg Exp $
|
||||
*/
|
||||
|
||||
char *syscallnames[] = {
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tty.c 8.8 (Berkeley) 1/21/94
|
||||
* $Id: tty.c,v 1.34 1995/02/28 00:21:03 pst Exp $
|
||||
* $Id: tty.c,v 1.35 1995/02/28 23:20:11 ache Exp $
|
||||
*/
|
||||
|
||||
#include "snp.h"
|
||||
@ -195,7 +195,6 @@ int
|
||||
ttyclose(tp)
|
||||
register struct tty *tp;
|
||||
{
|
||||
extern struct tty *constty; /* Temporary virtual console. */
|
||||
int s;
|
||||
|
||||
s = spltty();
|
||||
@ -662,8 +661,6 @@ ttioctl(tp, cmd, data, flag)
|
||||
int cmd, flag;
|
||||
void *data;
|
||||
{
|
||||
extern struct tty *constty; /* Temporary virtual console. */
|
||||
extern int nlinesw;
|
||||
register struct proc *p;
|
||||
int s, error;
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94
|
||||
* $Id: uipc_syscalls.c,v 1.3 1994/08/02 07:43:10 davidg Exp $
|
||||
* $Id: uipc_syscalls.c,v 1.4 1994/10/02 17:35:35 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -47,6 +47,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/un.h>
|
||||
#ifdef KTRACE
|
||||
#include <sys/ktrace.h>
|
||||
#endif
|
||||
|
@ -18,7 +18,7 @@
|
||||
* 5. Modifications may be freely made to this file if the above conditions
|
||||
* are met.
|
||||
*
|
||||
* $Id: vfs_bio.c,v 1.34 1995/03/04 15:16:07 davidg Exp $
|
||||
* $Id: vfs_bio.c,v 1.35 1995/03/07 19:53:27 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -39,6 +39,7 @@
|
||||
#include <sys/proc.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_pageout.h>
|
||||
#include <vm/vm_page.h>
|
||||
#include <vm/vm_object.h>
|
||||
@ -55,12 +56,9 @@ int nbuf; /* number of buffer headers calculated
|
||||
* elsewhere */
|
||||
struct swqueue bswlist;
|
||||
|
||||
extern vm_map_t buffer_map, io_map, kernel_map, pager_map;
|
||||
|
||||
void vm_hold_free_pages(struct buf * bp, vm_offset_t from, vm_offset_t to);
|
||||
void vm_hold_load_pages(struct buf * bp, vm_offset_t from, vm_offset_t to);
|
||||
void vfs_dirty_pages(struct buf * bp);
|
||||
void vfs_busy_pages(struct buf *, int clear_modify);
|
||||
|
||||
int needsbuffer;
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94
|
||||
* $Id: vfs_cluster.c,v 1.11 1995/03/02 19:36:50 davidg Exp $
|
||||
* $Id: vfs_cluster.c,v 1.12 1995/03/04 03:24:28 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -65,7 +65,6 @@ struct ctldebug debug13 = {"doreallocblks", &doreallocblks};
|
||||
*/
|
||||
struct buf *cluster_rbuild __P((struct vnode *, u_quad_t, struct buf *,
|
||||
daddr_t, daddr_t, long, int, long));
|
||||
void cluster_wbuild __P((struct vnode *, struct buf *, long, daddr_t, int, daddr_t));
|
||||
struct cluster_save *cluster_collectbufs __P((struct vnode *, struct buf *));
|
||||
|
||||
int totreads;
|
||||
@ -508,7 +507,7 @@ redo:
|
||||
--len;
|
||||
}
|
||||
|
||||
pb = (struct buf *) trypbuf();
|
||||
pb = trypbuf();
|
||||
/* Get more memory for current buffer */
|
||||
if (len <= 1 || pb == 0) {
|
||||
relpbuf(pb);
|
||||
@ -528,7 +527,7 @@ redo:
|
||||
}
|
||||
tbp->b_flags |= B_BUSY;
|
||||
last_bp = 0;
|
||||
pb = (struct buf *) trypbuf();
|
||||
pb = trypbuf();
|
||||
if( pb == 0) {
|
||||
bawrite(tbp);
|
||||
return;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
|
||||
* $Id: vfs_subr.c,v 1.21 1995/03/10 21:18:24 davidg Exp $
|
||||
* $Id: vfs_subr.c,v 1.22 1995/03/11 22:29:07 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -96,8 +96,6 @@ int desiredvnodes;
|
||||
void
|
||||
vntblinit()
|
||||
{
|
||||
extern int vm_object_cache_max;
|
||||
|
||||
desiredvnodes = maxproc + vm_object_cache_max;
|
||||
|
||||
TAILQ_INIT(&vnode_free_list);
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
|
||||
* $Id: vfs_syscalls.c,v 1.17 1995/02/13 13:45:04 davidg Exp $
|
||||
* $Id: vfs_syscalls.c,v 1.18 1995/02/28 02:52:48 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -53,6 +53,10 @@
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/dirent.h>
|
||||
|
||||
#ifdef UNION
|
||||
#include <miscfs/union/union.h>
|
||||
#endif
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
@ -308,9 +312,6 @@ int syncprt = 0;
|
||||
struct ctldebug debug0 = { "syncprt", &syncprt };
|
||||
#endif
|
||||
|
||||
struct sync_args {
|
||||
int dummy;
|
||||
};
|
||||
/* ARGSUSED */
|
||||
int
|
||||
sync(p, uap, retval)
|
||||
@ -622,7 +623,6 @@ open(p, uap, retval)
|
||||
int type, indx, error;
|
||||
struct flock lf;
|
||||
struct nameidata nd;
|
||||
extern struct fileops vnops;
|
||||
|
||||
error = falloc(p, &nfp, &indx);
|
||||
if (error)
|
||||
@ -2126,9 +2126,6 @@ unionread:
|
||||
|
||||
#ifdef UNION
|
||||
{
|
||||
extern int (**union_vnodeop_p)();
|
||||
extern struct vnode *union_lowervp __P((struct vnode *));
|
||||
|
||||
if ((uap->count == auio.uio_resid) &&
|
||||
(vp->v_op == union_vnodeop_p)) {
|
||||
struct vnode *tvp = vp;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
|
||||
* $Id: vfs_subr.c,v 1.21 1995/03/10 21:18:24 davidg Exp $
|
||||
* $Id: vfs_subr.c,v 1.22 1995/03/11 22:29:07 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -96,8 +96,6 @@ int desiredvnodes;
|
||||
void
|
||||
vntblinit()
|
||||
{
|
||||
extern int vm_object_cache_max;
|
||||
|
||||
desiredvnodes = maxproc + vm_object_cache_max;
|
||||
|
||||
TAILQ_INIT(&vnode_free_list);
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
|
||||
* $Id: vfs_syscalls.c,v 1.17 1995/02/13 13:45:04 davidg Exp $
|
||||
* $Id: vfs_syscalls.c,v 1.18 1995/02/28 02:52:48 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -53,6 +53,10 @@
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/dirent.h>
|
||||
|
||||
#ifdef UNION
|
||||
#include <miscfs/union/union.h>
|
||||
#endif
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
@ -308,9 +312,6 @@ int syncprt = 0;
|
||||
struct ctldebug debug0 = { "syncprt", &syncprt };
|
||||
#endif
|
||||
|
||||
struct sync_args {
|
||||
int dummy;
|
||||
};
|
||||
/* ARGSUSED */
|
||||
int
|
||||
sync(p, uap, retval)
|
||||
@ -622,7 +623,6 @@ open(p, uap, retval)
|
||||
int type, indx, error;
|
||||
struct flock lf;
|
||||
struct nameidata nd;
|
||||
extern struct fileops vnops;
|
||||
|
||||
error = falloc(p, &nfp, &indx);
|
||||
if (error)
|
||||
@ -2126,9 +2126,6 @@ unionread:
|
||||
|
||||
#ifdef UNION
|
||||
{
|
||||
extern int (**union_vnodeop_p)();
|
||||
extern struct vnode *union_lowervp __P((struct vnode *));
|
||||
|
||||
if ((uap->count == auio.uio_resid) &&
|
||||
(vp->v_op == union_vnodeop_p)) {
|
||||
struct vnode *tvp = vp;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)libkern.h 8.1 (Berkeley) 6/10/93
|
||||
* $Id: libkern.h,v 1.4 1994/09/18 23:04:25 bde Exp $
|
||||
* $Id: libkern.h,v 1.5 1994/11/14 14:56:46 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -58,6 +58,8 @@ char *rindex __P((const char *, int));
|
||||
int scanc __P((u_int, u_char *, u_char *, int));
|
||||
int skpc __P((int, int, char *));
|
||||
char *strcat __P((char *, const char *));
|
||||
int strcmp __P((const char *, const char *));
|
||||
char *strcpy __P((char *, const char *));
|
||||
size_t strlen __P((const char *));
|
||||
int strncmp __P((const char *, const char *, size_t));
|
||||
char *strncpy __P((char *, const char *, size_t));
|
||||
|
@ -35,7 +35,7 @@
|
||||
*
|
||||
* @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94
|
||||
*
|
||||
* $Id: fdesc_vfsops.c,v 1.1.1.1 1994/05/24 10:04:59 rgrimes Exp $
|
||||
* $Id: fdesc_vfsops.c,v 1.2 1994/09/21 03:46:55 wollman Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -116,7 +116,6 @@ fdesc_unmount(mp, mntflags, p)
|
||||
{
|
||||
int error;
|
||||
int flags = 0;
|
||||
extern int doforce;
|
||||
struct vnode *rootvp = VFSTOFDESC(mp)->f_root;
|
||||
|
||||
if (mntflags & MNT_FORCE) {
|
||||
|
@ -31,9 +31,11 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)fifo.h 8.2 (Berkeley) 2/2/94
|
||||
* $Id: fifo.h,v 1.3 1994/09/22 19:38:05 wollman Exp $
|
||||
* $Id: fifo.h,v 1.4 1995/02/14 06:30:18 phk Exp $
|
||||
*/
|
||||
|
||||
extern int (**fifo_vnodeop_p)();
|
||||
|
||||
/*
|
||||
* Prototypes for fifo operations on vnodes.
|
||||
*/
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user