Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #ifndef KERN_sparc64_REGWIN_H_ |
37 | #ifndef KERN_sparc64_REGWIN_H_ |
38 | #define KERN_sparc64_REGWIN_H_ |
38 | #define KERN_sparc64_REGWIN_H_ |
39 | 39 | ||
40 | #include <arch/stack.h> |
40 | #include <arch/stack.h> |
41 | #include <arch/arch.h> |
41 | #include <arch/arch.h> |
- | 42 | #include <align.h> |
|
42 | 43 | ||
43 | #define TT_CLEAN_WINDOW 0x24 |
44 | #define TT_CLEAN_WINDOW 0x24 |
44 | #define TT_SPILL_0_NORMAL 0x80 /* kernel spills */ |
45 | #define TT_SPILL_0_NORMAL 0x80 /* kernel spills */ |
45 | #define TT_SPILL_1_NORMAL 0x84 /* userspace spills */ |
46 | #define TT_SPILL_1_NORMAL 0x84 /* userspace spills */ |
46 | #define TT_SPILL_2_NORMAL 0x88 /* spills to userspace window buffer */ |
47 | #define TT_SPILL_2_NORMAL 0x88 /* spills to userspace window buffer */ |
Line 70... | Line 71... | ||
70 | #define I4_OFFSET 96 |
71 | #define I4_OFFSET 96 |
71 | #define I5_OFFSET 104 |
72 | #define I5_OFFSET 104 |
72 | #define I6_OFFSET 112 |
73 | #define I6_OFFSET 112 |
73 | #define I7_OFFSET 120 |
74 | #define I7_OFFSET 120 |
74 | 75 | ||
- | 76 | /* Uspace Window Buffer constants. */ |
|
- | 77 | #define UWB_SIZE ((NWINDOWS - 1) * STACK_WINDOW_SAVE_AREA_SIZE) |
|
- | 78 | #define UWB_ALIGNMENT 1024 |
|
- | 79 | #define UWB_ASIZE ALIGN_UP(UWB_SIZE, UWB_ALIGNMENT) |
|
- | 80 | ||
75 | #ifdef __ASM__ |
81 | #ifdef __ASM__ |
76 | 82 | ||
77 | /* |
83 | /* |
78 | * Macro used by the nucleus and the primary context 0 during normal and other spills. |
84 | * Macro used by the nucleus and the primary context 0 during normal and other spills. |
79 | */ |
85 | */ |