⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hostinit.c

📁 mips架构的bootloader,99左右的版本 但源代码现在没人更新了
💻 C
字号:
/************************************************************* * File: lib/hostinit.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: *	970304	Start of revision history *	980409	Added L9A0084 (DCAM) *	980616	Added 4102 *	980624	Added 64364 ATMizer-II+ *	980703	Added 64388 RAP *	980703	Renamed. Was cpuinit.c */#include <mon.h>int a3000init(), a33000init(), a33050init(), a33020init(), a33300init();int a64360init(), a4001init(), a4010init(), a64363init(), a64008init();int a4003init(), a4101init(), a4011init(),a4300init(),a90084init();int a4102init(),a64364init(),a64388init(),a65066init();CpuInitTbl cpuInitTbl[] = {#ifdef LR3000	{3000,a3000init},	{3010,a3000init},#endif#ifdef LR33000	{33000,a33000init},	{33050,a33050init},#endif#ifdef LR33020	{33020,a33020init},	{33120,a33020init},#endif#ifdef LR33300	{33300,a33300init},	{33310,a33300init},#endif#ifdef LR64360	{64360,a64360init},#endif#ifdef LR4001	{4001,a4001init},	{4002,a4003init},	{4003,a4003init},#endif#ifdef LR4010	{4010,a4010init},	{4011,a4011init},#endif#ifdef LR64363	{64363,a64363init},#endif#ifdef LR64008	{64008,a64008init},#endif#ifdef LR4101	{4101,a4101init},#endif#ifdef VR4300	{4300,a4300init},#endif#ifdef L9A0084	{90084,a90084init},#endif#ifdef LR4102	{4102,a4102init},#endif#ifdef LR64364	{64364,a64364init},#endif#ifdef LR64388	{64388,a64388init},#endif#ifdef L65066	{65066,a65066init},#endif	{0}};/**************************************************************  hostInit()*	Must never be called with type=0. You must call cpuInit for*	hostInit(0).*	cpuType must only be determined once, and before the cpu-specific*	asm init code is called. This is because some CPUs can only*	be identified by power-up register defaults that get changed*	by the init code. So if cpuType is not set by the time we get here*	we are in big trouble.*/hostInit(type)int type;{int i;CpuInitTbl *tbl;if (!cpuType || type == 0) return;for (i=0;cpuInitTbl[i].cpu;i++) {	if (cpuInitTbl[i].cpu == cpuType) {		(* cpuInitTbl[i].func)(type);		return;		}	}printf("ERROR: %d: Bad cpuType\n",cpuType);niceExit(0);}

⌨️ 快捷键说明

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