l1layout.h 806 字节
Newer Older
B
Bryan Wu 已提交
1 2 3 4 5 6 7 8 9 10
/*
 * l1layout.h
 * Defines a layout of L1 scratchpad memory that userspace can rely on.
 */

#ifndef _L1LAYOUT_H_
#define _L1LAYOUT_H_

#include <asm/blackfin.h>

11
#ifndef CONFIG_SMP
B
Bryan Wu 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#ifndef __ASSEMBLY__

/* Data that is "mapped" into the process VM at the start of the L1 scratch
   memory, so that each process can access it at a fixed address.  Used for
   stack checking.  */
struct l1_scratch_task_info
{
	/* Points to the start of the stack.  */
	void *stack_start;
	/* Not updated by the kernel; a user process can modify this to
	   keep track of the lowest address of the stack pointer during its
	   runtime.  */
	void *lowest_sp;
};

/* A pointer to the structure in memory.  */
28 29
#define L1_SCRATCH_TASK_INFO ((struct l1_scratch_task_info *)\
						get_l1_scratch_start())
B
Bryan Wu 已提交
30 31

#endif
32
#endif
B
Bryan Wu 已提交
33 34

#endif