| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: cpu.h,v 1.131 2020/08/17 03:19:35 mrg Exp $ */ | | 1 | /* $NetBSD: cpu.h,v 1.132 2021/03/29 01:47:45 simonb Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1992, 1993 | | 4 | * Copyright (c) 1992, 1993 |
5 | * The Regents of the University of California. All rights reserved. | | 5 | * The Regents of the University of California. All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to Berkeley by | | 7 | * This code is derived from software contributed to Berkeley by |
8 | * Ralph Campbell and Rick Macklem. | | 8 | * Ralph Campbell and Rick Macklem. |
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. |
| @@ -43,26 +43,28 @@ | | | @@ -43,26 +43,28 @@ |
43 | | | 43 | |
44 | #ifdef _LOCORE | | 44 | #ifdef _LOCORE |
45 | #error Use assym.h to get definitions from <mips/cpu.h> | | 45 | #error Use assym.h to get definitions from <mips/cpu.h> |
46 | #endif | | 46 | #endif |
47 | | | 47 | |
48 | #if defined(_KERNEL) || defined(_KMEMUSER) | | 48 | #if defined(_KERNEL) || defined(_KMEMUSER) |
49 | | | 49 | |
50 | #if defined(_KERNEL_OPT) | | 50 | #if defined(_KERNEL_OPT) |
51 | #include "opt_cputype.h" | | 51 | #include "opt_cputype.h" |
52 | #include "opt_lockdebug.h" | | 52 | #include "opt_lockdebug.h" |
53 | #include "opt_multiprocessor.h" | | 53 | #include "opt_multiprocessor.h" |
54 | #endif | | 54 | #endif |
55 | | | 55 | |
| | | 56 | #include <mips/frame.h> |
| | | 57 | |
56 | #include <sys/cpu_data.h> | | 58 | #include <sys/cpu_data.h> |
57 | #include <sys/device_if.h> | | 59 | #include <sys/device_if.h> |
58 | #include <sys/evcnt.h> | | 60 | #include <sys/evcnt.h> |
59 | #include <sys/kcpuset.h> | | 61 | #include <sys/kcpuset.h> |
60 | #include <sys/intr.h> | | 62 | #include <sys/intr.h> |
61 | | | 63 | |
62 | typedef struct cpu_watchpoint { | | 64 | typedef struct cpu_watchpoint { |
63 | register_t cw_addr; | | 65 | register_t cw_addr; |
64 | register_t cw_mask; | | 66 | register_t cw_mask; |
65 | uint32_t cw_asid; | | 67 | uint32_t cw_asid; |
66 | uint32_t cw_mode; | | 68 | uint32_t cw_mode; |
67 | } cpu_watchpoint_t; | | 69 | } cpu_watchpoint_t; |
68 | | | 70 | |