diff options
Diffstat (limited to 'include/asm-blackfin/l1layout.h')
-rw-r--r-- | include/asm-blackfin/l1layout.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/asm-blackfin/l1layout.h b/include/asm-blackfin/l1layout.h new file mode 100644 index 000000000000..c13ded777828 --- /dev/null +++ b/include/asm-blackfin/l1layout.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * l1layout.h | ||
3 | * Defines a layout of L1 scratchpad memory that userspace can rely on. | ||
4 | */ | ||
5 | |||
6 | #ifndef _L1LAYOUT_H_ | ||
7 | #define _L1LAYOUT_H_ | ||
8 | |||
9 | #include <asm/blackfin.h> | ||
10 | |||
11 | #ifndef __ASSEMBLY__ | ||
12 | |||
13 | /* Data that is "mapped" into the process VM at the start of the L1 scratch | ||
14 | memory, so that each process can access it at a fixed address. Used for | ||
15 | stack checking. */ | ||
16 | struct l1_scratch_task_info | ||
17 | { | ||
18 | /* Points to the start of the stack. */ | ||
19 | void *stack_start; | ||
20 | /* Not updated by the kernel; a user process can modify this to | ||
21 | keep track of the lowest address of the stack pointer during its | ||
22 | runtime. */ | ||
23 | void *lowest_sp; | ||
24 | }; | ||
25 | |||
26 | /* A pointer to the structure in memory. */ | ||
27 | #define L1_SCRATCH_TASK_INFO ((struct l1_scratch_task_info *)L1_SCRATCH_START) | ||
28 | |||
29 | #endif | ||
30 | |||
31 | #endif | ||