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