summaryrefslogtreecommitdiff
path: root/StdLib/LibC
diff options
context:
space:
mode:
authorHarry Liebel <Harry.Liebel@arm.com>2015-07-30 09:51:04 +0000
committerlersek <lersek@Edk2>2015-07-30 09:51:04 +0000
commit1bbb83b5267b8a6701a6acae504a2b2e6b5db569 (patch)
treec42482da4a77a01d4c4910a5fc89035aa6df3fa1 /StdLib/LibC
parentd799c0283259ed7709055aca3871e8f67f38610a (diff)
downloadedk2-platforms-1bbb83b5267b8a6701a6acae504a2b2e6b5db569.tar.xz
StdLib: Add support for AArch64
- Use some files from ARM version. - Use NetBSD software floating point library to provide floating point operations not handled directly by hardware floating point enabled GCC compiler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel <Harry.Liebel@arm.com> Reviewed-by: Olivier Martin <Olivier.Martin@arm.com> Reviewed-by: Daryl McDaniel <edk2-lists@mc2research.org> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18118 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/LibC')
-rw-r--r--StdLib/LibC/LibC.inf3
-rw-r--r--StdLib/LibC/Softfloat/Softfloat.inf11
-rw-r--r--StdLib/LibC/gdtoa/gdtoa.inf4
3 files changed, 17 insertions, 1 deletions
diff --git a/StdLib/LibC/LibC.inf b/StdLib/LibC/LibC.inf
index e44d8a8a23..f136306485 100644
--- a/StdLib/LibC/LibC.inf
+++ b/StdLib/LibC/LibC.inf
@@ -89,6 +89,9 @@
Main/Arm/floatunsidf.c
Main/Arm/flt_rounds.c
+[Sources.AARCH64]
+ Main/Arm/flt_rounds.c
+
[Binaries.IA32]
LIB|Main/Ia32/ftol2.obj|*|MSFT
diff --git a/StdLib/LibC/Softfloat/Softfloat.inf b/StdLib/LibC/Softfloat/Softfloat.inf
index 012190c257..99763bcb57 100644
--- a/StdLib/LibC/Softfloat/Softfloat.inf
+++ b/StdLib/LibC/Softfloat/Softfloat.inf
@@ -22,7 +22,7 @@
LIBRARY_CLASS = LibSoftfloat
#
-# VALID_ARCHITECTURES = ARM
+# VALID_ARCHITECTURES = ARM AARCH64
#
# Only tested with GCC
@@ -43,6 +43,15 @@
Arm/__aeabi_dcmpun.c
Arm/__aeabi_fcmpun.c
+[Sources.AARCH64]
+ bits64/softfloat.c
+ eqtf2.c
+ getf2.c
+ gttf2.c
+ letf2.c
+ lttf2.c
+ netf2.c
+
[Sources]
fpgetround.c
fpsetround.c
diff --git a/StdLib/LibC/gdtoa/gdtoa.inf b/StdLib/LibC/gdtoa/gdtoa.inf
index 48b7df403f..a23749a8cc 100644
--- a/StdLib/LibC/gdtoa/gdtoa.inf
+++ b/StdLib/LibC/gdtoa/gdtoa.inf
@@ -46,6 +46,10 @@
strtof.c
Ipf/strtold.c
+[Sources.AARCH64]
+ strtof.c
+ Ipf/strtold.c
+
[Sources]
strtod.c # Public interfaces
atof.c