NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
simplemalloc.cc File Reference

Malloc implementation. More...

#include "service/helper.h"
#include "service/string.h"
#include "service/logging.h"
#include "service/cpu.h"

Functions

void * memalloc_mempool (unsigned long size, unsigned long align)
 Alloc memory from a mempool defined in the linker script.
void memfree_mempool (void *)
void * operator new (unsigned size)
void * operator new[] (unsigned size)
void * operator new[] (unsigned size, unsigned alignment)
void * operator new (unsigned size, unsigned alignment)
void operator delete (void *ptr)
void operator delete[] (void *ptr)

Variables

void *(* memalloc )(unsigned long size, unsigned long align) = memalloc_mempool
void(* memfree )(void *ptr) = memfree_mempool

Detailed Description

Malloc implementation.

Copyright (C) 2007-2008, Bernhard Kauer bk@vm.nosp@m.mon..nosp@m.org Economic rights: Technische Universitaet Dresden (Germany)

This file is part of Vancouver.

Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Vancouver 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 version 2 for more details.

Function Documentation

void* memalloc_mempool ( unsigned long  size,
unsigned long  align 
)

Alloc memory from a mempool defined in the linker script.

void memfree_mempool ( void *  )
void operator delete ( void *  ptr)
void operator delete[] ( void *  ptr)
void* operator new ( unsigned  size)
void* operator new ( unsigned  size,
unsigned  alignment 
)
void* operator new[] ( unsigned  size)
void* operator new[] ( unsigned  size,
unsigned  alignment 
)

Variable Documentation

void*(* memalloc)(unsigned long size, unsigned long align) = memalloc_mempool
void(* memfree)(void *ptr) = memfree_mempool