02.03.2014 Views

vxworks programmer's guide.pdf - DAQ Plone Site

vxworks programmer's guide.pdf - DAQ Plone Site

vxworks programmer's guide.pdf - DAQ Plone Site

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

VxWorks 5.4<br />

Programmer’s Guide<br />

7.5 Using the MMU Programmatically ............................................................... 293<br />

7.5.1 Virtual Memory Contexts ................................................................. 293<br />

Global Virtual Memory ..................................................................... 293<br />

Initialization ....................................................................................... 294<br />

Page States .......................................................................................... 294<br />

7.5.2 Private Virtual Memory .................................................................... 295<br />

7.5.3 Noncacheable Memory ..................................................................... 302<br />

7.5.4 Nonwritable Memory ....................................................................... 304<br />

7.5.5 Troubleshooting ................................................................................. 306<br />

7.5.6 Precautions ......................................................................................... 307<br />

8 Configuration and Build .................................................................................................. 309<br />

8.1 Introduction ...................................................................................................... 309<br />

8.2 The Board Support Package (BSP) ................................................................. 310<br />

The System Library ........................................................................... 311<br />

Virtual Memory Mapping ................................................................ 312<br />

The Serial Driver ................................................................................ 312<br />

BSP Initialization Modules ............................................................... 312<br />

BSP Documentation ........................................................................... 312<br />

8.3 VxWorks Initialization Timeline .................................................................... 313<br />

The VxWorks Entry Point: sysInit( )............................................... 313<br />

The Initial Routine: usrInit( )........................................................... 314<br />

Initializing the Kernel ....................................................................... 315<br />

Initializing the Memory Pool ........................................................... 316<br />

The Initial Task: usrRoot( )............................................................... 317<br />

The System Clock Routine: usrClock( ).......................................... 322<br />

Initialization Summary ..................................................................... 322<br />

8.4 Building, Loading, and Unloading Application Modules ......................... 325<br />

8.4.1 Using VxWorks Header Files ........................................................... 325<br />

VxWorks Header File: vxWorks.h ................................................... 325<br />

Other VxWorks Header Files ........................................................... 326<br />

ANSI Header Files ............................................................................. 326<br />

xvi

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!