[BACK]Return to test.c CVS log [TXT][DIR] Up to [local] / sys / arch / alpha / stand / boot

Annotation of sys/arch/alpha/stand/boot/test.c, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: test.c,v 1.3 1996/10/30 22:40:46 niklas Exp $ */
                      2: /*     $NetBSD: test.c,v 1.2 1995/02/16 02:33:00 cgd Exp $     */
                      3:
                      4: /*
                      5:  * Mach Operating System
                      6:  * Copyright (c) 1993 Carnegie Mellon University
                      7:  * All Rights Reserved.
                      8:  *
                      9:  * Permission to use, copy, modify and distribute this software and its
                     10:  * documentation is hereby granted, provided that both the copyright
                     11:  * notice and this permission notice appear in all copies of the
                     12:  * software, derivative works or modified versions, and any portions
                     13:  * thereof, and that both notices appear in supporting documentation.
                     14:  *
                     15:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     16:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
                     17:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     18:  *
                     19:  * Carnegie Mellon requests users of this software to return to
                     20:  *
                     21:  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
                     22:  *  School of Computer Science
                     23:  *  Carnegie Mellon University
                     24:  *  Pittsburgh PA 15213-3890
                     25:  *
                     26:  * any improvements or extensions that they make and grant Carnegie Mellon
                     27:  * the rights to redistribute these changes.
                     28:  */
                     29: #include <sys/types.h>
                     30:
                     31: #include <machine/prom.h>
                     32: #include <machine/rpb.h>
                     33: #include <machine/varargs.h>
                     34:
                     35: main(a1, a2, a3, a4, a5)
                     36:        u_int64_t a1, a2, a3;
                     37:        char *a4[], *a5[];
                     38: {
                     39:        extern int console;
                     40:        prom_return_t ret;
                     41:        int cnt;
                     42:        char devname[128];
                     43:
                     44:        init_prom_calls();              /* Init prom callback vector. */
                     45:
                     46:        (void)printf("TEST BOOT\n");
                     47:        (void)printf("PFN: %lx\n", a1);
                     48:        (void)printf("PTBR: %lx\n", a2);
                     49:        (void)printf("argc: %lu\n", a3);
                     50:        (void)printf("argv[0]: %ls\n", a4[0]);
                     51:        (void)printf("envp: %lx\n", a5);
                     52:
                     53:        ret.bits = prom_getenv(PROM_E_BOOTED_DEV, devname, sizeof(devname));
                     54:        devname[ret.u.retval] = '\0';
                     55:        (void)printf("booted_dev: %s\n", devname);
                     56:
                     57:        ret.bits = prom_getenv(PROM_E_BOOTED_FILE, devname, sizeof(devname));
                     58:        devname[ret.u.retval] = '\0';
                     59:        (void)printf("booted_file: %s\n", devname);
                     60:
                     61:        halt();
                     62: }

CVSweb