]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/low_trace.h
90551671c1807bcc80a726925554226e98c332cb
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
31 * These are the structures and constants used for the low-level trace
42 typedef struct LowTraceRecord
{
44 unsigned short LTR_cpu
; /* 0000 - CPU address */
45 unsigned short LTR_excpt
; /* 0002 - Exception code */
46 unsigned int LTR_timeHi
; /* 0004 - High order time */
47 unsigned int LTR_timeLo
; /* 0008 - Low order time */
48 unsigned int LTR_cr
; /* 000C - CR */
49 unsigned int LTR_srr0
; /* 0010 - SRR0 */
50 unsigned int LTR_srr1
; /* 0014 - SRR1 */
51 unsigned int LTR_dar
; /* 0018 - DAR */
52 unsigned int LTR_save
; /* 001C - savearea */
54 unsigned int LTR_lr
; /* 0020 - LR */
55 unsigned int LTR_ctr
; /* 0024 - CTR */
56 unsigned int LTR_r0
; /* 0028 - R0 */
57 unsigned int LTR_r1
; /* 002C - R1 */
58 unsigned int LTR_r2
; /* 0030 - R2 */
59 unsigned int LTR_r3
; /* 0034 - R3 */
60 unsigned int LTR_r4
; /* 0038 - R4 */
61 unsigned int LTR_r5
; /* 003C - R5 */
65 typedef struct traceWork
{
67 unsigned int traceCurr
; /* Address of next slot */
68 unsigned int traceMask
; /* Types to be traced */
69 unsigned int traceStart
; /* Start of trace table */
70 unsigned int traceEnd
; /* End of trace table */
71 unsigned int traceMsnd
; /* Saved trace mask */
72 unsigned int traceGas
[3];
75 extern traceWork trcWork
;
76 extern unsigned int lastTrace
; /* Value of low-level exception trace controls */
79 #endif /* ifndef _LOW_TRACE_H_ */