summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-support.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-support.patch
downloadmeta-openembedded-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-support.patch')
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-support.patch88
1 files changed, 88 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-support.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-support.patch
new file mode 100644
index 0000000000..ceac6b4283
--- /dev/null
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-support.patch
@@ -0,0 +1,88 @@
1Upstream-Status: Pending
2
3From 52b8430eb4f03e35721f29862de33041fe9c9768 Mon Sep 17 00:00:00 2001
4From: Steve Capper <steve.capper@linaro.org>
5Date: Wed, 10 Apr 2013 14:51:12 +0100
6Subject: [PATCH] Aarch64 support.
7
8This patch adds support for Aarch64.
9
10As with ARMv7, We do not add the xBT/xBDT style linker scripts as
11these have been deprecated in favour of adjusting the page sizes
12via command line parameter to ld.
13
14Signed-off-by: Steve Capper <steve.capper@linaro.org>
15---
16 Makefile | 7 +++++++
17 sys-aarch64elf_linux.S | 34 ++++++++++++++++++++++++++++++++++
18 2 files changed, 41 insertions(+)
19 create mode 100644 sys-aarch64elf_linux.S
20
21diff --git a/Makefile b/Makefile
22index 48205af..28ceade 100644
23--- a/Makefile
24+++ b/Makefile
25@@ -57,6 +57,12 @@ TMPLIB32 = lib
26 ELF32 += armelf_linux_eabi
27 CUSTOM_LDSCRIPTS = no
28 else
29+ifeq ($(ARCH),aarch64)
30+CC64 = gcc
31+ELF64 = aarch64elf_linux
32+TMPLIB64 = lib64
33+CUSTOM_LDSCRIPTS = no
34+else
35 ifeq ($(ARCH),i386)
36 CC32 = gcc
37 ELF32 = elf_i386
38@@ -100,6 +106,7 @@ endif
39 endif
40 endif
41 endif
42+endif
43
44 ifdef CC32
45 OBJDIRS += obj32
46diff --git a/sys-aarch64elf_linux.S b/sys-aarch64elf_linux.S
47new file mode 100644
48index 0000000..699ff4c
49--- /dev/null
50+++ b/sys-aarch64elf_linux.S
51@@ -0,0 +1,34 @@
52+/*
53+ * libhugetlbfs - Easy use of Linux hugepages
54+ * Copyright (C) 2013 Linaro Ltd.
55+ *
56+ * This library is free software; you can redistribute it and/or
57+ * modify it under the terms of the GNU Lesser General Public License
58+ * version 2.1 as published by the Free Software Foundation.
59+ *
60+ * This library is distributed in the hope that it will be useful, but
61+ * WITHOUT ANY WARRANTY; without even the implied warranty of
62+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
63+ * Lesser General Public License for more details.
64+ *
65+ * You should have received a copy of the GNU Lesser General Public
66+ * License along with this library; if not, write to the Free Software
67+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
68+ */
69+
70+ .text
71+
72+ .globl direct_syscall
73+
74+
75+direct_syscall:
76+ uxtw x8, w0
77+ mov x0, x1
78+ mov x1, x2
79+ mov x2, x3
80+ mov x3, x4
81+ mov x4, x5
82+ mov x5, x6
83+ mov x6, x7
84+ svc 0x0
85+ RET
86--
871.7.9.5
88