modules/portlib/src/main/native/port/windows/hycpu.c File Reference


Detailed Description

CPU Control.

Functions setting CPU attributes.

#include <windows.h>
#include "hyport.h"

Functions

I_32 VMCALL hycpu_startup (struct HyPortLibrary *portLibrary)
 PortLibrary startup.
void VMCALL hycpu_shutdown (struct HyPortLibrary *portLibrary)
 PortLibrary shutdown.
void VMCALL hycpu_flush_icache (struct HyPortLibrary *portLibrary, void *memoryPointer, UDATA byteAmount)
 CPU Control operations.


Function Documentation

void VMCALL hycpu_flush_icache ( struct HyPortLibrary portLibrary,
void *  memoryPointer,
UDATA  byteAmount 
)

CPU Control operations.

Flush the instruction cache to memory.

Parameters:
[in] portLibrary The port library
[in] memoryPointer The base address of memory to flush.
[in] byteAmount Number of bytes to flush.

void VMCALL hycpu_shutdown ( struct HyPortLibrary portLibrary  ) 

PortLibrary shutdown.

This function is called during shutdown of the portLibrary. Any resources that were created by hycpu_startup should be destroyed here.

Parameters:
[in] portLibrary The port library
Note:
Most implementations will be empty.

I_32 VMCALL hycpu_startup ( struct HyPortLibrary portLibrary  ) 

PortLibrary startup.

This function is called during startup of the portLibrary. Any resources that are required for the exit operations may be created here. All resources created here should be destroyed in hycpu_shutdown.

Parameters:
[in] portLibrary The port library
Returns:
0 on success, negative error code on failure. Error code values returned are
  • HYPORT_ERROR_STARTUP_CPU
Note:
Most implementations will simply return success.


Genereated on Tue Dec 9 14:12:59 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.