[SPARC] Fix fpu_fr.fpu_dregs size in sys/ucontext.h
diff mbox

Message ID 877fzh4qdp.fsf@oracle.com
State New
Headers show

Commit Message

Jose E. Marchesi Oct. 30, 2014, 1:51 p.m. UTC
Hi.

I just noticed a small typo in sys/ucontext.h.  The attached patch fixes
it.

Tested in sparc64-unknown-linux-gnu.

2014-10-30  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
	the size of the fpu_fr.fpu_dregs[] array.

Comments

David Miller Nov. 1, 2014, 8:45 p.m. UTC | #1
From: jose.marchesi@oracle.com (Jose E. Marchesi)
Date: Thu, 30 Oct 2014 14:51:46 +0100

> I just noticed a small typo in sys/ucontext.h.  The attached patch fixes
> it.
> 
> Tested in sparc64-unknown-linux-gnu.
> 
> 2014-10-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
> 
> 	* sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
> 	the size of the fpu_fr.fpu_dregs[] array.

Looks good, I'll install this change, thanks.

Patch
diff mbox

diff --git a/sysdeps/unix/sysv/linux/sparc/sys/ucontext.h b/sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
index d9f1c0f..9496333 100644
--- a/sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
+++ b/sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
@@ -202,7 +202,7 @@  typedef struct fpu
   {
     union {				/* FPU floating point regs */
       unsigned		fpu_regs[32];	/* 32 singles */
-      double            fpu_dregs[16];	/* 32 doubles */
+      double            fpu_dregs[32];	/* 32 doubles */
       long double	fpu_qregs[16];  /* 16 quads */
     } fpu_fr;
     struct fq       *fpu_q;		/* ptr to array of FQ entries */