iPXE
Functions
memsizes.h File Reference
#include <basemem.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static unsigned int basememsize (void)
 Get size of base memory from BIOS free base memory counter.
unsigned int extmemsize (void)
 Get size of extended memory.

Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static unsigned int basememsize ( void  ) [inline, static]

Get size of base memory from BIOS free base memory counter.

Return values:
basememBase memory size, in kB

Definition at line 13 of file memsizes.h.

References get_fbms().

Referenced by x86_get_memmap().

                                                {
        return get_fbms();
}
unsigned int extmemsize ( void  )

Get size of extended memory.

Return values:
extmemExtended memory size, in kB

Note that this is only an approximation; for an accurate picture, use the E820 memory map obtained via get_memmap();

Definition at line 156 of file memmap.c.

References extmemsize_88(), and extmemsize_e801().

Referenced by nbi_process_segments(), and x86_get_memmap().

                                 {
        unsigned int extmem_e801;
        unsigned int extmem_88;

        /* Try INT 15,e801 first, then fall back to INT 15,88 */
        extmem_88 = extmemsize_88();
        extmem_e801 = extmemsize_e801();
        return ( extmem_e801 ? extmem_e801 : extmem_88 );
}