Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 536 → Rev 534

/kernel/trunk/generic/src/mm/frame.c
38,7 → 38,6
#include <arch/asm.h>
#include <arch.h>
#include <print.h>
#include <align.h>
 
spinlock_t zone_head_lock; /**< this lock protects zone_head list */
link_t zone_head; /**< list of all zones in the system */
63,7 → 62,7
{
if (config.cpu_active == 1) {
zone_init();
frame_region_not_free(config.base, config.kernel_size);
frame_region_not_free(config.base, config.base + config.kernel_size + CONFIG_STACK_SIZE);
}
 
frame_arch_init();
212,7 → 211,7
ASSERT(base % FRAME_SIZE == 0);
if (size % FRAME_SIZE != 0) {
size = ALIGN(size, FRAME_SIZE);
size = size + (FRAME_SIZE - size % FRAME_SIZE);
}
ASSERT(size % FRAME_SIZE == 0);
ASSERT(zone_blacklist_count <= ZONE_BLACKLIST_SIZE);
/kernel/trunk/arch/mips32/src/mm/frame.c
36,5 → 36,7
 
void frame_arch_init(void)
{
zone_create_in_region(KA2PA(KERNEL_LOAD_ADDRESS), config.memory_size & ~(FRAME_SIZE-1));
/* Disable Everything until load address */
frame_region_not_free(0, KA2PA(KERNEL_LOAD_ADDRESS) + FRAME_SIZE);
zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE-1));
}