parent
7763d5804e
commit
5831fcdc96
@ -1,10 +1,22 @@
|
|||||||
#ifndef _MM_H
|
|
||||||
#define _MM_H
|
|
||||||
|
|
||||||
#define PAGE_SIZE 4096
|
#ifndef _mm_H
|
||||||
|
#define _mm_H
|
||||||
|
|
||||||
extern unsigned long get_free_page(void);
|
|
||||||
|
extern void calc_mem(void);
|
||||||
|
extern void mem_init(long start_mem, long end_mem);
|
||||||
|
extern void do_no_page(unsigned long error_code,unsigned long address);
|
||||||
|
extern int share_page(unsigned long address);
|
||||||
|
extern int try_to_share(unsigned long address, struct task_struct * p);
|
||||||
|
extern void get_empty_page(unsigned long address);
|
||||||
|
extern void write_verify(unsigned long address);
|
||||||
|
extern void do_wp_page(unsigned long error_code,unsigned long address);
|
||||||
|
extern void un_wp_page(unsigned long * table_entry);
|
||||||
extern unsigned long put_page(unsigned long page,unsigned long address);
|
extern unsigned long put_page(unsigned long page,unsigned long address);
|
||||||
|
extern int copy_page_tables(unsigned long from,unsigned long to,long size);
|
||||||
|
extern int free_page_tables(unsigned long from,unsigned long size);
|
||||||
extern void free_page(unsigned long addr);
|
extern void free_page(unsigned long addr);
|
||||||
|
extern unsigned long get_free_page(void);
|
||||||
#endif
|
extern void oom(void);
|
||||||
|
extern void do_exit(long code);
|
||||||
|
#endif // MACRO
|
||||||
|
Loading…
Reference in new issue