00001
00002
00003 #ifndef kmem_i_h
00004 #define kmem_i_h
00005
00006 #include <cstdio>
00007 #include <cstdlib>
00008 #include <cstddef>
00009 #include <cstring>
00010
00011 #include "boot_info.h"
00012 #include "config.h"
00013 #include "cpu.h"
00014 #include "gdt.h"
00015 #include "globals.h"
00016 #include "paging.h"
00017 #include "regdefs.h"
00018 #include "std_macros.h"
00019
00020 #include "cmdline.h"
00021 #include "l4_types.h"
00022 #include "mem_unit.h"
00023 #include "panic.h"
00024 #include "pic.h"
00025
00026
00027
00028
00029
00030
00031
00034 inline Address
00035 Kmem::alloc_from_page(Address *from, Address size)
00036 {
00037 Address ret = *from;
00038 *from += (size + 0xf) & ~0xf;
00039
00040 return ret;
00041 }
00042
00043 #endif // kmem_i_h