summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include/cpu.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-03-31 16:00:39 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-03-31 16:00:39 +0000
commit38e4dfdfe8f2a635f9087712cdedbf7c317a936f (patch)
treeacafcc82665b9860e060e5d7642c25539234bebd /sys/arch/powerpc/include/cpu.h
parentf6a0d1cdffc58ecb54fb52ce0c752f4668c8da9e (diff)
Make it possisble to disable block address translation mechanism on
processors that support it. Due to the way trap code is patched it is currently not possible to enabled/disable BAT at runtime. ok miod@, kettenis@
Diffstat (limited to 'sys/arch/powerpc/include/cpu.h')
-rw-r--r--sys/arch/powerpc/include/cpu.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h
index 11cc4cc5670..b41167ceefa 100644
--- a/sys/arch/powerpc/include/cpu.h
+++ b/sys/arch/powerpc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.60 2015/02/11 07:05:39 dlg Exp $ */
+/* $OpenBSD: cpu.h,v 1.61 2015/03/31 16:00:38 mpi Exp $ */
/* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */
/*
@@ -150,7 +150,12 @@ extern struct cpu_info cpu_info[PPC_MAXPROCS];
#define CLKF_PC(frame) ((frame)->srr0)
#define CLKF_INTR(frame) ((frame)->depth != 0)
-extern int ppc_cpuidle;
+extern int ppc_cpuidle;
+extern int ppc_proc_is_64b;
+extern int ppc_nobat;
+
+void cpu_bootstrap(void);
+
/*
* This is used during profiling to integrate system time.
*/
@@ -385,8 +390,6 @@ ppc_intr_disable(void)
}
int ppc_cpuspeed(int *);
-void ppc_check_procid(void);
-extern int ppc_proc_is_64b;
/*
* PowerPC CPU types
@@ -409,6 +412,7 @@ extern int ppc_proc_is_64b;
#define PPC_CPU_MPC7450 0x8000
#define PPC_CPU_MPC7455 0x8001
#define PPC_CPU_MPC7457 0x8002
+#define PPC_CPU_MPC83xx 0x8083
/*
* This needs to be included late since it relies on definitions higher