summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-03-13 19:30:39 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-03-13 19:30:39 +0000
commite17abd057492b59593236aba6623d635bb4965bb (patch)
tree7a62842dc43391003b84b7de24371fe797ff2284 /sys
parentd97f90c37ff4bad81225eea9980b63e911ea9030 (diff)
Move UKC later in the boot process, so that it can use malloc().
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/landisk/landisk/machdep.c9
-rw-r--r--sys/arch/sh/sh/sh_machdep.c11
2 files changed, 11 insertions, 9 deletions
diff --git a/sys/arch/landisk/landisk/machdep.c b/sys/arch/landisk/landisk/machdep.c
index 82a34ba864f..5ac4fc0611d 100644
--- a/sys/arch/landisk/landisk/machdep.c
+++ b/sys/arch/landisk/landisk/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.9 2007/03/03 21:37:27 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.10 2007/03/13 19:30:36 miod Exp $ */
/* $NetBSD: machdep.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
/*-
@@ -177,13 +177,6 @@ landisk_startup(int howto, char *_esym)
Debugger();
}
#endif
- if (boothowto & RB_CONFIG) {
-#ifdef BOOT_CONFIG
- user_config();
-#else
- printf("kernel does not support -c; continuing..\n");
-#endif
- }
/* Jump to main */
__asm volatile(
diff --git a/sys/arch/sh/sh/sh_machdep.c b/sys/arch/sh/sh/sh_machdep.c
index a6b1e05916b..5ca32c9f4a9 100644
--- a/sys/arch/sh/sh/sh_machdep.c
+++ b/sys/arch/sh/sh/sh_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sh_machdep.c,v 1.10 2007/03/03 21:37:27 miod Exp $ */
+/* $OpenBSD: sh_machdep.c,v 1.11 2007/03/13 19:30:38 miod Exp $ */
/* $NetBSD: sh3_machdep.c,v 1.59 2006/03/04 01:13:36 uwe Exp $ */
/*
@@ -104,6 +104,7 @@
#include <sys/conf.h>
#include <sys/core.h>
#include <sys/kcore.h>
+#include <sys/reboot.h>
#include <uvm/uvm_extern.h>
@@ -375,6 +376,14 @@ sh_startup()
ptoa(uvmexp.free) / 1024);
printf("using %d buffers containing %u bytes (%uK) of memory\n",
nbuf, bufpages * PAGE_SIZE, bufpages * PAGE_SIZE / 1024);
+
+ if (boothowto & RB_CONFIG) {
+#ifdef BOOT_CONFIG
+ user_config();
+#else
+ printf("kernel does not support -c; continuing..\n");
+#endif
+ }
}
/*