<commit_before>/*
 *
 * SOS Source Code
 * __________________
 *
 *  [2009] - [2013] <NAME>
 *  All Rights Reserved.
 */
#include "memory_manager.h"

#include "arch/tgt_types.h"
#include "kernel/console/print_out.h"
#include "kernel/kernel_assert.h"

/* #define __MEMORY_DEBUGGING 1 */

/*
 * TODO This implementation needs to take account for
 * alignment. i.e. it may be that the user wants to access
 * a 32-bit aligned memory access. should this be part of the
 * user-mode code? doubtful as it won't contain the right information.
 *
 * might have to update the memory management storage blocks to
 * be allowed to start at aligned boundaries but this could get
 * wasteful.
 */

/**
 * the primary memory pool i.e. RAM
 */
static __mem_pool_info_t *__mem_memory_pool = NULL;

__mem_pool_info_t * __mem_get_default_pool(void)
{
	return __mem_memory_pool;
}

bool_t __mem_initialise(
		const uint32_t start,
		const uint32_t end)
{
	bool_t ret =  __mem_init_memory_pool(
		start,
		end - start,
		(&__mem_memory_pool));

	return ret;
}<commit_msg>Remove TODO.<commit_after>/*
 *
 * SOS Source Code
 * __________________
 *
 *  [2009] - [2013] <NAME>
 *  All Rights Reserved.
 */
#include "memory_manager.h"

#include "arch/tgt_types.h"
#include "kernel/console/print_out.h"
#include "kernel/kernel_assert.h"

/**
 * the primary memory pool i.e. RAM
 */
static __mem_pool_info_t *__mem_memory_pool = NULL;

__mem_pool_info_t * __mem_get_default_pool(void)
{
	return __mem_memory_pool;
}

bool_t __mem_initialise(
		const uint32_t start,
		const uint32_t end)
{
	bool_t ret =  __mem_init_memory_pool(
		start,
		end - start,
		(&__mem_memory_pool));

	return ret;
}
{'fraction_non_alphanumeric': 0.10557888422315537, 'fraction_numerical': 0.016196760647870425, 'mean_word_length': 4.009009009009009, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5430980', 'n_tokens_mistral': 628, 'n_tokens_neox': 594, 'n_words': 164}