summaryrefslogtreecommitdiff
path: root/src/arch/arm
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-11-27 23:35:47 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-11-27 23:35:47 (GMT)
commit7d6d3acb65586ad9512a38b58c16b9a21cdf98e0 (patch)
tree9ae21078e24c997b80a24d8d71ed5ad1be74c850 /src/arch/arm
parent3eacf14cc395e7fd0ab5dd5e9d22bb93a6a02979 (diff)
Saved memory space by sharing arch GObjects.
Diffstat (limited to 'src/arch/arm')
-rw-r--r--src/arch/arm/v7/Makefile.am1
-rw-r--r--src/arch/arm/v7/core.c66
-rw-r--r--src/arch/arm/v7/core.h40
3 files changed, 107 insertions, 0 deletions
diff --git a/src/arch/arm/v7/Makefile.am b/src/arch/arm/v7/Makefile.am
index 564716d..339bc29 100644
--- a/src/arch/arm/v7/Makefile.am
+++ b/src/arch/arm/v7/Makefile.am
@@ -4,6 +4,7 @@ noinst_LTLIBRARIES = libarcharmv7.la
libarcharmv7_la_SOURCES = \
arm.h arm.c \
context.h context.c \
+ core.h core.c \
cregister.h cregister.c \
fetch.h fetch.c \
helpers.h helpers.c \
diff --git a/src/arch/arm/v7/core.c b/src/arch/arm/v7/core.c
new file mode 100644
index 0000000..97fdb3d
--- /dev/null
+++ b/src/arch/arm/v7/core.c
@@ -0,0 +1,66 @@
+
+/* Chrysalide - Outil d'analyse de fichiers binaires
+ * core.c - chargement et déchargement des mécanismes internes de l'architecture ARMv7
+ *
+ * Copyright (C) 2016 Cyrille Bagard
+ *
+ * This file is part of Chrysalide.
+ *
+ * Chrysalide is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Chrysalide is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Foobar. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#include "core.h"
+
+
+
+/******************************************************************************
+* *
+* Paramètres : - *
+* *
+* Description : Met en place les mécanismes internes de l'architecture ARMv7.*
+* *
+* Retour : Bilan de l'opération. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool init_armv7_core(void)
+{
+ bool result; /* Bilan à renvoyer */
+
+ result = true;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : - *
+* *
+* Description : Supprime les mécanismes internes de l'architecture ARMv7. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void exit_armv7_core(void)
+{
+
+}
diff --git a/src/arch/arm/v7/core.h b/src/arch/arm/v7/core.h
new file mode 100644
index 0000000..ff0bcf7
--- /dev/null
+++ b/src/arch/arm/v7/core.h
@@ -0,0 +1,40 @@
+
+/* Chrysalide - Outil d'analyse de fichiers binaires
+ * core.h - prototypes pour le chargement et le déchargement des mécanismes internes de l'architecture ARMv7
+ *
+ * Copyright (C) 2016 Cyrille Bagard
+ *
+ * This file is part of Chrysalide.
+ *
+ * Chrysalide is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Chrysalide is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Foobar. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef _ARCH_ARM_V7_CORE_H
+#define _ARCH_ARM_V7_CORE_H
+
+
+#include <stdbool.h>
+
+
+
+/* Met en place les mécanismes internes de l'architecture ARMv7. */
+bool init_armv7_core(void);
+
+/* Supprime les mécanismes internes de l'architecture ARMv7. */
+void exit_armv7_core(void);
+
+
+
+#endif /* _ARCH_ARM_V7_CORE_H */