git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5111 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2013-02-04 13:38:36 +00:00
parent b0c635e0d5
commit 410bdbf572
6 changed files with 44 additions and 0 deletions

View File

@ -140,6 +140,9 @@
mtspr 529, r31 mtspr 529, r31
mtspr 530, r31 mtspr 530, r31
/* MMU configuration.*/
bl _mmuconf
b _boot_address b _boot_address
#endif /* !defined(__DOXYGEN__) */ #endif /* !defined(__DOXYGEN__) */

View File

@ -48,6 +48,7 @@ SECTIONS
{ {
__ivpr_base__ = .; __ivpr_base__ = .;
KEEP(*(.bam)) KEEP(*(.bam))
KEEP(*(.hwinit))
KEEP(*(.crt0)) KEEP(*(.crt0))
KEEP(*(.handlers)) KEEP(*(.handlers))
. = ALIGN(0x800); . = ALIGN(0x800);

View File

@ -48,6 +48,7 @@ SECTIONS
{ {
__ivpr_base__ = .; __ivpr_base__ = .;
KEEP(*(.bam)) KEEP(*(.bam))
KEEP(*(.hwinit))
KEEP(*(.crt0)) KEEP(*(.crt0))
KEEP(*(.handlers)) KEEP(*(.handlers))
. = ALIGN(0x800); . = ALIGN(0x800);

View File

@ -48,6 +48,7 @@ SECTIONS
{ {
__ivpr_base__ = .; __ivpr_base__ = .;
KEEP(*(.bam)) KEEP(*(.bam))
KEEP(*(.hwinit))
KEEP(*(.crt0)) KEEP(*(.crt0))
KEEP(*(.handlers)) KEEP(*(.handlers))
. = ALIGN(0x800); . = ALIGN(0x800);

View File

@ -0,0 +1,37 @@
/*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
2011,2012,2013 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
ChibiOS/RT 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.
ChibiOS/RT 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file SPC56ELxx/mmuconf.s
* @brief SPC56ELxx MMU initial configuration.
*
* @addtogroup PPC_CORE
* @{
*/
.section .hwinit, "ax"
.align 2
.globl _mmuconf
.type _mmuconf, @function
_mmuconf:
blr
/** @} */

View File

@ -2,6 +2,7 @@
PORTSRC = ${CHIBIOS}/os/ports/GCC/PPC/chcore.c PORTSRC = ${CHIBIOS}/os/ports/GCC/PPC/chcore.c
PORTASM = ${CHIBIOS}/os/ports/GCC/PPC/SPC56ELxx/bam.s \ PORTASM = ${CHIBIOS}/os/ports/GCC/PPC/SPC56ELxx/bam.s \
${CHIBIOS}/os/ports/GCC/PPC/SPC56ELxx/mmuconf.s \
${CHIBIOS}/os/ports/GCC/PPC/crt0.s \ ${CHIBIOS}/os/ports/GCC/PPC/crt0.s \
${CHIBIOS}/os/ports/GCC/PPC/SPC56ELxx/ivor.s \ ${CHIBIOS}/os/ports/GCC/PPC/SPC56ELxx/ivor.s \
${CHIBIOS}/os/ports/GCC/PPC/SPC56ELxx/vectors.s ${CHIBIOS}/os/ports/GCC/PPC/SPC56ELxx/vectors.s