diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-09 22:12:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-09 22:12:23 +0000 |
commit | 869aecd2c0a935a913129f93cee3a869706f5af3 (patch) | |
tree | 048bb63bea23c01294e9f947cc2777c1cf1200ae | |
parent | 8746503cfaabdc3f20dbf12e91cc2a24ceb4664b (diff) |
Add a few missing bits.
-rw-r--r-- | sys/arch/powerpc64/powerpc64/autoconf.c | 24 |
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 |