]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/low_trace.h
627b2e68c3191222c0f6d85fa1468674107fb39d
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
36 * These are the structures and constants used for the low-level trace
47 #pragma pack(4) /* Make sure the structure stays as we defined it */
48 typedef struct LowTraceRecord
{
50 unsigned short LTR_cpu
; /* 0000 - CPU address */
51 unsigned short LTR_excpt
; /* 0002 - Exception code */
52 unsigned int LTR_timeHi
; /* 0004 - High order time */
53 unsigned int LTR_timeLo
; /* 0008 - Low order time */
54 unsigned int LTR_cr
; /* 000C - CR */
55 unsigned int LTR_dsisr
; /* 0010 - DSISR */
56 unsigned int LTR_rsvd0
; /* 0014 - reserved */
57 uint64_t LTR_srr0
; /* 0018 - SRR0 */
59 uint64_t LTR_srr1
; /* 0020 - SRR1 */
60 uint64_t LTR_dar
; /* 0028 - DAR */
61 uint64_t LTR_save
; /* 0030 - savearea */
62 uint64_t LTR_lr
; /* 0038 - LR */
64 uint64_t LTR_ctr
; /* 0040 - CTR */
65 uint64_t LTR_r0
; /* 0048 - R0 */
66 uint64_t LTR_r1
; /* 0050 - R1 */
67 uint64_t LTR_r2
; /* 0058 - R2 */
69 uint64_t LTR_r3
; /* 0060 - R3 */
70 uint64_t LTR_r4
; /* 0068 - R4 */
71 uint64_t LTR_r5
; /* 0070 - R5 */
72 uint64_t LTR_r6
; /* 0078 - R6 */
77 #pragma pack(4) /* Make sure the structure stays as we defined it */
78 typedef struct traceWork
{
80 unsigned int traceCurr
; /* Address of next slot */
81 unsigned int traceMask
; /* Types to be traced */
82 unsigned int traceStart
; /* Start of trace table */
83 unsigned int traceEnd
; /* End of trace table */
84 unsigned int traceMsnd
; /* Saved trace mask */
85 unsigned int traceSize
; /* Size of trace table. Min 1 page */
86 unsigned int traceGas
[2];
90 extern traceWork trcWork
;
91 extern unsigned int lastTrace
; /* Value of low-level exception trace controls */
94 #endif /* ifndef _LOW_TRACE_H_ */