/
githubmirror
/
ipxe
Обзор
Документация
Войти
/
githubmirror
/
ipxe
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/arch/x86/include/basemem.h
30 строк
481 B
Michael Brown
[bios] Describe umalloc() heap as an in-use memory area
16 май 2025, 18:18
16 май 2025, 18:18
3812860
Код
Авторство
О чём код?
#ifndef _BASEMEM_H #define _BASEMEM_H /** @file * * Base memory allocation * */ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <stdint.h> #include <realmode.h> #include <bios.h> /** * Read the BIOS free base memory counter * * @ret fbms Free base memory counter (in kB) */ static inline unsigned int get_fbms ( void ) { uint16_t fbms; get_real ( fbms, BDA_SEG, BDA_FBMS ); return fbms; } extern void set_fbms ( unsigned int new_fbms ); #endif /* _BASEMEM_H */