#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. | |
Definition in file basemem.c.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| void set_fbms | ( | unsigned int | new_fbms | ) |
Set the BIOS free base memory counter.
| 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 }
1.5.7.1