Annotation of sys/arch/hppa64/stand/libsa/machdep.c, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: machdep.c,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
! 2:
! 3: /*
! 4: * Copyright (c) 2005 Michael Shalayeff
! 5: * All rights reserved.
! 6: *
! 7: * Permission to use, copy, modify, and distribute this software for any
! 8: * purpose with or without fee is hereby granted, provided that the above
! 9: * copyright notice and this permission notice appear in all copies.
! 10: *
! 11: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
! 12: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
! 13: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
! 14: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
! 15: * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN
! 16: * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
! 17: * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
! 18: */
! 19:
! 20: #include <sys/param.h>
! 21: #include <sys/disklabel.h>
! 22: #include <sys/reboot.h>
! 23: #include "libsa.h"
! 24: #include <machine/iomod.h>
! 25: #include <machine/pdc.h>
! 26:
! 27: #include "dev_hppa64.h"
! 28:
! 29: extern struct stable_storage sstor; /* contents of Stable Storage */
! 30: int howto;
! 31: dev_t bootdev;
! 32:
! 33: void
! 34: machdep()
! 35: {
! 36: pdc_init();
! 37: #ifdef notyet
! 38: debug_init();
! 39: #endif
! 40: cninit();
! 41:
! 42: #ifdef PDCDEBUG
! 43: if (debug) {
! 44: int i;
! 45:
! 46: printf("SSTOR:\n");
! 47: printf("pri_boot="); DEVPATH_PRINT(&sstor.ss_pri_boot);
! 48: printf("alt_boot="); DEVPATH_PRINT(&sstor.ss_alt_boot);
! 49: printf("console ="); DEVPATH_PRINT(&sstor.ss_console);
! 50: printf("keyboard="); DEVPATH_PRINT(&sstor.ss_keyboard);
! 51: printf("mem=%d, fn=%s, osver=%d\nos={",
! 52: sstor.ss_fast_size, sstor.ss_filenames,
! 53: sstor.ss_os_version);
! 54: for (i = 0; i < sizeof(sstor.ss_os); i++)
! 55: printf ("%x%c", sstor.ss_os[i], (i%8)? ',' : '\n');
! 56:
! 57: printf("}\nPAGE0:\n");
! 58: printf("ivec=%x, pf=%p[%u], toc=%p[%u], rndz=%p, clk/10ms=%u\n",
! 59: PAGE0->ivec_special, PAGE0->ivec_mempf,
! 60: PAGE0->ivec_mempflen, PAGE0->ivec_toc,
! 61: PAGE0->ivec_toclen, PAGE0->ivec_rendz,
! 62: PAGE0->mem_10msec);
! 63: printf ("mem: cont=%u, phys=%u, pdc_spa=%u, resv=%u, free=%x\n"
! 64: "cpu_hpa=%x, pdc=%p, imm_hpa=%p[%u,%u], soft=%u\n",
! 65: PAGE0->memc_cont, PAGE0->memc_phsize, PAGE0->memc_adsize,
! 66: PAGE0->memc_resv, PAGE0->mem_free, PAGE0->mem_hpa,
! 67: PAGE0->mem_pdc, PAGE0->imm_hpa, PAGE0->imm_spa_size,
! 68: PAGE0->imm_max_mem, PAGE0->imm_soft_boot);
! 69:
! 70: printf("console: "); PZDEV_PRINT(&PAGE0->mem_cons);
! 71: printf("boot: "); PZDEV_PRINT(&PAGE0->mem_boot);
! 72: printf("keyboard: "); PZDEV_PRINT(&PAGE0->mem_kbd);
! 73: }
! 74: #endif
! 75: }
CVSweb