Cleanup <machine/cpu.h> by moving MD prototypes to <machine/md_var.h>
like we have on other platforms. Move savectx() to <machine/pcb.h>. A lot of files got these MD prototypes through the indirect inclusion of <machine/cpu.h> and now need to include <machine/md_var.h>. The number of which is unexpectedly large... osf1_misc.c especially is tricky because szsigcode is redefined in one of the osf1 header files. Reordering of the include files was needed. linprocfs.c now needs an explicit extern declaration. Tested with: LINT
This commit is contained in:
parent
ce9f2a6a68
commit
8e31a831b3
@ -95,20 +95,20 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/cons.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/prom.h>
|
||||
#include <machine/reg.h>
|
||||
|
||||
#include <ddb/ddb.h>
|
||||
|
||||
#include <machine/setjmp.h>
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include <ddb/ddb.h>
|
||||
|
||||
/************************************************************************/
|
||||
|
||||
|
@ -28,26 +28,27 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/bus.h>
|
||||
#include <machine/intr.h>
|
||||
|
||||
#include <sys/termios.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include <alpha/pci/irongatereg.h>
|
||||
#include <alpha/pci/irongatevar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -58,13 +58,15 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/bus.h>
|
||||
#include <sys/timetc.h>
|
||||
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/clockvar.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h> /* for CPU definitions, etc */
|
||||
|
||||
#include <isa/isareg.h>
|
||||
#include <alpha/alpha/timerreg.h>
|
||||
#include <machine/rpb.h> /* for CPU definitions, etc */
|
||||
|
||||
#define SECMIN ((unsigned)60) /* seconds per minute */
|
||||
#define SECHOUR ((unsigned)(60*SECMIN)) /* seconds per hour */
|
||||
|
@ -33,13 +33,15 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_cpu.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/bus.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include "opt_cpu.h"
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#ifdef DEC_AXPPCI_33
|
||||
extern void dec_axppci_33_init(int);
|
||||
|
@ -50,8 +50,9 @@
|
||||
#include <sys/proc.h>
|
||||
#include <sys/user.h>
|
||||
#include <sys/sysent.h>
|
||||
#include <machine/db_machdep.h>
|
||||
|
||||
#include <machine/db_machdep.h>
|
||||
#include <machine/md_var.h>
|
||||
|
||||
#include <ddb/ddb.h>
|
||||
#include <ddb/db_sym.h>
|
||||
|
@ -75,6 +75,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
@ -82,18 +83,17 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <alpha/pci/apecsvar.h>
|
||||
#include <alpha/pci/ciavar.h>
|
||||
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -36,6 +36,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
@ -43,15 +44,16 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include <alpha/pci/apecsreg.h>
|
||||
#include <alpha/pci/apecsvar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -28,6 +28,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
@ -35,16 +36,17 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include <alpha/pci/t2var.h>
|
||||
#include <alpha/pci/t2reg.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -38,8 +38,9 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <alpha/tlsb/tlsbreg.h>
|
||||
#include <alpha/tlsb/gbusreg.h>
|
||||
|
@ -38,8 +38,9 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <alpha/tlsb/tlsbreg.h>
|
||||
#include <alpha/tlsb/gbusreg.h>
|
||||
|
@ -33,6 +33,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
@ -40,15 +41,16 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include <alpha/pci/lcavar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -33,6 +33,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
@ -40,14 +41,13 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <alpha/pci/ciavar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -49,6 +49,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
@ -56,9 +57,10 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
@ -66,8 +68,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <alpha/pci/apecsreg.h>
|
||||
#include <alpha/pci/apecsvar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -33,6 +33,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
@ -40,16 +41,16 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/termios.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include <alpha/pci/ciareg.h>
|
||||
#include <alpha/pci/ciavar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -32,31 +32,27 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/bus.h>
|
||||
#include <machine/intr.h>
|
||||
|
||||
#include <sys/termios.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include <alpha/mcbus/mcbusreg.h>
|
||||
#include <alpha/mcbus/mcbusvar.h>
|
||||
#if 0
|
||||
#include <alpha/mcbus/mcpciareg.h>
|
||||
#include <alpha/mcbsu/mcpciavar.h>
|
||||
#include <alpha/pci/pci_kn300.h>
|
||||
#endif
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
|
@ -39,8 +39,9 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <alpha/tlsb/tlsbreg.h>
|
||||
#include <alpha/tlsb/gbusreg.h>
|
||||
|
@ -35,6 +35,7 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
@ -42,20 +43,19 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/bus.h>
|
||||
#include <machine/intr.h>
|
||||
|
||||
#include <sys/termios.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include <alpha/pci/ciareg.h>
|
||||
#include <alpha/pci/ciavar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -28,25 +28,26 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/bus.h>
|
||||
#include <machine/intr.h>
|
||||
|
||||
#include <sys/termios.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include <alpha/pci/tsunamivar.h>
|
||||
|
||||
#include "opt_dev_sc.h"
|
||||
|
||||
#ifndef CONSPEED
|
||||
#define CONSPEED TTYDEF_SPEED
|
||||
#endif
|
||||
|
@ -34,6 +34,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/proc.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/user.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_page.h>
|
||||
@ -41,10 +43,12 @@ __FBSDID("$FreeBSD$");
|
||||
#include <vm/vm_extern.h>
|
||||
#include <vm/vm_object.h>
|
||||
#include <vm/vm_pager.h>
|
||||
#include <sys/user.h>
|
||||
#include <machine/inst.h>
|
||||
|
||||
#include <machine/fpu.h>
|
||||
#include <machine/inst.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/reg.h>
|
||||
|
||||
#include <alpha/alpha/ieee_float.h>
|
||||
|
||||
#define GETREG(regs, i) (*(fp_register_t*) ®s->fpr_regs[i])
|
||||
|
@ -51,11 +51,12 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/unistd.h>
|
||||
#include <sys/vmmeter.h>
|
||||
|
||||
#include <machine/reg.h>
|
||||
#include <machine/frame.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/bwx.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/frame.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/reg.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/smp.h>
|
||||
|
||||
|
@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
#include <machine/md_var.h>
|
||||
#ifdef PERFMON
|
||||
#include <machine/perfmon.h>
|
||||
#endif
|
||||
|
@ -42,17 +42,18 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/smp.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/bus.h>
|
||||
#include <sys/user.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <sys/user.h>
|
||||
|
||||
#include <machine/atomic.h>
|
||||
#include <machine/pmap.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/clock.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/pmap.h>
|
||||
#include <machine/prom.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/smp.h>
|
||||
|
||||
/* Set to 1 once we're ready to let the APs out of the pen. */
|
||||
|
@ -38,8 +38,9 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/user.h>
|
||||
#include <sys/cons.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/prom.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/vmparam.h>
|
||||
|
||||
struct rpb *hwrpb;
|
||||
|
@ -52,8 +52,6 @@
|
||||
|
||||
#include <machine/frame.h>
|
||||
|
||||
#define cpu_getstack(td) (alpha_pal_rdusp())
|
||||
|
||||
/*
|
||||
* Arguments to hardclock and gatherstats encapsulate the previous
|
||||
* machine state in an opaque clockframe. One the Alpha, we use
|
||||
@ -98,67 +96,14 @@ struct clockframe {
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
struct pcb;
|
||||
struct thread;
|
||||
struct reg;
|
||||
struct rpb;
|
||||
struct trapframe;
|
||||
|
||||
extern struct rpb *hwrpb;
|
||||
extern volatile int mc_expected, mc_received;
|
||||
#define cpu_getstack(td) (alpha_pal_rdusp())
|
||||
#define get_cyclecount alpha_rpcc
|
||||
|
||||
void cpu_halt(void);
|
||||
void cpu_reset(void);
|
||||
void fork_trampoline(void); /* MAGIC */
|
||||
void swi_vm(void *);
|
||||
|
||||
/* XXX the following should not be here. */
|
||||
void XentArith(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentIF(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentInt(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentMM(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentRestart(void); /* MAGIC */
|
||||
void XentSys(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentUna(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void alpha_init(u_long, u_long, u_long, u_long, u_long);
|
||||
void alpha_fpstate_check(struct thread *td);
|
||||
void alpha_fpstate_drop(struct thread *td);
|
||||
void alpha_fpstate_save(struct thread *td, int write);
|
||||
void alpha_fpstate_switch(struct thread *td);
|
||||
int alpha_pa_access(u_long);
|
||||
int badaddr (void *, size_t);
|
||||
int badaddr_read(void *, size_t, void *);
|
||||
u_int64_t console_restart(u_int64_t, u_int64_t, u_int64_t);
|
||||
void dumpconf(void);
|
||||
void exception_return(void); /* MAGIC */
|
||||
void frametoreg(struct trapframe *, struct reg *);
|
||||
long fswintrberr(void); /* MAGIC */
|
||||
void init_prom_interface(struct rpb*);
|
||||
void interrupt(unsigned long, unsigned long, unsigned long,
|
||||
struct trapframe *);
|
||||
void machine_check(unsigned long, struct trapframe *, unsigned long,
|
||||
unsigned long);
|
||||
u_int64_t hwrpb_checksum(void);
|
||||
void hwrpb_restart_setup(void);
|
||||
void regdump(struct trapframe *);
|
||||
void regtoframe(struct reg *, struct trapframe *);
|
||||
void savectx(struct pcb *);
|
||||
void set_iointr(void (*)(void *, unsigned long));
|
||||
void switch_exit(struct thread *); /* MAGIC */
|
||||
void syscall(u_int64_t, struct trapframe *);
|
||||
void trap(unsigned long, unsigned long, unsigned long, unsigned long,
|
||||
struct trapframe *);
|
||||
|
||||
/*
|
||||
* Return contents of in-cpu fast counter as a sort of "bogo-time"
|
||||
* for non-critical timing.
|
||||
*/
|
||||
static __inline u_int64_t
|
||||
get_cyclecount(void)
|
||||
{
|
||||
return (alpha_rpcc());
|
||||
}
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _ALPHA_CPU_H_ */
|
||||
|
@ -33,6 +33,12 @@
|
||||
* Miscellaneous machine-dependent declarations.
|
||||
*/
|
||||
|
||||
struct cam_sim;
|
||||
struct reg;
|
||||
struct rpb;
|
||||
struct thread;
|
||||
struct trapframe;
|
||||
|
||||
extern char sigcode[];
|
||||
extern char esigcode[];
|
||||
extern int szsigcode;
|
||||
@ -44,31 +50,60 @@ extern int szfreebsd4_sigcode;
|
||||
#endif
|
||||
extern long Maxmem;
|
||||
extern int busdma_swi_pending;
|
||||
extern struct rpb *hwrpb;
|
||||
extern volatile int mc_expected;
|
||||
extern volatile int mc_received;
|
||||
|
||||
struct fpreg;
|
||||
struct thread;
|
||||
struct reg;
|
||||
struct cam_sim;
|
||||
struct pcicfg;
|
||||
|
||||
void busdma_swi(void);
|
||||
int is_physical_memory(vm_offset_t addr);
|
||||
void XentArith(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentIF(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentInt(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentMM(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentRestart(void); /* MAGIC */
|
||||
void XentSys(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void XentUna(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */
|
||||
void alpha_fpstate_check(struct thread *td);
|
||||
void alpha_fpstate_drop(struct thread *td);
|
||||
void alpha_fpstate_save(struct thread *td, int write);
|
||||
void alpha_fpstate_switch(struct thread *td);
|
||||
void alpha_init(u_long, u_long, u_long, u_long, u_long);
|
||||
int alpha_pa_access(u_long);
|
||||
void alpha_register_pci_scsi(int bus, int slot, struct cam_sim *sim);
|
||||
int badaddr(void *, size_t);
|
||||
int badaddr_read(void *, size_t, void *);
|
||||
void busdma_swi(void);
|
||||
u_int64_t console_restart(u_int64_t, u_int64_t, u_int64_t);
|
||||
void dumpconf(void);
|
||||
void exception_return(void); /* MAGIC */
|
||||
void frametoreg(struct trapframe *, struct reg *);
|
||||
long fswintrberr(void); /* MAGIC */
|
||||
u_int64_t hwrpb_checksum(void);
|
||||
void hwrpb_restart_setup(void);
|
||||
void init_prom_interface(struct rpb*);
|
||||
void interrupt(unsigned long, unsigned long, unsigned long,
|
||||
struct trapframe *);
|
||||
int is_physical_memory(vm_offset_t addr);
|
||||
void machine_check(unsigned long, struct trapframe *, unsigned long,
|
||||
unsigned long);
|
||||
void regdump(struct trapframe *);
|
||||
void regtoframe(struct reg *, struct trapframe *);
|
||||
void set_iointr(void (*)(void *, unsigned long));
|
||||
void switch_exit(struct thread *); /* MAGIC */
|
||||
void syscall(u_int64_t, struct trapframe *);
|
||||
void trap(unsigned long, unsigned long, unsigned long, unsigned long,
|
||||
struct trapframe *);
|
||||
|
||||
#ifdef _SYS_BUS_H_
|
||||
struct resource *alpha_platform_alloc_ide_intr(int chan);
|
||||
int alpha_platform_release_ide_intr(int chan, struct resource *res);
|
||||
int alpha_platform_setup_ide_intr(struct device *dev,
|
||||
struct resource *res,
|
||||
driver_intr_t *fn, void *arg,
|
||||
void **cookiep);
|
||||
int alpha_platform_setup_ide_intr(struct device *dev, struct resource *res,
|
||||
driver_intr_t *fn, void *arg, void **cookiep);
|
||||
int alpha_platform_teardown_ide_intr(struct device *dev,
|
||||
struct resource *res, void *cookie);
|
||||
struct resource *res, void *cookie);
|
||||
int alpha_platform_pci_setup_intr(device_t dev, device_t child,
|
||||
struct resource *irq, int flags,
|
||||
driver_intr_t *intr, void *arg,
|
||||
void **cookiep);
|
||||
struct resource *irq, int flags, driver_intr_t *intr, void *arg,
|
||||
void **cookiep);
|
||||
int alpha_platform_pci_teardown_intr(device_t dev, device_t child,
|
||||
struct resource *irq, void *cookie);
|
||||
struct resource *irq, void *cookie);
|
||||
int alpha_pci_route_interrupt(device_t bus, device_t dev, int pin);
|
||||
#endif
|
||||
|
||||
|
@ -57,4 +57,8 @@ struct pcb {
|
||||
unsigned long pcb_accessaddr; /* for [fs]uswintr [SW] */
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
void savectx(struct pcb *);
|
||||
#endif
|
||||
|
||||
#endif /* _MACHINE_PCB_H */
|
||||
|
@ -40,8 +40,9 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/bus.h>
|
||||
#include <sys/malloc.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <alpha/mcbus/mcbusreg.h>
|
||||
#include <alpha/mcbus/mcbusvar.h>
|
||||
|
@ -69,13 +69,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/utsname.h>
|
||||
#include <sys/vnode.h>
|
||||
|
||||
#include <alpha/osf1/exec_ecoff.h>
|
||||
#include <alpha/osf1/osf1_signal.h>
|
||||
#include <alpha/osf1/osf1_proto.h>
|
||||
#include <alpha/osf1/osf1_syscall.h>
|
||||
#include <alpha/osf1/osf1_util.h>
|
||||
#include <alpha/osf1/osf1.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_param.h>
|
||||
@ -86,8 +79,16 @@ __FBSDID("$FreeBSD$");
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/fpu.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <alpha/osf1/exec_ecoff.h>
|
||||
#include <alpha/osf1/osf1_signal.h>
|
||||
#include <alpha/osf1/osf1_proto.h>
|
||||
#include <alpha/osf1/osf1_syscall.h>
|
||||
#include <alpha/osf1/osf1_util.h>
|
||||
#include <alpha/osf1/osf1.h>
|
||||
|
||||
static void cvtstat2osf1(struct stat *, struct osf1_stat *);
|
||||
static int osf2bsd_pathconf(int *);
|
||||
|
||||
|
@ -73,13 +73,15 @@ __FBSDID("$FreeBSD$");
|
||||
#include <alpha/pci/apecsreg.h>
|
||||
#include <alpha/pci/apecsvar.h>
|
||||
#include <alpha/isa/isavar.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/intrcnt.h>
|
||||
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/swiz.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/intrcnt.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/sgmap.h>
|
||||
#include <machine/swiz.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
@ -107,14 +107,16 @@ __FBSDID("$FreeBSD$");
|
||||
#include <alpha/pci/ciareg.h>
|
||||
#include <alpha/pci/ciavar.h>
|
||||
#include <alpha/isa/isavar.h>
|
||||
|
||||
#include <machine/bwx.h>
|
||||
#include <machine/swiz.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/intrcnt.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/sgmap.h>
|
||||
#include <machine/swiz.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
@ -43,12 +43,14 @@ __FBSDID("$FreeBSD$");
|
||||
#include <alpha/isa/isavar.h>
|
||||
#include <alpha/pci/irongatereg.h>
|
||||
#include <alpha/pci/irongatevar.h>
|
||||
|
||||
#include <machine/bwx.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/intrcnt.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/sgmap.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
|
@ -39,10 +39,12 @@ __FBSDID("$FreeBSD$");
|
||||
#include <alpha/pci/lcareg.h>
|
||||
#include <alpha/pci/lcavar.h>
|
||||
#include <alpha/isa/isavar.h>
|
||||
#include <machine/intr.h>
|
||||
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/swiz.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/sgmap.h>
|
||||
#include <machine/swiz.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
@ -66,16 +66,18 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/rman.h>
|
||||
#include <sys/interrupt.h>
|
||||
|
||||
#include <pci/pcivar.h>
|
||||
#include <alpha/pci/t2reg.h>
|
||||
#include <alpha/pci/t2var.h>
|
||||
#include <alpha/isa/isavar.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/intrcnt.h>
|
||||
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/swiz.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/intrcnt.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/sgmap.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include <machine/swiz.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
@ -46,12 +46,14 @@ __FBSDID("$FreeBSD$");
|
||||
#include <alpha/isa/isavar.h>
|
||||
#include <alpha/pci/tsunamireg.h>
|
||||
#include <alpha/pci/tsunamivar.h>
|
||||
|
||||
#include <machine/bwx.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/intr.h>
|
||||
#include <machine/intrcnt.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/resource.h>
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/sgmap.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
|
@ -44,8 +44,9 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/bus.h>
|
||||
#include <sys/malloc.h>
|
||||
|
||||
#include <machine/rpb.h>
|
||||
#include <machine/cpuconf.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/rpb.h>
|
||||
|
||||
#include <alpha/tlsb/tlsbreg.h>
|
||||
#include <alpha/tlsb/tlsbvar.h>
|
||||
|
@ -177,6 +177,7 @@ linprocfs_domeminfo(PFS_FILL_ARGS)
|
||||
}
|
||||
|
||||
#ifdef __alpha__
|
||||
extern struct rpb *hwrpb;
|
||||
/*
|
||||
* Filler function for proc/cpuinfo (Alpha version)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user