bootmem.h

来自「一个完整的GUI界面OS,单盘启动 实现了多线程、FAT32文件读写」· C头文件 代码 · 共 23 行

H
23
字号
#ifndef BOOTMEM_H
#define BOOTMEM_H

#define NR_HOLES             128

#define NIL_HOLE             NULL

struct mem_hole
{
    unsigned long base;
	  unsigned long size;
	  struct mem_hole * next_hole;
	
};

void            BootMemInit(void);
unsigned long   BootMemMalloc(unsigned long size);
void            BootMemFree(unsigned long base,unsigned long size);
void            BootMemScan(unsigned long *hole_size,unsigned long *hole_num);
void            BootMemEnd(unsigned long *mem_end);

#endif /* BOOTMEM_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?