RTEMS CPU Kit with SuperCore  4.11.2
registers.h
Go to the documentation of this file.
1 
9 /*
10  * COPYRIGHT (c) 1998 valette@crf.canon.fr
11  *
12  * The license and distribution terms for this file may be
13  * found in the file LICENSE in this distribution or at
14  * http://www.rtems.org/license/LICENSE.
15  */
16 
17 #ifndef _RTEMS_SCORE_REGISTERS_H
18 #define _RTEMS_SCORE_REGISTERS_H
19 
20 /*
21  * definition related to EFLAGS
22  */
23 #define EFLAGS_CARRY 0x1
24 #define EFLAGS_PARITY 0x4
25 
26 #define EFLAGS_AUX_CARRY 0x10
27 #define EFLAGS_ZERO 0x40
28 #define EFLAGS_SIGN 0x80
29 
30 #define EFLAGS_TRAP 0x100
31 #define EFLAGS_INTR_ENABLE 0x200
32 #define EFLAGS_DIRECTION 0x400
33 #define EFLAGS_OVERFLOW 0x800
34 
35 #define EFLAGS_IOPL_MASK 0x3000
36 #define EFLAGS_NESTED_TASK 0x8000
37 
38 #define EFLAGS_RESUME 0x10000
39 #define EFLAGS_VIRTUAL_MODE 0x20000
40 #define EFLAGS_ALIGN_CHECK 0x40000
41 #define EFLAGS_VIRTUAL_INTR 0x80000
42 
43 #define EFLAGS_VIRTUAL_INTR_PEND 0x100000
44 #define EFLAGS_ID 0x200000
45 
46 /*
47  * definitions related to CR0
48  */
49 #define CR0_PROTECTION_ENABLE 0x1
50 #define CR0_MONITOR_COPROC 0x2
51 #define CR0_COPROC_SOFT_EMUL 0x4
52 #define CR0_FLOATING_INSTR_EXCEPTION 0x8
53 
54 #define CR0_EXTENSION_TYPE 0x10
55 #define CR0_NUMERIC_ERROR 0x20
56 
57 #define CR0_WRITE_PROTECT 0x10000
58 #define CR0_ALIGMENT_MASK 0x40000
59 
60 #define CR0_NO_WRITE_THROUGH 0x20000000
61 #define CR0_PAGE_LEVEL_CACHE_DISABLE 0x40000000
62 #define CR0_PAGING 0x80000000
63 
64 /*
65  * definitions related to CR3
66  */
67 
68 #define CR3_PAGE_CACHE_DISABLE 0x10
69 #define CR3_PAGE_WRITE_THROUGH 0x8
70 #define CR3_PAGE_DIRECTORY_MASK 0xFFFFF000
71 
72 #endif