Implement user space's printf stuff
[thunix.git] / include / mm.h
blob7b690f281011a42c407934b6b729d031645d31b2
1 #ifndef _MM_H
2 #define _MM_H
5 #define PG_SIZE (0x1000)
6 #define PG_DIR (0x800000)
7 #define PG_TABLE (PG_DIR + PG_SIZE)
9 #define LOW_MEM (0x100000)
10 #define PG_MEMORY (32*1024*1024)
11 #define PG_PAGES (PG_MEMORY>>12)
12 #define MAIN_MEM (0x800000)
14 #define USED (100)
15 #define MAP_NR(addr) (((addr)>>12))
17 #define TABLE_SIZE (0x400000)
19 #define copy_page(from, to) \
20 __asm__("cld;rep;movsl\n\t" \
21 ::"S"(from),"D"(to),"c"(1024))
24 #endif /* mm.h */