[PATCH] Modify raspberrypi mm_config_table to map GPIO and registers.

2013-10-14 Thread Hesham AL-Matary
Changes include reverting back to setting all page-table section entries as invalid and modify mm_config_table to apply the correct memory attributes for raspbberypi memory sections at startup. The newly added entry at mm_config_table maps raspberrypi GPIO and other registers found at raspberrypi

[PATCH 1/2] Add a new necessary definition needed for raspberrypi MMU support

2013-09-28 Thread Hesham AL-Matary
.h index 3a97a2c..a9d4947 100644 --- a/c/src/lib/libcpu/arm/shared/include/arm-cp15.h +++ b/c/src/lib/libcpu/arm/shared/include/arm-cp15.h @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2013 Hesham AL-Matary * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. * * embedded

[PATCH 2/2] Shared MMU initialization for ARM BSPs and RaspberryPi MMU support

2013-09-28 Thread Hesham AL-Matary
rthooks.c b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c index a224168..71b2ff1 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c +++ b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2013. Hesham AL-Matary *

[PATCH 3/3] MMU support for RaspberryPi BSP

2013-09-16 Thread Hesham AL-Matary
.c +++ b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2013. Hesham AL-Matary * Copyright (c) 2013 by Alan Cudmore * based on work by: * Copyright (c) 2009 @@ -24,33 +25,16 @@ #include #include #include -#include - -static void BSP_

[PATCH 2/3] shared MMU initialization for ARM BSPs

2013-09-16 Thread Hesham AL-Matary
/null +++ b/c/src/lib/libbsp/arm/shared/mminit.c @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2013 Hesham AL-Matary. + * + * 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 +#include

[PATCH 1/3] Add a new necessary definition needed for raspberrypi MMU support

2013-09-16 Thread Hesham AL-Matary
-cp15.h index 0117a5e..17cab18 100644 --- a/c/src/lib/libcpu/arm/shared/include/arm-cp15.h +++ b/c/src/lib/libcpu/arm/shared/include/arm-cp15.h @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2013 Hesham AL-Matary * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. * * embedded

[PATCH 5/6] libmm-arm-bsps-support-raspberrypi-realview-xilinx_zynq Modifications for ARM BSPs to support libmm. Each BSP defines its memory configuration table which describes memory regions and thei

2013-09-12 Thread Hesham AL-Matary
oks.c b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c index a224168..bb887ca 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c +++ b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2013. Hesham AL-Matary * Copyrigh

[PATCH 1/6] libmm-score-api. The high-level libmm API should be used by applications. It helps developers to manage memory by setting generic and target-independent protection and cache attributes for

