summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-06-09 22:12:23 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-06-09 22:12:23 +0000
commit869aecd2c0a935a913129f93cee3a869706f5af3 (patch)
tree048bb63bea23c01294e9f947cc2777c1cf1200ae
parent8746503cfaabdc3f20dbf12e91cc2a24ceb4664b (diff)
Add a few missing bits.
-rw-r--r--sys/arch/powerpc64/powerpc64/autoconf.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/arch/powerpc64/powerpc64/autoconf.c b/sys/arch/powerpc64/powerpc64/autoconf.c
index be6b4420fef..da4fa7824ef 100644
--- a/sys/arch/powerpc64/powerpc64/autoconf.c
+++ b/sys/arch/powerpc64/powerpc64/autoconf.c
@@ -1,3 +1,21 @@
+/* $OpenBSD: autoconf.c,v 1.4 2020/06/09 22:12:22 kettenis Exp $ */
+
+/*
+ * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
#include <sys/param.h>
#include <sys/device.h>
#include <sys/systm.h>
@@ -5,7 +23,13 @@
void
cpu_configure(void)
{
+ splhigh();
+
+ softintr_init();
config_rootfound("mainbus", NULL);
+
+ cold = 0;
+ spl0();
}
void