summaryrefslogtreecommitdiffstats
path: root/sys/arm/include
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-05-17 00:53:12 +0000
committerian <ian@FreeBSD.org>2014-05-17 00:53:12 +0000
commita8f1dca86b2bf3b15991d0ef01e402a7208db326 (patch)
treea678b33cef5a4d49b1c5fdb050ea93cf7bea3287 /sys/arm/include
parent690d060e370721ffe7479c7ed9ba5469f9453d33 (diff)
downloadFreeBSD-src-a8f1dca86b2bf3b15991d0ef01e402a7208db326.zip
FreeBSD-src-a8f1dca86b2bf3b15991d0ef01e402a7208db326.tar.gz
MFC 257774, 256760, 262916, 262905, 262918, 262919, 262920, 262921, 262924,
262925, 262929, 262932, 262935, 262940, 262941, 262942, 262948, 262949, 262950 Strip arm/conf/DEFAULTS down to just items that are mandatory for running the architecture. Move all the files named foo/common.c to foo/foo_common.c Initial cut for DTS on the hl201 board. Add commented out dts for sam9260ek as well as early printf support. Make clock optional on uart nodes, then back it out ("I don't know what I was thinking, but it is lame.") Set the baud rate if it isn't 0 Make at91_soc_id() public. Properly round at91 resource on unmapping. Move AT91 AIC related stuff to own file. Fix another bug in multicast filtering. i.MX uses 6 bits from MSB in LE CRC32 for the hash value, not the lowest 6 bits in BE CRC32. Follow r262916 with one more config file that references a renamed common.c Remove bogus AT91 define that causes compile errors. Most of the defines for SAM9X are going away soonish anyway (once FDT works), but until then... Remove all dregs of a per-thread undefined-exception-mode stack. Rework the VFP code that handles demand-based save and restore of state. Always call vfp_discard() on thread death. When a thread begins life it doesn't own the VFP hardware state on any cpu. Make undefined exception entry MP-safe.
Diffstat (limited to 'sys/arm/include')
-rw-r--r--sys/arm/include/param.h6
-rw-r--r--sys/arm/include/pcb.h1
-rw-r--r--sys/arm/include/pcpu.h3
-rw-r--r--sys/arm/include/vfp.h4
4 files changed, 7 insertions, 7 deletions
diff --git a/sys/arm/include/param.h b/sys/arm/include/param.h
index 15fc279..5cd0b7b 100644
--- a/sys/arm/include/param.h
+++ b/sys/arm/include/param.h
@@ -125,10 +125,8 @@
#define KSTACK_GUARD_PAGES 1
#endif /* !KSTACK_GUARD_PAGES */
-#define USPACE_SVC_STACK_TOP KSTACK_PAGES * PAGE_SIZE
-#define USPACE_SVC_STACK_BOTTOM (USPACE_SVC_STACK_TOP - 0x1000)
-#define USPACE_UNDEF_STACK_TOP (USPACE_SVC_STACK_BOTTOM - 0x10)
-#define USPACE_UNDEF_STACK_BOTTOM (FPCONTEXTSIZE + 10)
+#define USPACE_SVC_STACK_TOP (KSTACK_PAGES * PAGE_SIZE)
+
/*
* Mach derived conversion macros
*/
diff --git a/sys/arm/include/pcb.h b/sys/arm/include/pcb.h
index 8a762aa..0806cd8 100644
--- a/sys/arm/include/pcb.h
+++ b/sys/arm/include/pcb.h
@@ -61,7 +61,6 @@ struct pcb_arm32 {
u_int pcb32_sp; /* used */
u_int pcb32_lr;
u_int pcb32_pc;
- u_int pcb32_und_sp;
};
#define pcb_pagedir un_32.pcb32_pagedir
#define pcb_pl1vec un_32.pcb32_pl1vec
diff --git a/sys/arm/include/pcpu.h b/sys/arm/include/pcpu.h
index 1771a8e..ee79343 100644
--- a/sys/arm/include/pcpu.h
+++ b/sys/arm/include/pcpu.h
@@ -46,9 +46,8 @@ struct vmspace;
unsigned int pc_vfpsid; \
unsigned int pc_vfpmvfr0; \
unsigned int pc_vfpmvfr1; \
- struct thread *pc_vfpcthread; \
struct pmap *pc_curpmap; \
- char __pad[133]
+ char __pad[137]
#else
#define PCPU_MD_FIELDS \
char __pad[157]
diff --git a/sys/arm/include/vfp.h b/sys/arm/include/vfp.h
index 623f0d0..befba18 100644
--- a/sys/arm/include/vfp.h
+++ b/sys/arm/include/vfp.h
@@ -126,6 +126,10 @@
#define COPROC10 (0x3 << 20)
#define COPROC11 (0x3 << 22)
+#ifndef LOCORE
void vfp_init(void);
+void vfp_store(struct vfp_state *, boolean_t);
+void vfp_discard(struct thread *);
+#endif
#endif
OpenPOWER on IntegriCloud