The Pedigree Project
0.1
|
#include <Bios.h>
Public Member Functions | |
void | executeInterrupt (int interrupt) |
uintptr_t | malloc (int n) |
void | free (uintptr_t) |
void | setAx (int n) |
void | setBx (int n) |
void | setCx (int n) |
void | setDx (int n) |
void | setDi (int n) |
void | setEs (int n) |
int | getAx () |
int | getBx () |
int | getCx () |
int | getDx () |
int | getDi () |
int | getEs () |
Static Public Member Functions | |
static Bios & | instance () |
Private Member Functions | |
Bios () | |
Private Attributes | |
uintptr_t | mallocLoc |
Static Private Attributes | |
static Bios | m_Instance |
Provides an interface to BIOS functions. Currently, this is implemented as a wrapper around X86Emu, taken from the XFree86 source.
|
private |
void Bios::executeInterrupt | ( | int | interrupt | ) |
Executes a BIOS interrupt.
i | The interrupt number to execute. |
Definition at line 172 of file Bios.cc.
References ERROR, Processor::getInterrupts(), VirtualAddressSpace::getKernelAddressSpace(), Hex, Processor::information(), VirtualAddressSpace::isMapped(), VirtualAddressSpace::KernelMode, VirtualAddressSpace::map(), Processor::setInterrupts(), Processor::switchAddressSpace(), and VirtualAddressSpace::Write.
Referenced by X86Vga::rememberMode(), X86Vga::restoreMode(), and VbeDisplay::setScreenMode().
|
inlinestatic |
Returns the singleton BIOS instance.
Definition at line 32 of file Bios.h.
Referenced by X86Vga::rememberMode(), X86Vga::restoreMode(), and VbeDisplay::setScreenMode().
uintptr_t Bios::malloc | ( | int | n | ) |
void Bios::setAx | ( | int | n | ) |
Sets the AX register.
Definition at line 211 of file Bios.cc.
Referenced by X86Vga::rememberMode(), X86Vga::restoreMode(), and VbeDisplay::setScreenMode().
void Bios::setBx | ( | int | n | ) |
Sets the BX register.
Definition at line 215 of file Bios.cc.
Referenced by X86Vga::rememberMode(), X86Vga::restoreMode(), and VbeDisplay::setScreenMode().
void Bios::setDi | ( | int | n | ) |
Sets the DI register.
Definition at line 227 of file Bios.cc.
Referenced by X86Vga::rememberMode(), X86Vga::restoreMode(), and VbeDisplay::setScreenMode().
void Bios::setEs | ( | int | n | ) |
Sets the ES register.
Definition at line 231 of file Bios.cc.
Referenced by X86Vga::rememberMode(), X86Vga::restoreMode(), and VbeDisplay::setScreenMode().
|
private |