diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-06-07 17:36:17 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-06-07 17:36:17 +0000 |
commit | bd3e8a23cbb8d840219ed1485baf0cdf3a1b485a (patch) | |
tree | 9abff25c4a0dcd49055de546292e0b709d7008ca /sys/alpha | |
parent | 1a139479c40396dc356af086b7dd46869350ddcd (diff) | |
download | FreeBSD-src-bd3e8a23cbb8d840219ed1485baf0cdf3a1b485a.zip FreeBSD-src-bd3e8a23cbb8d840219ed1485baf0cdf3a1b485a.tar.gz |
Do an explicit getenv on boot_verbose. Now that we have a real FICL boot
loader for alpha (Yay!) we still need to explicitly look for boot_verbose-
I assume because the boothowto flags aren't passed to us at boot like x86.
Do some minor cosmetics as well.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/machdep.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 1f94697..4ff3436 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -582,7 +582,7 @@ alpha_init(pfn, ptb, bim, bip, biv) struct mddt_cluster *memc; int i, mddtweird; int cputype; - char* p; + char *p; /* NO OUTPUT ALLOWED UNTIL FURTHER NOTICE */ @@ -1068,6 +1068,16 @@ alpha_init(pfn, ptb, bim, bip, biv) } /* + * Catch case of boot_verbose set in environment. + */ + if ((p = getenv("boot_verbose")) != NULL) { + if (strcmp(p, "yes") == 0 || strcmp(p, "YES") == 0) { + boothowto |= RB_VERBOSE; + bootverbose = 1; + } + } + + /* * Initialize debuggers, and break into them if appropriate. */ #ifdef DDB @@ -1154,7 +1164,9 @@ DELAY(int n) while (usec <= n) { /* - * Get the next CPU cycle count; + * Get the next CPU cycle count. The assumption here + * is that we can't have wrapped twice past 32 bits worth + * of CPU cycles since we last checked. */ pcc1 = alpha_rpcc() & 0xffffffffUL; if (pcc1 < pcc0) { |