git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Kernel/x86 - Slight fixes to PMM statistics
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
arch
/
armv7
/
include
/
proc.h
1
/*
2
* Acess2
3
* ARM7 Architecture
4
*
5
* proc.h - Arch-Dependent Process Management
6
*/
7
#ifndef _PROC_H_
8
#define _PROC_H_
9
10
#define MAX_CPUS 4
11
#define USER_MAX 0x80000000
12
13
// === STRUCTURES ===
14
typedef struct {
15
Uint32 IP, SP;
16
Uint32 UserIP, UserSP;
17
} tTaskState;
18
19
typedef struct {
20
Uint32 Base;
21
} tMemoryState;
22
23
typedef struct {
24
union {
25
Uint32 Num;
26
Uint32 Error;
27
};
28
union {
29
Uint32 Arg1;
30
Uint32 Return;
31
};
32
union {
33
Uint32 Arg2;
34
Uint32 RetHi;
35
};
36
Uint32 Arg3;
37
Uint32 Arg4;
38
Uint32 Arg5;
39
Uint32 Arg6; // R6
40
} tSyscallRegs;
41
42
// === MACROS ===
43
#define HALT() do{}while(0)
44
45
// === PROTOTYPES ===
46
47
#endif
48
UCC
git Repository :: git.ucc.asn.au