/*
* Copyright (c) 1995 L. Weppelman
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
char *Progname; /* How are we called */
int d_flag = 0; /* Output debugging output? */
int h_flag = 0; /* show help */
int N_flag = 0; /* No symbols? */
int s_flag = 0; /* St-ram only */
int t_flag = 0; /* Just test, do not execute */
int v_flag = 0; /* show version */
const char version[] = "$Revision: 1.22 $";
/*
* Default name of kernel to boot, large enough to patch
*/
char kname[80] = "n:/netbsd";
eprintf("Kernel '%s' was loaded OK\r\n", kname);
xexit(0);
return 0;
}
void
get_sys_info(osdsc_t *od)
{
long stck;
stck = Super(0);
sys_info(od);
if (!(od->cputype & ATARI_ANYCPU))
fatal(-1, "Cannot determine CPU-type");
(void)Super(stck);
if (s_flag)
od->ttmem_size = od->ttmem_start = 0;
}
void
help(void)
{
eprintf("\r
NetBSD loader for the Atari-TT\r
\r
Usage: %s [-abdhstVD] [-S <stram-size>] [-T <ttram-size>] [kernel]\r
\r
Description of options:\r
\r
\t-a Boot up to multi-user mode.\r
\t-b Ask for root device to use.\r
\t-d Enter kernel debugger.\r
\t-D printout debug information while loading\r
\t-h What you're getting right now.\r
`t-N No symbols must be loaded.\r
\t-o Write output to both <output file> and stdout.\r
\t-s Use only ST-compatible RAM\r
\t-S Set amount of ST-compatible RAM\r
\t-T Set amount of TT-compatible RAM\r
\t-t Test the loader. It will do everything except executing the\r
\t loaded kernel.\r
\t-V Print loader version.\r
\t-w Wait for a keypress before exiting.\r
", Progname);
xexit(0);
}