Chameleon

Chameleon Svn Source Tree

Root/branches/cparm/i386/boot2/prompt.c

1/*
2 * Copyright (c) 1999-2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Portions Copyright (c) 1999-2003 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 2.0 (the "License"). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License.
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24/*
25 * Copyright 1993 NeXT, Inc.
26 * All rights reserved.
27 */
28
29#include "vers.h"
30#include "boot.h"
31#include "platform.h"
32
33static char bootBanner[] = "\nDarwin/x86 boot v" I386BOOT_VERSION " - Chameleon v" I386BOOT_CHAMELEONVERSION /*" r" I386BOOT_CHAMELEONREVISION*/ "\n"
34 "Build date: " I386BOOT_BUILDDATE "\n"
35 "%dMB memory\n";
36
37static char bootPrompt[] =
38 "Press Enter to start up Darwin/x86 with no options, or you can:\n"
39 " Type -v and press Enter to start up with diagnostic messages\n"
40#ifndef OPTION_ROM
41 " Type ? and press Enter to learn about advanced startup options\n\n"
42#endif
43 "boot: ";
44
45#ifndef OPTION_ROM
46static char bootRescanPrompt[] =
47 "Press Enter to start up Darwin/x86 with no options, or you can:\n"
48 " Press F5 after you swapped the media. The drive will be rescanned.\n"
49 " Type -v and press Enter to start up with diagnostic messages\n"
50 " Type ? and press Enter to learn about advanced startup options\n\n"
51 "boot: ";
52#endif
53
54void InitBootPrompt(void)
55{
56 set_env(envBootBanner,(uint32_t)bootBanner);
57 set_env(envBootPrompt,(uint32_t)bootPrompt);
58 set_env(envBootRescanPrompt,(uint32_t)bootRescanPrompt);
59}
60

Archive Download this file

Revision: HEAD