coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmm.c File Reference
#include <x86emu/x86emu.h>
#include "../x86emu/prim_ops.h"
#include <string.h>
#include "biosemu.h"
#include "pmm.h"
#include "debug.h"
#include "device.h"
Include dependency graph for pmm.c:

Go to the source code of this file.

Data Structures

struct  pmm_allocation_t
 

Macros

#define MAX_PMM_AREAS   10
 

Functions

u8 pmm_setup (u16 segment, u16 offset)
 
void pmm_handleInt (void)
 
void pmm_test (void)
 

Variables

static pmm_allocation_t pmm_allocation_array [MAX_PMM_AREAS]
 
static u32 curr_pmm_allocation_index = 0
 

Macro Definition Documentation

◆ MAX_PMM_AREAS

#define MAX_PMM_AREAS   10

Definition at line 54 of file pmm.c.

Function Documentation

◆ pmm_handleInt()

void pmm_handleInt ( void  )

Definition at line 107 of file pmm.c.

References buffer, CHECK_DBG, curr_pmm_allocation_index, DEBUG_PMM, DEBUG_PRINTF_PMM, pmm_allocation_t::handle, pmm_allocation_t::length, length, M, MAX_PMM_AREAS, pmm_allocation_t::offset, offset, pmm_allocation_array, PMM_CONV_SEGMENT, pop_long(), pop_word(), and printf.

Referenced by handleInterrupt(), and pmm_test().

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

◆ pmm_setup()

u8 pmm_setup ( u16  segment,
u16  offset 
)

Definition at line 64 of file pmm.c.

References CHECK_DBG, checksum(), DEBUG_PMM, DEBUG_PRINTF_PMM, dump, M, memset(), offset, out32le(), and PMM_INT_NUM.

Referenced by biosemu().

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

◆ pmm_test()

void pmm_test ( void  )

Definition at line 312 of file pmm.c.

References addr, DEBUG_PRINTF_PMM, length, M, pmm_handleInt(), push_long(), and push_word().

Referenced by biosemu().

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

Variable Documentation

◆ curr_pmm_allocation_index

u32 curr_pmm_allocation_index = 0
static

Definition at line 60 of file pmm.c.

Referenced by pmm_handleInt().

◆ pmm_allocation_array

pmm_allocation_t pmm_allocation_array[MAX_PMM_AREAS]
static

Definition at line 57 of file pmm.c.

Referenced by pmm_handleInt().