2013-09-12 Thread Hesham AL-Matary
/cpukit/score/include/rtems/score/mm.h new file mode 100644 index 000..5b1bdde --- /dev/null +++ b/cpukit/score/include/rtems/score/mm.h @@ -0,0 +1,60 @@ +/** + * @file + * + * @brief Manages use of MPU/MMU units to provide memory management. + */ + +/* + * Copyright (c) 2013 Hesham Al-Matary

[PATCH 6/6] libmm-test-cases. mmtest1 defines some memory regions and call libmm API to apply attributes for these regions. mmtest2 defines memory regions with attributes, set it up, and trigger some

2013-09-11 Thread Hesham AL-Matary
/libtests/mmtest1/init.c @@ -0,0 +1,45 @@ +/* Init + * + * This routine is the initialization task for this test program. + * + */ + +/* + * Copyright (c) 2012-2013 Hesham Al-Matary. + * Copyright (c) 2013 Gedare Bloom. + * + * The license and distribution terms for this file may be + * found in the file

[PATCH 2/6] arm-cp15-new-definitions New definitions for arm-cp15 Fault Status Register and ARMv6 control register.

2013-09-11 Thread Hesham AL-Matary
/arm-cp15.h +++ b/c/src/lib/libcpu/arm/shared/include/arm-cp15.h @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2013 Hesham AL-Matary * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. * * embedded brains GmbH @@ -139,6 +140,7 @@ extern "C" { #define ARM_CP15_CTR

[PATCH 4/6] libmm-libbsp-arm-shared. libmm low-level implementation that can be shared between many ARM targets. mminit.c contains initialization function for arm-cp15 and setup page tables. After tha

2013-09-11 Thread Hesham AL-Matary
/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h @@ -1,4 +1,5 @@ -/* +/* + * Copyright (c) 2013 Hesham AL-Matary. * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. * * embedded brains GmbH @@ -89,7 +90,7

[PATCH 3/6] libmm-libbsp-shared. Files shared between all target BSPs and low-level implementations for libmm. These shared files contain mm.h which is a link between high-level score api and low-leve

2013-09-11 Thread Hesham AL-Matary
shared/src/no_memorymanagement.c b/c/src/lib/libbsp/shared/src/no_memorymanagement.c new file mode 100644 index 000..1a5fc63 --- /dev/null +++ b/c/src/lib/libbsp/shared/src/no_memorymanagement.c @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2013 Hesham AL-Matary + * Copyright (c) 2013 Gedare Bloom. + * + * The l

[PATCH 4/5] libmm support for realview, xilinx_zynq, and raspberry pi BSPs

2013-08-25 Thread Hesham AL-Matary
i/startup/bspstarthooks.c b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c index a224168..81f44c6 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c +++ b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2013. Hesham AL

[PATCH 5/5] libmm test cases

2013-08-25 Thread Hesham AL-Matary
+++ b/testsuites/libtests/mmtest1/init.c @@ -0,0 +1,62 @@ +/* Init + * + * This routine is the initialization task for this test program. + * + */ + +/* + * Copyright (c) 2012-2013 Hesham Al-Matary. + * Copyright (c) 2013 Gedare Bloom. + * + * The license and distribution terms for this file may be

[PATCH 1/5] libmm score API

2013-08-25 Thread Hesham AL-Matary
/cpukit/score/include/rtems/score/mm.h new file mode 100644 index 000..43f6fc9 --- /dev/null +++ b/cpukit/score/include/rtems/score/mm.h @@ -0,0 +1,52 @@ +/** + * @file + * + * @brief Manages use of MPU/MMU units to provide memory management. + */ + +/* + * Copyright (c) 2013 Hesham Al-Matary

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

2013-08-25 Thread Hesham AL-Matary
0..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 a

[PATCH 3/5] Shared libmm implemenation for ARM BSPs

2013-08-25 Thread Hesham AL-Matary
/arm-cp15.h b/c/src/lib/libcpu/arm/shared/include/arm-cp15.h index 0117a5e..20eccbb 100644 --- a/c/src/lib/libcpu/arm/shared/include/arm-cp15.h +++ b/c/src/lib/libcpu/arm/shared/include/arm-cp15.h @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2013 Hesham AL-Matary * Copyright (c) 2009-2013

[PATCH 1/2] libmm score and stubs

2013-07-23 Thread Hesham AL-Matary
ement.c b/c/src/lib/libcpu/shared/src/no_memorymanagement.c new file mode 100644 index 000..f5380a0 --- /dev/null +++ b/c/src/lib/libcpu/shared/src/no_memorymanagement.c @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2013 Hesham AL-Matary + * Copyright (c) 2013 Gedare Bloom. + * + * The license and di

[PATCH 1/4] Add libmm score changes

2013-07-13 Thread Hesham AL-Matary
/rtems/score/mm.h @@ -0,0 +1,67 @@ +/** + * @file + * + * @brief Manages use of MPU/MMU units to provide memory management. + */ + +/* + * 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

[PATCH 2/4] Add cpukit shared libmm header and stubs

2013-07-13 Thread Hesham AL-Matary
.c @@ -0,0 +1,17 @@ +/* + * 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 +#includ

[PATCH 4/4] Add mmtest1 test case

2013-07-13 Thread Hesham AL-Matary
--- /dev/null +++ b/testsuites/libtests/mmtest1/init.c @@ -0,0 +1,55 @@ +/* Init + * + * This routine is the initialization task for this test program. + * + */ + +/* + * Copyright (c) 2013 Gedare Bloom. + * Copyright (c) 2012 Hesham Al-Matary. + * + * The license and distribution terms for this file

[PATCH 3/4] Modify sparc erc32 to include libmm required headers and stubs

2013-07-13 Thread Hesham AL-Matary
From: Hesham ALmatary --- c/src/lib/libbsp/sparc/erc32/Makefile.am | 6 ++ c/src/lib/libbsp/sparc/erc32/preinstall.am | 9 + 2 files changed, 15 insertions(+) diff --git a/c/src/lib/libbsp/sparc/erc32/Makefile.am b/c/src/lib/libbsp/sparc/erc32/Makefile.am index 988f3ec..545d945 1