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

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

1.1       nbrk        1: /*     $OpenBSD: OSFpal.c,v 1.7 2004/12/01 20:55:07 deraadt Exp $      */
                      2: /*     $NetBSD: OSFpal.c,v 1.4 1996/10/13 03:00:24 christos Exp $      */
                      3:
                      4: /*
                      5:  * Copyright (c) 1994, 1996 Carnegie-Mellon University.
                      6:  * All rights reserved.
                      7:  *
                      8:  * Author: Keith Bostic
                      9:  *
                     10:  * Permission to use, copy, modify and distribute this software and
                     11:  * its documentation is hereby granted, provided that both the copyright
                     12:  * notice and this permission notice appear in all copies of the
                     13:  * software, derivative works or modified versions, and any portions
                     14:  * thereof, and that both notices appear in supporting documentation.
                     15:  *
                     16:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     17:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
                     18:  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     19:  *
                     20:  * Carnegie Mellon requests users of this software to return to
                     21:  *
                     22:  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
                     23:  *  School of Computer Science
                     24:  *  Carnegie Mellon University
                     25:  *  Pittsburgh PA 15213-3890
                     26:  *
                     27:  * any improvements or extensions that they make and grant Carnegie the
                     28:  * rights to redistribute these changes.
                     29:  */
                     30:
                     31: #include <sys/types.h>
                     32:
                     33: #include <machine/rpb.h>
                     34: #include <machine/prom.h>
                     35:
                     36: void
                     37: OSFpal()
                     38: {
                     39:        struct rpb *r;
                     40:        struct ctb *t;
                     41:        struct pcs *p;
                     42:        long result;
                     43:        int offset;
                     44:
                     45:        r = (struct rpb *)HWRPB_ADDR;
                     46:        offset = r->rpb_pcs_size * cpu_number();
                     47:        p = (struct pcs *)((u_int8_t *)r + r->rpb_pcs_off + offset);
                     48:
                     49:        printf("VMS PAL rev: 0x%lx, OSF PAL rev: 0x%lx\n",
                     50:            p->pcs_palrevisions[PALvar_OpenVMS],
                     51:            p->pcs_palrevisions[PALvar_OSF1]);
                     52:        (void)switch_palcode();
                     53: }
                     54:

CVSweb