blob: d128291711a67fbd406d3a130265b774425a8f2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* include/asm-arm/processor.h
*
* Copyright (C) 1995 Russell King
*/
#ifndef __ASM_ARM_PROCESSOR_H
#define __ASM_ARM_PROCESSOR_H
struct fp_hard_struct {
unsigned int save[140/4]; /* as yet undefined */
};
struct fp_soft_struct {
unsigned int save[140/4]; /* undefined information */
};
union fp_state {
struct fp_hard_struct hard;
struct fp_soft_struct soft;
};
typedef unsigned long mm_segment_t; /* domain register */
#define DECLARE_THREAD_STRUCT \
struct thread_struct { \
unsigned long address; /* Address of fault */ \
unsigned long trap_no; /* Trap number */ \
unsigned long error_code; /* Error code of trap */ \
union fp_state fpstate; /* FPE save state */ \
EXTRA_THREAD_STRUCT \
}
#include <asm/arch/processor.h>
#include <asm/proc/processor.h>
#define INIT_TSS { \
0, \
0, \
0, \
{ { { 0, }, }, }, \
EXTRA_THREAD_STRUCT_INIT \
}
/* Forward declaration, a strange C thing */
struct mm_struct;
/* Free all resources held by a thread. */
extern void release_thread(struct task_struct *);
/* Copy and release all segment info associated with a VM */
extern void copy_segments(int nr, struct task_struct *p, struct mm_struct * mm);
extern void release_segments(struct mm_struct * mm);
#define copy_segments(nr, tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define init_task (init_task_union.task)
#define init_stack (init_task_union.stack)
#endif /* __ASM_ARM_PROCESSOR_H */
|