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

📄 vmmpulib.c

📁 VxWorks操作系统内核源代码
💻 C
字号:
/* vmMpuLib.c - MPU virtual memory support library *//* Copyright 1984-1998 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01a,02jul98,jpd  written.*//* This library provides MMU (Memory Management Unit) support on aprocessor with a Protection Unit style of MMU (MPU) rather than a fullpage-table based MMU.INTERNALThe file defines the MACRO BUILD_MPU_LIB and includes the filevmBaseLib.c, which is then compiled to produce routines with differentnames (to avoid clashes with vmBaseLib.c). This is because thelibraries are very similar, and we wish to avoid having two copies ofthe file, which do not differ greatly.CONFIGURATIONTo include the MPU support library in VxWorks, define INCLUDE_MMU_MPUin config.h.  Note that the three options INCLUDE_MMU_MPU,INCLUDE_MMU_BASIC and INCLUDE_MMU_FULL are mutually exclusive: onlyone of the three can be selected.SEE ALSO: vmBaseLib, vmLib, vmShow,.pG "Virtual Memory"*//* compile conditionally for MPUs */#define BUILD_MPU_LIB/* ensure the non-static routines will have different names */#define vmBaseLibInit vmMpuLibInit#define vmBaseGlobalMapInit vmMpuGlobalMapInit#define vmBasePageSizeGet vmMpuPageSizeGet#define vmBaseStateSet vmMpuStateSet#define mutexOptionsVmBaseLib mutexOptionsVmMpuLib#include "vmBaseLib.c"

⌨️ 快捷键说明

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