Linux 2.6.31.6
[linux/fpc-iii.git] / arch / blackfin / include / asm / l1layout.h
blob79dbefaa5bef1701484a2753e871cc7a8c72d2ae
1 /*
2 * l1layout.h
3 * Defines a layout of L1 scratchpad memory that userspace can rely on.
4 */
6 #ifndef _L1LAYOUT_H_
7 #define _L1LAYOUT_H_
9 #include <asm/blackfin.h>
11 #ifndef CONFIG_SMP
12 #ifndef __ASSEMBLY__
14 /* Data that is "mapped" into the process VM at the start of the L1 scratch
15 memory, so that each process can access it at a fixed address. Used for
16 stack checking. */
17 struct l1_scratch_task_info
19 /* Points to the start of the stack. */
20 void *stack_start;
21 /* Not updated by the kernel; a user process can modify this to
22 keep track of the lowest address of the stack pointer during its
23 runtime. */
24 void *lowest_sp;
27 /* A pointer to the structure in memory. */
28 #define L1_SCRATCH_TASK_INFO ((struct l1_scratch_task_info *)\
29 get_l1_scratch_start())
31 #endif
32 #endif
34 #endif