summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/bfin/bfin_l1layout.h
diff options
context:
space:
mode:
authorBernd Schmidt <bernds_cb1@t-online.de>2008-01-18 13:53:10 +0000
committerBernd Schmidt <bernds_cb1@t-online.de>2008-01-18 13:53:10 +0000
commitd22976dd5e16e8719abd5c542e17427eeece7ff6 (patch)
tree1ed5337d956a7f83d22a8c5b23280043091aad36 /libc/sysdeps/linux/bfin/bfin_l1layout.h
parent0375e472c58b5734a73ae5bf3ba8973fd2e38f8a (diff)
L1 memory support for the Blackfin. A couple new syscalls to manage L1
allocations, dma_memcpy to move stuff between L1 and main memory, and a new structure to describe the global data in L1 scratchpad memory.
Diffstat (limited to 'libc/sysdeps/linux/bfin/bfin_l1layout.h')
-rw-r--r--libc/sysdeps/linux/bfin/bfin_l1layout.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/bfin/bfin_l1layout.h b/libc/sysdeps/linux/bfin/bfin_l1layout.h
new file mode 100644
index 000000000..00efd2358
--- /dev/null
+++ b/libc/sysdeps/linux/bfin/bfin_l1layout.h
@@ -0,0 +1,17 @@
+#define L1_SCRATCH_START 0xFFB00000
+
+/* 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. */
+#define L1_SCRATCH_TASK_INFO ((struct l1_scratch_task_info *)L1_SCRATCH_START)