<commit_before>/**
 * @file
 * @brief
 *
 * @date 09.11.12
 * @author <NAME>
 */

#ifndef MEM_MMAP_NOMMU_H_
#define MEM_MMAP_NOMMU_H_

#include <stdint.h>
#include <util/dlist.h>

struct marea {
	uint32_t start, end;
	uint32_t flags;

	struct dlist_head mmap_link;
	struct dlist_head glob_link;
};

struct emmap {
	struct marea *stack_marea;
	struct marea *heap_marea;
	void *brk;

	struct dlist_head marea_list;
};

typedef uintptr_t mmu_vaddr_t;

extern void mmap_add_marea(struct emmap *mmap, struct marea *marea);
extern void mmap_del_marea(struct marea *marea);
extern struct marea *mmap_find_marea(struct emmap *mmap, mmu_vaddr_t vaddr);
extern int mmap_kernel_inited(void);
extern struct emmap *mmap_early_emmap(void);
extern int mmap_mapping(struct emmap *emmap);

#endif /* MEM_MMAP_NOMMU_H_ */<commit_msg>mmap_nommu: Add `ctx' to emmap structure<commit_after>/**
 * @file
 * @brief
 *
 * @date 09.11.12
 * @author <NAME>
 */

#ifndef MEM_MMAP_NOMMU_H_
#define MEM_MMAP_NOMMU_H_

#include <stdint.h>
#include <hal/mmu.h>
#include <util/dlist.h>

struct marea {
	uint32_t start, end;
	uint32_t flags;

	struct dlist_head mmap_link;
	struct dlist_head glob_link;
};

struct emmap {
	struct marea *stack_marea;
	struct marea *heap_marea;
	void *brk;
	mmu_ctx_t ctx;

	struct dlist_head marea_list;
};

typedef uintptr_t mmu_vaddr_t;

extern void mmap_add_marea(struct emmap *mmap, struct marea *marea);
extern void mmap_del_marea(struct marea *marea);
extern struct marea *mmap_find_marea(struct emmap *mmap, mmu_vaddr_t vaddr);
extern int mmap_kernel_inited(void);
extern struct emmap *mmap_early_emmap(void);
extern int mmap_mapping(struct emmap *emmap);

#endif /* MEM_MMAP_NOMMU_H_ */
{'fraction_non_alphanumeric': 0.10330578512396695, 'fraction_numerical': 0.011806375442739079, 'mean_word_length': 5.595330739299611, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '5970642', 'n_tokens_mistral': 747, 'n_tokens_neox': 704, 'n_words': 167}