-
Notifications
You must be signed in to change notification settings - Fork 1
/
mm.h
37 lines (28 loc) · 892 Bytes
/
mm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* =====================================================================================
*
* Filename: mm.h
*
* Description:
*
* Version: 1.0
* Created: 21.10.2011 10:27:11
* Revision: none
* Compiler: gcc
*
* Author: Georg Wassen (gw) (),
* Company:
*
* =====================================================================================
*/
#ifndef MM_H
#define MM_H
typedef unsigned long frame_t; // the number of a physical page frame
typedef unsigned long page_t; // the number of a virtual page
int mm_init();
#define MM_WRITE_THROUGH 0x0010
#define MM_CACHE_DISABLE 0x0020
void *heap_alloc(unsigned nbr_pages, unsigned flags) __attribute__ ((malloc));
void heap_reconfig(void *p, size_t size, unsigned flags);
void tlb_shootdown(void *adr, size_t size);
#endif // MM_H