📄 ipl_startup.s
字号:
/* * Copyright 2004-2006 Freescale Semiconductor, Inc. All Rights Reserved. * * This program 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 2 of the License, or * (at your option) any later version. * * This program 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, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//*! * @file ipl_startup.S * * @brief ARM processor startup code.\n * * This code initializes the SDRAM and stack for Initial Program Loader. * This is written in ARM assembly as at this time C code execution * environment is not yet setup. Refer to MXC L3 documentation for SDRAM * controller details. * * @ingroup NANDboot */ /*! * Stack start address for C environment */#ifdef MX21#define STACK_ADDR 0xC0008000#else#define STACK_ADDR 0x80004000#endif#ifdef MXC91331#include "mxc_setup_mxc91331.h"#endif#ifdef MXC91231#include "mxc_setup_mxc91231.h"#endif#ifdef MX31#include "mxc_setup_mx31.h"#endif#ifdef MXC91131#include "mxc_setup_mxc91131.h"#endif#ifdef MX21#include "mxc_setup_mx21.h"#endif/* * PLATFORM_SETUP1 is platform specific setup macro, defined in the included * setup platform header files */startup: PLATFORM_SETUP1 /* Initialization of stack pointer */ ldr sp, =STACK_ADDR /* Copy main routine of IPL to memory and jump to it */ bl copy_jump_main /* We were running from NAND RAM buffer, we can't come back here */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -