iPXE
Macros | Functions
int15.h File Reference

INT15-based memory map. More...

Go to the source code of this file.

Macros

#define MEMMAP_PREFIX_int15   __int15_
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
void int15_intercept (int intercept)
 Set INT 15 interception flag. More...
 
void hide_basemem (void)
 Hide used base memory. More...
 

Detailed Description

INT15-based memory map.

Definition in file int15.h.

Macro Definition Documentation

◆ MEMMAP_PREFIX_int15

#define MEMMAP_PREFIX_int15   __int15_

Definition at line 15 of file int15.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ int15_intercept()

void int15_intercept ( int  intercept)

Set INT 15 interception flag.

Parameters
interceptIntercept INT 15 calls to modify memory map

Definition at line 155 of file hidemem.c.

155  {
156 
157  /* Set flag for INT 15 handler */
158  int15_intercept_flag = intercept;
159 }
#define int15_intercept_flag
Definition: hidemem.c:79

References int15_intercept_flag.

Referenced by int15_describe().

◆ hide_basemem()

void hide_basemem ( void  )

Hide used base memory.

Definition at line 113 of file hidemem.c.

113  {
114  /* Hide from the top of free base memory to 640kB. Don't use
115  * hide_region(), because we don't want this rounded to the
116  * nearest page boundary.
117  */
118  hidemem_base.start = ( get_fbms() * 1024 );
119 }
static unsigned int get_fbms(void)
Read the BIOS free base memory counter.
Definition: basemem.h:21
#define hidemem_base
Definition: hidemem.c:60

References get_fbms(), and hidemem_base.

Referenced by hide_etherboot(), and set_fbms().