diff options
author | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-01-15 18:21:31 +0800 |
---|---|---|
committer | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-03-17 09:19:11 +0800 |
commit | d9bc15794d122cb7bdc9a069d22f3d3166dd31d4 (patch) | |
tree | 67f80672dd1770c7c12179766517e29b35fc02d4 /arch/unicore32/include/asm/fpstate.h | |
parent | 64909882862e9bb88aa6177e3f92056f5601b3e3 (diff) | |
download | linux-d9bc15794d122cb7bdc9a069d22f3d3166dd31d4.tar.bz2 |
unicore32 additional architecture files: float point handling
This patch implements support for float point unit, which using UniCore-F64 FPU hardware
in UniCore32 ISA.
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/unicore32/include/asm/fpstate.h')
-rw-r--r-- | arch/unicore32/include/asm/fpstate.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/unicore32/include/asm/fpstate.h b/arch/unicore32/include/asm/fpstate.h new file mode 100644 index 000000000000..ba97fac6220d --- /dev/null +++ b/arch/unicore32/include/asm/fpstate.h @@ -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 |