unicore32 additional architecture files: float point handling
PATCH 2/12 unicore32 additional architecture files: float point handling
Message-Id: <ca2658a5abba1e8d1ccd423724065490876d4316.1297842537.git.gxt@mprc.pku.edu.cn>
In-Reply-To: <[email protected]>
References: <[email protected]>
From: GuanXuetao <[email protected]>
Date: Sat, 15 Jan 2011 18:21:31 +0800
This patch implements support for float point unit, which using UniCore-F64 FPU hardware in UniCore32 ISA.
Signed-off-by Guan Xuetao <[email protected]>
Acked-by Arnd Bergmann <[email protected]>
--- arch/unicore32/include/asm/fpstate.h | 26 +++++++ arch/unicore32/include/asm/fpu-ucf64.h | 53 +++++++++++++ arch/unicore32/kernel/fpu-ucf64.c | 126 ++++++++++++++++++++++++++++++++ 3 files changed, 205 insertions(+), 0 deletions(-) create mode 100644 arch/unicore32/include/asm/fpstate.h create mode 100644 arch/unicore32/include/asm/fpu-ucf64.h create mode 100644 arch/unicore32/kernel/fpu-ucf64.c
arch/unicore32/include/asm/fpstate.h new file +26 -0
@@ -0,0 +1,26 @@ +/* +* linux/arch/unicore32/include/asm/fpstate.h +* +* Code specific to PKUnity SoC and UniCore ISA +* +* Copyright (C) 2001-2010 GUAN Xue-tao +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef __UNICORE_FPSTATE_H__ +#define __UNICORE_FPSTATE_H__ + +#ifndef __ASSEMBLY__ + +#define FP_REGS_NUMBER 33 + +struct fp_state { +unsigned int regs[FP_REGS_NUMBER ]; +} __attribute__((aligned (8 ))); + +#endif + +#endif
arch/unicore32/include/asm/fpu-ucf64.h new file +53 -0
53 lines not on this page · raw message
arch/unicore32/kernel/fpu-ucf64.c new file +126 -0
126 lines not on this page · raw message
Signature · 1 line
1.6.2.2