NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VBios Class Reference
Inheritance diagram for VBios:
DiscoveryHelper< VBios > StaticReceiver< VBios > Device

Public Member Functions

bool receive (CpuMessage &msg)
bool receive (MessageMem &msg)
 The memory read routine for the last 16byte below 4G and below 1M.
bool receive (MessageDiscovery &msg)
 VBios (Motherboard &mb, VCpu *vcpu)
- Public Member Functions inherited from StaticReceiver< VBios >
 StaticReceiver ()
- Public Member Functions inherited from Device
void debug_dump ()
 Device (const char *debug_name)

Public Attributes

Motherboard_mb

Private Types

enum  { BIOS_BASE = 0xf0000 }

Private Attributes

VCpu_vcpu
unsigned char _resetvector [16]

Additional Inherited Members

- Static Public Member Functions inherited from DiscoveryHelper< VBios >
static bool discover (Device *o, MessageDiscovery &msg)
- Static Public Member Functions inherited from StaticReceiver< VBios >
static bool receive_static (Device *o, M &msg)
- Protected Member Functions inherited from DiscoveryHelper< VBios >
bool discovery_write_st (const char *resource, unsigned offset, const void *value, unsigned count)
bool discovery_write_dw (const char *resource, unsigned offset, unsigned value, unsigned count=4)
 Write a dword or less than it.
bool discovery_read_dw (const char *resource, unsigned offset, unsigned &value)
 Read a dword.
unsigned discovery_length (const char *resource, unsigned minlen)
 Return the length of an ACPI table or minlen if it is smaller.

Member Enumeration Documentation

anonymous enum
private
Enumerator:
BIOS_BASE 

Constructor & Destructor Documentation

VBios::VBios ( Motherboard mb,
VCpu vcpu 
)
inline

Member Function Documentation

bool VBios::receive ( CpuMessage msg)
inline

Normally we jump to the last instruction in the 16-byte reset area where we provide an IRET instruction to the instruction emulator.

bool VBios::receive ( MessageMem msg)
inline

The memory read routine for the last 16byte below 4G and below 1M.

bool VBios::receive ( MessageDiscovery msg)
inline

Member Data Documentation

Motherboard& VBios::_mb
unsigned char VBios::_resetvector[16]
private
VCpu* VBios::_vcpu
private

The documentation for this class was generated from the following file: