Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/include/mach/arm/thread_status.h

Source at commit 1270 created 12 years 8 months ago.
By meklort, Add arm headers. update makefiles
1/*
2 * Copyright (c) 2007 Apple Inc. All rights reserved.
3 */
4/*
5 * FILE_ID: thread_status.h
6 */
7
8
9#ifndef _ARM_THREAD_STATUS_H_
10#define _ARM_THREAD_STATUS_H_
11
12#include <mach/arm/_structs.h>
13#include <mach/message.h>
14#include <mach/arm/thread_state.h>
15
16/*
17 * Support for determining the state of a thread
18 */
19
20
21/*
22 * Flavors
23 */
24#define ARM_THREAD_STATE1
25#define ARM_VFP_STATE2
26#define ARM_EXCEPTION_STATE3
27#define ARM_DEBUG_STATE 4
28#define THREAD_STATE_NONE 5
29
30
31#define VALID_THREAD_STATE_FLAVOR(x) \
32((x == ARM_THREAD_STATE) || \
33 (x == ARM_VFP_STATE) || \
34 (x == ARM_EXCEPTION_STATE) || \
35 (x == ARM_DEBUG_STATE) || \
36 (x == THREAD_STATE_NONE ))
37
38typedef _STRUCT_ARM_THREAD_STATEarm_thread_state_t;
39typedef _STRUCT_ARM_VFP_STATEarm_vfp_state_t;
40typedef _STRUCT_ARM_EXCEPTION_STATEarm_exception_state_t;
41typedef _STRUCT_ARM_DEBUG_STATE arm_debug_state_t;
42
43#define ARM_THREAD_STATE_COUNT ((mach_msg_type_number_t) \
44 (sizeof (arm_thread_state_t)/sizeof(uint32_t)))
45
46#define ARM_VFP_STATE_COUNT ((mach_msg_type_number_t) \
47 (sizeof (arm_vfp_state_t)/sizeof(uint32_t)))
48
49#define ARM_EXCEPTION_STATE_COUNT ((mach_msg_type_number_t) \
50 (sizeof (arm_exception_state_t)/sizeof(uint32_t)))
51
52#define ARM_DEBUG_STATE_COUNT ((mach_msg_type_number_t) \
53 (sizeof (arm_debug_state_t)/sizeof(uint32_t)))
54
55#define MACHINE_THREAD_STATE ARM_THREAD_STATE
56#define MACHINE_THREAD_STATE_COUNT ARM_THREAD_STATE_COUNT
57
58/*
59 * Largest state on this machine:
60 */
61#define THREAD_MACHINE_STATE_MAXTHREAD_STATE_MAX
62
63
64#endif /* _ARM_THREAD_STATUS_H_ */
65

Archive Download this file

Revision: 1270