From ad0db932477b3fbe3c52cfe694f41248c8cb574a Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sat, 5 May 2012 11:48:21 +0200 Subject: [PATCH] no USE_BOOTPARAM --- kernel/arch/i386/arch_system.c | 5 ----- kernel/start.c | 4 ---- share/mk/bsd.own.mk | 5 ++--- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/kernel/arch/i386/arch_system.c b/kernel/arch/i386/arch_system.c index fd732d6df..0f3e1cf14 100644 --- a/kernel/arch/i386/arch_system.c +++ b/kernel/arch/i386/arch_system.c @@ -163,7 +163,6 @@ __dead void arch_shutdown(int how) reset(); } -#if USE_BOOTPARAM if (how == RBT_DEFAULT) { how = RBT_RESET; } @@ -190,10 +189,6 @@ __dead void arch_shutdown(int how) reset(); NOT_REACHABLE; } -#else /* !USE_BOOTPARAM */ - /* Poweroff without boot monitor */ - arch_bios_poweroff(); -#endif NOT_REACHABLE; } diff --git a/kernel/start.c b/kernel/start.c index 4e98b70e6..32127b66a 100644 --- a/kernel/start.c +++ b/kernel/start.c @@ -41,7 +41,6 @@ void cstart( /* Copy the boot parameters to the local buffer. */ arch_get_params(params_buffer, sizeof(params_buffer)); -#if USE_BOOTPARAM /* determine verbosity */ if ((value = env_get(VERBOSEBOOTVARNAME))) verboseboot = atoi(value); @@ -52,9 +51,6 @@ void cstart( system_hz = atoi(value); if(!value || system_hz < 2 || system_hz > 50000) /* sanity check */ system_hz = DEFAULT_HZ; -#else /* !USE_BOOTPARAM */ - system_hz = DEFAULT_HZ; -#endif #ifdef DEBUG_SERIAL /* Intitialize serial debugging */ diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 415982260..e60574e11 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -774,7 +774,7 @@ _MKVARS.yes= \ #MINIX-specific vars _MKVARS.yes+= \ MKWATCHDOG MKACPI MKAPIC MKMCONTEXT MKDEBUGREG MKSYSDEBUG \ - MKLIVEUPDATE MKSTATECTL MKTRACE MKBOOTPARAM + MKLIVEUPDATE MKSTATECTL MKTRACE .for var in ${_MKVARS.yes} ${var}?= yes .endfor @@ -844,7 +844,6 @@ MKSYSDEBUG:= no MKLIVEUPDATE:= no MKSTATECTL:= no MKTRACE:= no -MKBOOTPARAM:= no .endif # @@ -907,7 +906,7 @@ ${var}?= no # .for var in USE_HESIOD USE_INET6 USE_KERBEROS USE_LDAP USE_PAM USE_YP \ USE_WATCHDOG USE_ACPI USE_APIC USE_MCONTEXT USE_DEBUGREG USE_SYSDEBUG \ -USE_LIVEUPDATE USE_STATECTL USE_TRACE USE_BOOTPARAM +USE_LIVEUPDATE USE_STATECTL USE_TRACE .if (${${var:S/USE_/MK/}} == "no") ${var}:= no .else -- 2.44.0