summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2002-01-28 14:07:36 +0000
committergallatin <gallatin@FreeBSD.org>2002-01-28 14:07:36 +0000
commitcffbd574038c24c23c6860649b06bd6be1262445 (patch)
tree231d88ac8c000fa1254bc1688fe832c3278acf17 /sys
parent2137f05783bd2ec4dd2ff888143f9c6d8dce5791 (diff)
downloadFreeBSD-src-cffbd574038c24c23c6860649b06bd6be1262445.zip
FreeBSD-src-cffbd574038c24c23c6860649b06bd6be1262445.tar.gz
Simple fixes to get the powerpc kernel compiling again.
Reviewed by: mp
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/aim/machdep.c2
-rw-r--r--sys/powerpc/include/cpufunc.h2
-rw-r--r--sys/powerpc/include/db_machdep.h2
-rw-r--r--sys/powerpc/powerpc/machdep.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index f185cc5..9a79ad8 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -158,7 +158,7 @@ SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_INT|CTLFLAG_RD,
struct msgbuf *msgbufp = 0;
-int bootverbose = 0, Maxmem = 0;
+int Maxmem = 0;
long dumplo;
vm_offset_t phys_avail[10];
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
index 25f37d3..1ed8934 100644
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -35,7 +35,7 @@
#include <machine/psl.h>
-#define CRITICAL_FORK (mfmsr() |= PSL_EE)
+#define CRITICAL_FORK (mfmsr() | PSL_EE)
#ifdef __GNUC__
diff --git a/sys/powerpc/include/db_machdep.h b/sys/powerpc/include/db_machdep.h
index c444852..8d14962 100644
--- a/sys/powerpc/include/db_machdep.h
+++ b/sys/powerpc/include/db_machdep.h
@@ -47,7 +47,7 @@ struct powerpc_saved_state {
u_int32_t msr;
};
typedef struct powerpc_saved_state db_regs_t;
-db_regs_t ddb_regs; /* register state */
+extern db_regs_t ddb_regs; /* register state */
#define DDB_REGS (&ddb_regs)
#define PC_REGS(regs) ((db_addr_t)(regs)->iar)
diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c
index f185cc5..9a79ad8 100644
--- a/sys/powerpc/powerpc/machdep.c
+++ b/sys/powerpc/powerpc/machdep.c
@@ -158,7 +158,7 @@ SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_INT|CTLFLAG_RD,
struct msgbuf *msgbufp = 0;
-int bootverbose = 0, Maxmem = 0;
+int Maxmem = 0;
long dumplo;
vm_offset_t phys_avail[10];
OpenPOWER on IntegriCloud