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

📄 common.c

📁 一个用在mips体系结构中的操作系统
💻 C
字号:
/* * Copyright (C) 1996-1998 by the Board of Trustees *    of Leland Stanford Junior University. *  * This file is part of the SimOS distribution.  * See LICENSE file for terms of the license.  * *//***************************************************************** * *  * Author: $Author: bosch $ * Date: $Date: 1998/02/10 00:37:18 $ *****************************************************************/#include <string.h>#include "syslimits.h"#include "machine_params.h"#include "sim_error.h"#include "simutil.h"#include "../memsys.h"MemsysVector memsysVec;extern void   BusUmaInit(void);extern void   Chal2MemInit(void);extern void   NumaInit(void);extern void   PerfectMemInit(void);extern void   FlashliteInit(void);/*  * Initialize the selected memory system. Each one is responsible to * initialize the memsysVec indirection entries.   */voidMemsysInit(void){   if (!strcmp(MEMSYS_MODEL, "Numa")) {      NumaInit();   } else if (!strcmp(MEMSYS_MODEL, "BusUma")) {      BusUmaInit();   } else if (!strcmp(MEMSYS_MODEL, "Perfect")) {      PerfectMemInit();#if defined(SIM_X86)   } else if (!strcmp(MEMSYS_MODEL, "Chal2")) {      Chal2MemInit();#endif#if defined(SIM_MIPS32) || defined(SIM_MIPS64)   } else if (!strcmp(MEMSYS_MODEL, "Flashlite")) {      FlashliteInit();#endif   } else {      CPUError("Unknown MemSys configuration value: %s\n", MEMSYS_MODEL);   }}

⌨️ 快捷键说明

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