Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 534 → Rev 536

/kernel/trunk/generic/src/mm/frame.c
38,6 → 38,7
#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 */
62,7 → 63,7
{
if (config.cpu_active == 1) {
zone_init();
frame_region_not_free(config.base, config.base + config.kernel_size + CONFIG_STACK_SIZE);
frame_region_not_free(config.base, config.kernel_size);
}
 
frame_arch_init();
211,7 → 212,7
ASSERT(base % FRAME_SIZE == 0);
if (size % FRAME_SIZE != 0) {
size = size + (FRAME_SIZE - size % FRAME_SIZE);
size = ALIGN(size, FRAME_SIZE);
}
ASSERT(size % FRAME_SIZE == 0);
ASSERT(zone_blacklist_count <= ZONE_BLACKLIST_SIZE);
/kernel/trunk/arch/mips32/src/mm/frame.c
36,7 → 36,5
 
void frame_arch_init(void)
{
/* 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));
zone_create_in_region(KA2PA(KERNEL_LOAD_ADDRESS), config.memory_size & ~(FRAME_SIZE-1));
}