platform.c

来自「RMI的处理器au1200系列所用的BOOTLOAD,包括SD卡启动USB启动硬」· C语言 代码 · 共 65 行

C
65
字号
/* * File:		pb1200/platform.c * * Purpose:		Platform glue code * * Notes: * * Author:		Eric DeVolder * Date:		Jan-26-2004 * * Modifications: * */#include "example.h"/********************************************************************///                       Boot Image Locations                       //staticconst char *const flashAddresses[] = {/*For regression testing purposes:be40 0000 - Encrypted Linux Image (pb1200.elf.pp). Size < 0x300000be00 0000 - Linux Image (pb1200.elf). Size < 0x300000*/#ifdef SECUREBOOT    "BE400000",#else    "BE000000",#endif//                                                      "Nand|7D0",             //Nand flash, block 2000    0};staticconst char *const fileNames[] = {    "pb1200.rec",    "pb1200.elf",    "hello.rec",		/*				   "nk.bin",				   "vmlinux.elf",				   "vmlinux.rec", */    0};staticconst void *const jumpAddress = 0x0;/********************************************************************/void platformInit(void){    DPRINTF("Pb1200 platformInit() \n");}/********************************************************************/intplatformGetBootData(const char *const **files,		    const char *const **addresses, const void **jump){    *files = fileNames;    *addresses = flashAddresses;    *jump = jumpAddress;    return 1;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?