emu_vm86.c File Reference

#include <stdio.h>
#include <stdarg.h>
#include "vm86_struct.h"
#include "x86emu/types.h"
#include "x86emu/regs.h"
#include <sys/inline.h>

Defines

#define INT2PTR(a)   ((a) + (unsigned char *) 0)

Functions

static u8 Mem_rb (u32 addr)
static void Mem_wb (u32 addr, u8 val)
static u16 Mem_rw (u32 addr)
static u32 Mem_rl (u32 addr)
static void Mem_ww (u32 addr, u16 val)
static void Mem_wl (u32 addr, u32 val)
static void do_int (int num)
static u8 deb_inb (X86EMU_pioAddr addr)
static u16 deb_inw (X86EMU_pioAddr addr)
static u32 deb_inl (X86EMU_pioAddr addr)
static void deb_outb (X86EMU_pioAddr addr, u8 val)
static void deb_outw (X86EMU_pioAddr addr, u16 val)
static void deb_outl (X86EMU_pioAddr addr, u32 val)
int emu_vm86 (struct vm86_struct *vm, unsigned debug)
void printk (const char *fmt,...)

Variables

int emu_vm86_ret

Define Documentation

#define INT2PTR (  )     ((a) + (unsigned char *) 0)

Function Documentation

static u8 deb_inb ( X86EMU_pioAddr  addr  )  [static]

References M, and u8.

Referenced by emu_vm86().

static u32 deb_inl ( X86EMU_pioAddr  addr  )  [static]

References M, and u32.

Referenced by emu_vm86().

static u16 deb_inw ( X86EMU_pioAddr  addr  )  [static]

References M, and u16.

Referenced by emu_vm86().

static void deb_outb ( X86EMU_pioAddr  addr,
u8  val 
) [static]

References M.

Referenced by emu_vm86().

static void deb_outl ( X86EMU_pioAddr  addr,
u32  val 
) [static]

References M.

Referenced by emu_vm86().

static void deb_outw ( X86EMU_pioAddr  addr,
u16  val 
) [static]

References M.

Referenced by emu_vm86().

static void do_int ( int  num  )  [static]

References emu_vm86_ret, INTR_HALTED, M, and VM86_INTx.

Referenced by emu_vm86().

int emu_vm86 ( struct vm86_struct vm,
unsigned  debug 
)
static u8 Mem_rb ( u32  addr  )  [static]

References INT2PTR, and u8.

Referenced by emu_vm86().

static u32 Mem_rl ( u32  addr  )  [static]

References INT2PTR, and u32.

Referenced by emu_vm86().

static u16 Mem_rw ( u32  addr  )  [static]

References INT2PTR, and u16.

Referenced by emu_vm86().

static void Mem_wb ( u32  addr,
u8  val 
) [static]

References INT2PTR, and u8.

Referenced by emu_vm86().

static void Mem_wl ( u32  addr,
u32  val 
) [static]

References INT2PTR, and u32.

Referenced by emu_vm86().

static void Mem_ww ( u32  addr,
u16  val 
) [static]

References INT2PTR, and u16.

Referenced by emu_vm86().

void printk ( const char *  fmt,
  ... 
)

Variable Documentation

Referenced by do_int(), and emu_vm86().