Changeset 238 for soft/giet_vm/memo/include/memo.h
- Timestamp:
- May 29, 2013, 1:24:09 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/memo/include/memo.h
r212 r238 1 1 /* -*- c++ -*- 2 2 * 3 * SOCLIB_LGPL_HEADER_BEGIN3 * GIET_VM_LGPL_HEADER_BEGIN 4 4 * 5 * This file is part of SoCLib, GNU LGPLv2.1.5 * This file is part of GIET_VM, GNU LGPLv2.1. 6 6 * 7 * SoCLibis free software; you can redistribute it and/or modify it7 * GIET_VM is free software; you can redistribute it and/or modify it 8 8 * under the terms of the GNU Lesser General Public License as published 9 9 * by the Free Software Foundation; version 2.1 of the License. 10 10 * 11 * SoCLibis distributed in the hope that it will be useful, but11 * GIET_VM is distributed in the hope that it will be useful, but 12 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU … … 15 15 * 16 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with SoCLib; if not, write to the Free Software17 * License along with GIET_VM; if not, write to the Free Software 18 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 19 * 02110-1301 USA 20 20 * 21 * SOCLIB_LGPL_HEADER_END21 * GIET_VM_LGPL_HEADER_END 22 22 * 23 23 * Copyright (c) UPMC, Lip6, SoC … … 25 25 * 26 26 */ 27 #ifndef _MEMO_H_ 28 #define _MEMO_H_ 27 28 #ifndef GIET_VM_MEMO_H 29 #define GIET_VM_MEMO_H 29 30 30 31 #include <stdlib.h> … … 57 58 class MeMo 58 59 { 60 // TODO: make the name defined in the map_info relative to this wd. 59 61 60 std::string m_path; //map_info path name61 std::string m_wd; //map_info path to directory TODO: make the name defined in the map_info relative to this wd.62 std::string m_simpleName; //map_info filename TODO63 void* m_data; //map_info structure64 uintptr_t m_addr; //map_info address (virtual)65 size_t m_size; //size of the structure62 std::string m_path; // map_info path name 63 std::string m_wd; // map_info directory TODO 64 std::string m_simpleName; // map_info filename TODO 65 void* m_data; // map_info structure 66 uintptr_t m_addr; // map_info address (virtual) 67 size_t m_size; // size of the structure 66 68 mutable std::map<std::string, elfpp::object*> m_loaders; 67 PSegHandler m_psegh; 68 PathHandler m_pathHandler; 69 70 bool m_ginit; 71 elfpp::object* m_generator; 69 PSegHandler m_psegh; 70 PathHandler m_pathHandler; 71 bool m_ginit; 72 elfpp::object* m_generator; 72 73 73 74 size_t load_bin(std::string filename, void* buffer); … … 78 79 public: 79 80 80 MeMo( const std::string &name, const size_t pageSize = 4096); 81 MeMo( const std::string &name, 82 const size_t pageSize = 4096); 83 81 84 ~MeMo(); 82 85 … … 93 96 } 94 97 98 // The following functions handle the map.bin structure 99 // They must keep synchronised with functions defined in boot_init.c. 95 100 96 //The following functions handle the map.bin structure97 //inspired from the boot_init.c of the GIET98 101 mapping_cluster_t* get_cluster_base( mapping_header_t* header ); 99 102 mapping_pseg_t* get_pseg_base( mapping_header_t* header ); … … 108 111 109 112 110 #endif /* _MEMO_H_*/113 #endif /* GIET_VM_MEMO_H */ 111 114 112 115 // Local Variables:
Note: See TracChangeset
for help on using the changeset viewer.