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

📄 datasegpad.c

📁 菲利普22系列 vxworks bsp 可以用来可以和其他版本的ARM vxworks bsp(特别是7内核的进行比较)进行比较可以加深对BSP的理解和掌握
💻 C
字号:
/* dataSegPad.c - padding for beginning of data segment */

/* Copyright 1984-1991 Wind River Systems, Inc. */
#include "copyright_wrs.h"

/*
modification history
--------------------
01c,19oct92,jcf  change to include when INCLUDE_MMU_FULL defined.
01b,28jul92,rdc  changed PAGE_SIZE to VM_PAGE_SIZE.
01a,21jul92,rdc  written.
*/

/*
DESCRIPTION

This module conditionally creates a data structure the size of one page;
it is explicility listed as the first module on the load line when VxWorks
is linked to insure that this data structure is the first item in the
data segment.  This mechanism is needed to insure that the data segment
does not overlap a page that is occupied by the text segment;  when text
segment protection is turned on, all pages that contain text are write 
protected.  This insures that the data segment does not lie in a page that
has been write protected.  If text segment protection has not been included,
this module compiles into a null object module.  In an embedded system, this
mechanism may not be needed if the loader explicitly places the data segment
in a section of memory seperate from the text segment.

*/

#include "vxWorks.h"
#include "config.h"

#ifdef	INCLUDE_MMU_FULL		/* bootroms will not ref dataSegPad.o */

char dataSegPad [VM_PAGE_SIZE] = {1};

#endif /* INCLUDE_MMU_FULL */

⌨️ 快捷键说明

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