Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 819 → Rev 820

/kernel/trunk/generic/include/config.h
36,7 → 36,6
#define STACK_SIZE PAGE_SIZE
 
#define CONFIG_MEMORY_SIZE (8*1024*1024)
#define CONFIG_HEAP_SIZE (300*1024)
#define CONFIG_STACK_SIZE STACK_SIZE
 
struct config {
49,11 → 48,7
__address init_addr;
size_t init_size;
__address heap_addr;
size_t heap_size;
size_t heap_delta; /**< Extra space between heap and stack (enforced by alignment requirements) */
size_t kernel_size; /**< Size of memory in bytes taken by kernel, heap and stack */
size_t kernel_size; /**< Size of memory in bytes taken by kernel and stack */
};
 
extern config_t config;
/kernel/trunk/generic/include/mm/frame.h
74,11 → 74,11
return (pfn_t)(addr >> FRAME_WIDTH);
}
 
static inline pfn_t SIZE2PFN(__address size)
static inline count_t SIZE2FRAMES(size_t size)
{
if (!size)
return 0;
return (pfn_t)((size-1) >> FRAME_WIDTH)+1;
return (count_t)((size-1) >> FRAME_WIDTH)+1;
}
 
#define IS_BUDDY_ORDER_OK(index, order) ((~(((__native) -1) << (order)) & (index)) == 0)
95,12 → 95,12
__address frame_alloc_generic(__u8 order, int flags, int * status, int *pzone);
extern void frame_free(__address addr);
 
extern void zone_create(pfn_t start, pfn_t count, pfn_t confframe, int flags);
extern void zone_create(pfn_t start, count_t count, pfn_t confframe, int flags);
 
void * frame_get_parent(pfn_t frame, int hint);
void frame_set_parent(pfn_t frame, void *data, int hint);
void frame_mark_unavailable(pfn_t start, pfn_t count);
__address zone_conf_size(pfn_t start, pfn_t count);
void frame_mark_unavailable(pfn_t start, count_t count);
__address zone_conf_size(pfn_t start, count_t count);
 
/*
* Console functions
/kernel/trunk/generic/include/typedefs.h
34,9 → 34,9
 
typedef short bool;
 
typedef unsigned int size_t;
typedef unsigned int count_t;
typedef unsigned int index_t;
typedef unsigned long size_t;
typedef unsigned long count_t;
typedef unsigned long index_t;
 
typedef struct config config_t;
typedef struct cpu_info cpu_info_t;