svn commit: r323583 - in head/sys/arm: arm include

John Baldwin jhb at FreeBSD.org
Thu Sep 14 15:06:30 UTC 2017


Author: jhb
Date: Thu Sep 14 15:06:29 2017
New Revision: 323583
URL: https://svnweb.freebsd.org/changeset/base/323583

Log:
  Export get/set_vfpcontext from machdep.c.
  
  Should have been part of the previous commit to add ptrace operations
  for VFP registers.
  
  MFC after:	1 month

Modified:
  head/sys/arm/arm/machdep.c
  head/sys/arm/include/vfp.h

Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c	Thu Sep 14 15:03:43 2017	(r323582)
+++ head/sys/arm/arm/machdep.c	Thu Sep 14 15:06:29 2017	(r323583)
@@ -405,7 +405,7 @@ exec_setregs(struct thread *td, struct image_params *i
 /*
  * Get machine VFP context.
  */
-static void
+void
 get_vfpcontext(struct thread *td, mcontext_vfp_t *vfp)
 {
 	struct pcb *pcb;
@@ -425,7 +425,7 @@ get_vfpcontext(struct thread *td, mcontext_vfp_t *vfp)
 /*
  * Set machine VFP context.
  */
-static void
+void
 set_vfpcontext(struct thread *td, mcontext_vfp_t *vfp)
 {
 	struct pcb *pcb;

Modified: head/sys/arm/include/vfp.h
==============================================================================
--- head/sys/arm/include/vfp.h	Thu Sep 14 15:03:43 2017	(r323582)
+++ head/sys/arm/include/vfp.h	Thu Sep 14 15:06:29 2017	(r323583)
@@ -142,6 +142,8 @@ struct vfp_state {
 };
 
 #ifdef _KERNEL
+void	get_vfpcontext(struct thread *, mcontext_vfp_t *);
+void	set_vfpcontext(struct thread *, mcontext_vfp_t *);
 void    vfp_init(void);
 void    vfp_store(struct vfp_state *, boolean_t);
 void    vfp_discard(struct thread *);


More information about the svn-src-head mailing list