00001
00002
00003 #ifndef jdb_dbinfo_h
00004 #define jdb_dbinfo_h
00005
00006 #include "initcalls.h"
00007 #include "types.h"
00008
00009
00010
00011
00012
00013
00014 class Jdb_symbol_info;
00015 class Jdb_lines_info;
00016
00017 class Jdb_dbinfo
00018 {
00019
00020 public:
00021 static FIASCO_INIT void init();
00022
00023 static bool map(Address phys, size_t &size, Address &virt);
00024
00025 static void unmap(Address virt, size_t size);
00026
00027 static void set(Jdb_symbol_info *sym, Address phys, size_t size);
00028
00029 static void set(Jdb_lines_info *lin, Address phys, size_t size);
00030
00031 private:
00032
00033
00034 static inline void init_symbols_lines();
00035
00036 static Address reserve_pages(unsigned pages);
00037
00038 static void return_pages(Address addr, unsigned pages);
00039 };
00040
00041 #endif // jdb_dbinfo_h