diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-03-13 19:30:39 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-03-13 19:30:39 +0000 |
commit | e17abd057492b59593236aba6623d635bb4965bb (patch) | |
tree | 7a62842dc43391003b84b7de24371fe797ff2284 | |
parent | d97f90c37ff4bad81225eea9980b63e911ea9030 (diff) |
Move UKC later in the boot process, so that it can use malloc().
-rw-r--r-- | sys/arch/landisk/landisk/machdep.c | 9 | ||||
-rw-r--r-- | sys/arch/sh/sh/sh_machdep.c | 11 |
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 + } } /* |