The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
segment.c File Reference

Segment allocator. More...

#include <sys/time.h>
#include <sys/resource.h>
#include <fcntl.h>
#include <sys/types.h>
#include <mm/mm.h>
#include <mm/ecs.h>
#include <arch/x86/linux/cross_state_manager/cross_state_manager.h>
#include <scheduler/process.h>
+ Include dependency graph for segment.c:

Go to the source code of this file.

Functions

void * get_base_pointer (GID_t gid)
 
void * get_segment_memory (struct segment *seg, size_t size)
 
void free_segment_memory (void *ptr)
 
struct segmentget_segment (GID_t gid)
 
void segment_init (void)
 
void initialize_memory_map (struct lp_struct *lp)
 
void finalize_memory_map (struct lp_struct *lp)
 

Variables

size_t __page_size = 0
 
static unsigned char * init_address = (unsigned char *)(10LL << 39)
 

Detailed Description

Segment allocator.

Segment Allocator. This is the lowest-level allocator in ROOT-Sim.

This file is part of ROOT-Sim (ROme OpTimistic Simulator).

ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.

ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Author
Alessandro Pellegrini
Francesco Quaglia

Definition in file segment.c.