<commit_before>/* $chaos: defines.h,v 1.18 2002/10/10 13:03:03 per Exp $ */
/* Author: <NAME> <<EMAIL>> 
           <NAME> <<EMAIL>> */

/* Copyright 2002 chaos development. */
/* Use freely under the terms listed in the file LICENSE. */

/** 
 * @file        ia32/defines.h
 * @brief       IA32-specific storm defines. 
 */

#ifndef __STORM_IA32_DEFINES_H__
#define __STORM_IA32_DEFINES_H__

#include <storm/defines.h>
#include <storm/types.h>

/**
 * @brief               The size of a physical page. 
 */
#define PAGE_SIZE                       0x1000

/**
 * @brief               The page number of an address, shifted 10 bits
 *                      to the left.
 */
#define PAGE_ADDRESS(x)                 ((void *) (((uint32_t) x) & 0xFFFFF000))

/**
 * @brief               Size of some regions. 
 */
#define KERNEL_STACK_SIZE               (4 * KIB)

/**
 * @brief               The kernel starts at 1 MiB. 
 */
#define KERNEL_BASE                     (1 * MIB)

/**
 * @brief               The maximum memory amount that we support. 
 */
#define MAX_MEMORY                      ((uint32_t) 2 * GIB)

#endif /* !__STORM_IA32_DEFINES_H__ */<commit_msg>New macro: PAGE_NUMBER (for getting the page number of an address).<commit_after>/* $chaos: defines.h,v 1.19 2002/10/10 21:43:25 per Exp $ */
/* Author: <NAME> <<EMAIL>> 
           <NAME> <<EMAIL>> */

/* Copyright 2002 chaos development. */
/* Use freely under the terms listed in the file LICENSE. */

/** 
 * @file                ia32/defines.h
 * @brief               IA32-specific storm defines. 
 */

#ifndef __STORM_IA32_DEFINES_H__
#define __STORM_IA32_DEFINES_H__

#include <storm/defines.h>
#include <storm/types.h>

/**
 * @brief               The size of a physical page. 
 */
#define PAGE_SIZE       0x1000

/**
 * @brief               The number of bits of a page.
 */
#define PAGE_BITS       10

/**
 * @brief               The page number of an address, shifted 10 bits
 *                      to the left.
 */
#define PAGE_ADDRESS(x) ((void *) (((uint32_t) x) & 0xFFFFF000))

/**
 * @brief               The page number of an address.
 */
#define PAGE_NUMBER(x)  (((address_t) x) >> PAGE_BITS)

/**
 * @brief               Size of some regions. 
 */
#define KERNEL_STACK_SIZE \
                        (4 * KIB)

/**
 * @brief               The kernel starts at 1 MiB. 
 */
#define KERNEL_BASE     (1 * MIB)

/**
 * @brief               The maximum memory amount that we support. 
 */
#define MAX_MEMORY      ((uint32_t) 2 * GIB)

#endif /* !__STORM_IA32_DEFINES_H__ */
{'fraction_non_alphanumeric': 0.12838633686690223, 'fraction_numerical': 0.04004711425206125, 'mean_word_length': 1.8597081930415265, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '232509', 'n_tokens_mistral': 907, 'n_tokens_neox': 811, 'n_words': 243}