📄 boot_a9_dolo.c
字号:
//===============================================================================
// TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
//
// Property of Texas Instruments
// For Unrestricted Internal Use Only
// Unauthorized reproduction and/or distribution is strictly prohibited.
// This product is protected under copyright law and trade secret law
// as an unpublished work.
// Created 2001, (C) Copyright 2001 Texas Instruments. All rights reserved.
//===============================================================================
#include "test.h"
#include "boot_a9_dolo.h"
#include "armio32.h"
//#include "gpio_a9.h"
#include "dolo_conf.h"
#include "mif.h"
#define SVC_STK_SIZE 0x50
unsigned svcStack[SVC_STK_SIZE];
#define FIQ_STK_SIZE 0x50
unsigned fiqStack[FIQ_STK_SIZE];
#define IRQ_STK_SIZE 0x50
unsigned irqStack[IRQ_STK_SIZE];
#define ABORT_STK_SIZE 0x50
unsigned abortStack[ABORT_STK_SIZE];
//
//-------------------------------------------------------------------------
//-- 256 bytes of the RAM are used as a result area --
//-- Its first value (position 0) is the global status of all the tests --
//-- OK (value 1) when all the tests are OK --
//-- BAD (value 2) when at least one test is bad --
//-- NOT_TRIED (value 0) when at least one test is not tried --
//-------------------------------------------------------------------------
//
#pragma DATA_SECTION (spy, ".spy" )
UWORD16 spy [ RESULT_SIZE ] ;
extern UWORD16 result [ RESULT_SIZE ] ;
//----------------------------------------------------------
// NAME : BOOT_CommonInit
// DESCRIPTION : Gather all standard initialization
//
// PARAMETERS : None
//
// RETURN VALUE:None
//
// LIMITATIONS : None
// -----------------------------------------------------------------------------------------------
void BOOT_CommonInit_dolo ( void )
{
// Set Supervisor Stack
INT_Set_SVC_Stack((unsigned*)svcStack, SVC_STK_SIZE);
// Set Abort Stack
INT_Set_AbortD_Stack((unsigned*)abortStack, ABORT_STK_SIZE);
// Branch the interrupt on the fiq
INT_EnableFIQ(fiqStack, FIQ_STK_SIZE);// Branch the interrupt on the fiq
// Branch the interrupt on the fiq
INT_EnableIRQ(irqStack, IRQ_STK_SIZE);// Branch the interrupt on the fiq
// Configure the Flash Interface at Dolomites Top Level
DCONF_FLASH_IF(DCONF_MODE_0);
// To allow access on CS1 (spy area) in 16 bits
ClearBit(REG32(MIF_nCS1_CONFIG_REG_ADDR_SUP), MIF_BW_MSK);
// To allow access on CS2 (dump_file area) in 16 bits
ClearBit(REG32(MIF_nCS2_CONFIG_REG_ADDR_SUP), MIF_BW_MSK);
// Set the result array
RES_SetLocation((UWORD32)&spy);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -