[PATCH 2/5] libcpu/libmm shared files and stubs

Hesham AL-Matary heshamelmatary at gmail.com
Mon Aug 26 00:14:52 UTC 2013


---
 c/src/lib/libcpu/shared/include/mm.h              | 29 +++++++++++++++++++++++
 c/src/lib/libcpu/shared/src/no_memorymanagement.c | 16 +++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 c/src/lib/libcpu/shared/include/mm.h
 create mode 100644 c/src/lib/libcpu/shared/src/no_memorymanagement.c

diff --git a/c/src/lib/libcpu/shared/include/mm.h b/c/src/lib/libcpu/shared/include/mm.h
new file mode 100644
index 0000000..f8a9617
--- /dev/null
+++ b/c/src/lib/libcpu/shared/include/mm.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2013 Gedare Bloom.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#ifndef __LIBCPU_MM_H
+#define __LIBCPU_MM_H
+
+#include <rtems/score/mmimpl.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void _CPU_Memory_management_Initialize(void);
+
+void _CPU_Memory_management_Set_attributes(
+  uintptr_t base,
+  size_t size,
+  uint32_t attr
+);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/c/src/lib/libcpu/shared/src/no_memorymanagement.c b/c/src/lib/libcpu/shared/src/no_memorymanagement.c
new file mode 100644
index 0000000..98540c7
--- /dev/null
+++ b/c/src/lib/libcpu/shared/src/no_memorymanagement.c
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2013 Hesham AL-Matary
+ * Copyright (c) 2013 Gedare Bloom.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#include <rtems.h>
+#include <libcpu/mm.h>
+
+void _CPU_Memory_management_Initialize( void ) { }
+
+void _CPU_Memory_management_Set_attributes( uintptr_t base, size_t size, uint32_t flags ) { }
+
-- 
1.8.3.1




More information about the devel mailing list