summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-03-03 03:02:35 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-03-03 03:02:35 +0000
commita028523d73105d6cc3769658431fefc55c87bfb9 (patch)
tree86d38dca18e184056b93a334376f9979b6277e40 /sys
parent5eff84eb0385491bf7b2245f243fe7afa18d9a6f (diff)
from NetBSD: so it compiles now.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/machdep.c34
1 files changed, 19 insertions, 15 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 654e9287d7c..051e811cc43 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,5 @@
-/* $OpenBSD: machdep.c,v 1.6 1996/02/28 14:38:42 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.7 1996/03/03 03:02:34 mickey Exp $ */
+/* $NetBSD: machdep.c,v 1.191 1996/03/01 21:49:49 scottr Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -1105,16 +1106,6 @@ init386(first_avail)
splhigh();
enable_intr();
-#ifdef DDB
- ddb_init();
- if (boothowto & RB_KDB)
- Debugger();
-#endif
-#ifdef KGDB
- if (boothowto & RB_KDB)
- kgdb_connect(0);
-#endif
-
/*
* Use BIOS values stored in RTC CMOS RAM, since probing
* breaks certain 386 AT relics.
@@ -1155,6 +1146,16 @@ init386(first_avail)
/* call pmap initialization to make new kernel address space */
pmap_bootstrap((vm_offset_t)atdevbase + IOM_SIZE);
+
+#ifdef DDB
+ ddb_init();
+ if (boothowto & RB_KDB)
+ Debugger();
+#endif
+#ifdef KGDB
+ if (boothowto & RB_KDB)
+ kgdb_connect(0);
+#endif
}
struct queue {
@@ -1165,9 +1166,11 @@ struct queue {
* insert an element into a queue
*/
void
-_insque(elem, head)
- register struct queue *elem, *head;
+_insque(v1, v2)
+ void *v1;
+ void *v2;
{
+ register struct queue *elem = v1, *head = v2;
register struct queue *next;
next = head->q_next;
@@ -1181,9 +1184,10 @@ _insque(elem, head)
* remove an element from a queue
*/
void
-_remque(elem)
- register struct queue *elem;
+_remque(v)
+ void *v;
{
+ register struct queue *elem = v;
register struct queue *next, *prev;
next = elem->q_next;