1 // Phys. memory management
3 #ifndef __KERNEL__PHYS_MEM___HEADER____
4 #define __KERNEL__PHYS_MEM___HEADER____
8 extern UINT
ResolveFramefromAddress (UINT
);
9 extern UINT
ResolveAddressfromFrame (UINT
);
11 extern void free_frame (UINT
);
12 extern void use_frame (UINT
);
13 extern INT8
check_frame_used (UINT
);
15 extern void free_map (UINT
);
16 extern void use_map (UINT
);
17 extern INT8
check_map_used (UINT
);
19 extern UINT
find_first_free ();
21 extern UINT
pmm_alloc_frame ();
22 extern void pmm_free_frame (UINT
);
24 extern UINT
*pmm_alloc ();
25 extern void pmm_free (UINT
*);
27 extern void use_memrange (UINT
, UINT
);
29 /* TODO this function is a stub.. */
30 extern UINT
pmm_alloc_frames (UINT
);
32 /////////////////////////////////////////////////
34 extern const UINT pmm_ret_MEMFULL
;
35 extern UINT pmm_KernelStart
;
36 extern UINT pmm_KernelEnd
;
40 #endif //(__KERNEL__PHYS_MEM___HEADER____)