coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mem.h File Reference
#include <x86emu/x86emu.h>
#include <types.h>
Include dependency graph for mem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

u8 my_rdb (u32 addr)
 
u16 my_rdw (u32 addr)
 
u32 my_rdl (u32 addr)
 
void my_wrb (u32 addr, u8 val)
 
void my_wrw (u32 addr, u16 val)
 
void my_wrl (u32 addr, u32 val)
 

Function Documentation

◆ my_rdb()

u8 my_rdb ( u32  addr)

Definition at line 217 of file mem.c.

References addr, biosemu_dev_translate_address(), clr_ci(), DEBUG_CHECK_VMEM_READ(), DEBUG_PRINTF, DEBUG_PRINTF_MEM, HALT_SYS, IORESOURCE_MEM, M, and set_ci().

Referenced by handleInt10(), my_rdl(), and my_rdw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ my_rdl()

u32 my_rdl ( u32  addr)

Definition at line 300 of file mem.c.

References addr, biosemu_dev_translate_address(), clr_ci(), DEBUG_CHECK_VMEM_READ(), DEBUG_PRINTF, DEBUG_PRINTF_MEM, HALT_SYS, in32le(), IORESOURCE_MEM, M, my_rdb(), set_ci(), and update_time().

Referenced by handleInterrupt(), and setupInt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ my_rdw()

u16 my_rdw ( u32  addr)

Definition at line 249 of file mem.c.

References addr, biosemu_dev_translate_address(), clr_ci(), DEBUG_CHECK_VMEM_READ(), DEBUG_PRINTF, DEBUG_PRINTF_MEM, HALT_SYS, in16le(), IORESOURCE_MEM, M, my_rdb(), and set_ci().

Referenced by handleInt10(), and setupInt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ my_wrb()

void my_wrb ( u32  addr,
u8  val 
)

Definition at line 363 of file mem.c.

References addr, biosemu_dev_translate_address(), clr_ci(), DEBUG_CHECK_VMEM_WRITE(), DEBUG_PRINTF, DEBUG_PRINTF_MEM, HALT_SYS, IORESOURCE_MEM, M, set_ci(), and val.

Referenced by biosemu(), handleInt10(), my_wrl(), my_wrw(), and update_time().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ my_wrl()

void my_wrl ( u32  addr,
u32  val 
)

Definition at line 433 of file mem.c.

References addr, biosemu_dev_translate_address(), clr_ci(), DEBUG_CHECK_VMEM_WRITE(), DEBUG_PRINTF, DEBUG_PRINTF_MEM, HALT_SYS, IORESOURCE_MEM, M, my_wrb(), out32le(), set_ci(), and val.

Referenced by biosemu(), and update_time().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ my_wrw()

void my_wrw ( u32  addr,
u16  val 
)

Definition at line 388 of file mem.c.

References addr, biosemu_dev_translate_address(), clr_ci(), DEBUG_CHECK_VMEM_WRITE(), DEBUG_PRINTF, DEBUG_PRINTF_MEM, HALT_SYS, IORESOURCE_MEM, M, my_wrb(), out16le(), set_ci(), and val.

Referenced by biosemu(), and handleInt10().

Here is the call graph for this function:
Here is the caller graph for this function: