CPPFLAGS+= -DUSE_TRACE
.endif
+.if ${USE_BOOTPARAM} != "no"
+CPPFLAGS+= -DUSE_BOOTPARAM
+.endif
+
# These come last, so the profiling buffer is at the end of the data segment
SRCS+= profile.c do_sprofile.c
/* Mask all interrupts, including the clock. */
outb( INT_CTLMASK, ~0);
+#if USE_BOOTPARAM
if(minix_panicing) {
/* We're panicing? Then retrieve and decode currently
* loaded segment selectors.
panic("unexpected value for how: %d", how);
NOT_REACHABLE;
}
+#else /* !USE_BOOTPARAM */
+ /* Poweroff without boot monitor */
+ arch_bios_poweroff();
+#endif
NOT_REACHABLE;
}
#MINIX-specific vars
_MKVARS.yes+= \
MKWATCHDOG MKACPI MKAPIC MKMCONTEXT MKDEBUGREG MKSYSDEBUG \
- MKLIVEUPDATE MKSTATECTL MKTRACE
+ MKLIVEUPDATE MKSTATECTL MKTRACE MKBOOTPARAM
.for var in ${_MKVARS.yes}
${var}?= yes
.endfor
MKLIVEUPDATE:= no
MKSTATECTL:= no
MKTRACE:= no
+MKBOOTPARAM:= no
.endif
#
#
.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_LIVEUPDATE USE_STATECTL USE_TRACE USE_BOOTPARAM
.if (${${var:S/USE_/MK/}} == "no")
${var}:= no
.else