basemem.c File Reference

Base memory allocation. More...

#include <stdint.h>
#include <realmode.h>
#include <bios.h>
#include <basemem.h>
#include <gpxe/hidemem.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
void set_fbms (unsigned int new_fbms)
 Set the BIOS free base memory counter.


Detailed Description

Base memory allocation.

Definition in file basemem.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

void set_fbms ( unsigned int  new_fbms  ) 

Set the BIOS free base memory counter.

Parameters:
new_fbms New free base memory counter (in kB)

Definition at line 38 of file basemem.c.

References BDA_FBMS, BDA_SEG, hide_basemem(), and put_real.

Referenced by undi_load(), and undi_unload().

00038                                         {
00039         uint16_t fbms = new_fbms;
00040 
00041         /* Update the BIOS memory counter */
00042         put_real ( fbms, BDA_SEG, BDA_FBMS );
00043 
00044         /* Update our hidden memory region map */
00045         hide_basemem();
00046 }


Generated on Tue Apr 6 20:01:12 2010 for gPXE by  doxygen 1.5.7.1