| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: machdep.c,v 1.75 2009/11/27 03:23:09 rmind Exp $ */ | | 1 | /* $NetBSD: machdep.c,v 1.76 2009/12/01 16:20:52 skrll Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Matthew Fredette. | | 8 | * by Matthew Fredette. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -48,27 +48,27 @@ | | | @@ -48,27 +48,27 @@ |
48 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | | 48 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
49 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | | 49 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
50 | * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, | | 50 | * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, |
51 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | | 51 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
52 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | | 52 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
53 | * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 53 | * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
54 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | | 54 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
55 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | | 55 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
56 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | | 56 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
57 | * THE POSSIBILITY OF SUCH DAMAGE. | | 57 | * THE POSSIBILITY OF SUCH DAMAGE. |
58 | */ | | 58 | */ |
59 | | | 59 | |
60 | #include <sys/cdefs.h> | | 60 | #include <sys/cdefs.h> |
61 | __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.75 2009/11/27 03:23:09 rmind Exp $"); | | 61 | __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.76 2009/12/01 16:20:52 skrll Exp $"); |
62 | | | 62 | |
63 | #include "opt_cputype.h" | | 63 | #include "opt_cputype.h" |
64 | #include "opt_ddb.h" | | 64 | #include "opt_ddb.h" |
65 | #include "opt_kgdb.h" | | 65 | #include "opt_kgdb.h" |
66 | #include "opt_modular.h" | | 66 | #include "opt_modular.h" |
67 | #include "opt_useleds.h" | | 67 | #include "opt_useleds.h" |
68 | | | 68 | |
69 | #include <sys/param.h> | | 69 | #include <sys/param.h> |
70 | #include <sys/systm.h> | | 70 | #include <sys/systm.h> |
71 | #include <sys/signalvar.h> | | 71 | #include <sys/signalvar.h> |
72 | #include <sys/kernel.h> | | 72 | #include <sys/kernel.h> |
73 | #include <sys/proc.h> | | 73 | #include <sys/proc.h> |
74 | #include <sys/buf.h> | | 74 | #include <sys/buf.h> |
| @@ -1630,27 +1630,27 @@ hppa_pim64_dump(int check_type) | | | @@ -1630,27 +1630,27 @@ hppa_pim64_dump(int check_type) |
1630 | if (checks != NULL) { | | 1630 | if (checks != NULL) { |
1631 | PIM_WORD("\n\nCheck Type", checks->pim_check_type, | | 1631 | PIM_WORD("\n\nCheck Type", checks->pim_check_type, |
1632 | PIM_CHECK_BITS); | | 1632 | PIM_CHECK_BITS); |
1633 | PIM_WORD("\nCPU State", checks->pim_check_cpu_state, | | 1633 | PIM_WORD("\nCPU State", checks->pim_check_cpu_state, |
1634 | PIM_CPU_BITS PIM_CPU_HPMC_BITS); | | 1634 | PIM_CPU_BITS PIM_CPU_HPMC_BITS); |
1635 | PIM_WORD("\nCache Check", checks->pim_check_cache, | | 1635 | PIM_WORD("\nCache Check", checks->pim_check_cache, |
1636 | PIM_CACHE_BITS); | | 1636 | PIM_CACHE_BITS); |
1637 | PIM_WORD("\nTLB Check", checks->pim_check_tlb, | | 1637 | PIM_WORD("\nTLB Check", checks->pim_check_tlb, |
1638 | PIM_TLB_BITS); | | 1638 | PIM_TLB_BITS); |
1639 | PIM_WORD("\nBus Check", checks->pim_check_bus, | | 1639 | PIM_WORD("\nBus Check", checks->pim_check_bus, |
1640 | PIM_BUS_BITS); | | 1640 | PIM_BUS_BITS); |
1641 | PIM_WORD("\nAssist Check", checks->pim_check_assist, | | 1641 | PIM_WORD("\nAssist Check", checks->pim_check_assist, |
1642 | PIM_ASSIST_BITS); | | 1642 | PIM_ASSIST_BITS); |
1643 | printf("Assist State %u", checks->pim_check_assist_state); | | 1643 | printf("\nAssist State %u", checks->pim_check_assist_state); |
1644 | printf("\nSystem Responder 0x%016lx", | | 1644 | printf("\nSystem Responder 0x%016lx", |
1645 | (unsigned long)checks->pim_check_responder); | | 1645 | (unsigned long)checks->pim_check_responder); |
1646 | printf("\nSystem Requestor 0x%016lx", | | 1646 | printf("\nSystem Requestor 0x%016lx", |
1647 | (unsigned long)checks->pim_check_requestor); | | 1647 | (unsigned long)checks->pim_check_requestor); |
1648 | printf("\nPath Info 0x%08x", | | 1648 | printf("\nPath Info 0x%08x", |
1649 | checks->pim_check_path_info); | | 1649 | checks->pim_check_path_info); |
1650 | } | | 1650 | } |
1651 | } | | 1651 | } |
1652 | | | 1652 | |
1653 | void | | 1653 | void |
1654 | hppa_machine_check(int check_type) | | 1654 | hppa_machine_check(int check_type) |
1655 | { | | 1655 | { |
1656 | int pdc_pim_type; | | 1656 | int pdc_pim_type; |