Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 814 → Rev 815

/kernel/trunk/genarch/src/mm/page_ht.c
30,7 → 30,7
#include <mm/page.h>
#include <arch/mm/page.h>
#include <mm/frame.h>
#include <mm/heap.h>
#include <mm/slab.h>
#include <mm/as.h>
#include <arch/mm/asid.h>
#include <arch/types.h>
/kernel/trunk/generic/src/mm/buddy.c
199,7 → 199,7
/*
* Return the other half to buddy system. Mark the first part
* full, so that it won't coalsce again.
* full, so that it won't coalesce again.
*/
b->op->mark_busy(b, res);
buddy_system_free(b, hlp);
/kernel/trunk/arch/sparc64/include/types.h
39,6 → 39,7
typedef unsigned long __u64;
 
typedef __u64 __address;
typedef __u64 pfn_t;
 
typedef __u64 ipl_t;
 
/kernel/trunk/arch/sparc64/src/mm/frame.c
32,6 → 32,8
 
void frame_arch_init(void)
{
zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0);
 
/*
* Workaround to prevent slab allocator from allocating frame 0.
* Frame 0 is
38,7 → 40,5
* a) not mapped by OFW
* b) would be confused with NULL error return code
*/
frame_region_not_free(0, FRAME_SIZE);
zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE - 1));
frame_mark_unavailable(0, 1);
}
/kernel/trunk/arch/ia64/include/types.h
42,6 → 42,7
typedef unsigned long __u64;
 
typedef __u64 __address;
typedef __u64 pfn_t;
 
typedef __u64 ipl_t;
 
/kernel/trunk/arch/ia64/src/mm/frame.c
40,17 → 40,18
 
void frame_arch_init(void)
{
zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0);
 
/*
* Workaround to prevent slab allocator from allocating frame 0.
* Remove the following statement when the kernel is no longer
* identity mapped.
*/
frame_region_not_free(0, FRAME_SIZE);
frame_mark_unavailable(0, 1);
 
/*
* Blacklist ROM regions.
*/
frame_region_not_free(ROM_BASE, ROM_SIZE);
zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE-1));
frame_mark_unavailable(ADDR2PFN(ROM_BASE), ROM_SIZE >> FRAME_WIDTH);
}
/kernel/trunk/arch/ppc32/include/types.h
39,6 → 39,7
typedef long long __u64;
 
typedef __u32 __address;
typedef __u32 pfn_t;
 
typedef __u32 ipl_t;
 
/kernel/trunk/arch/ppc32/src/mm/frame.c
33,5 → 33,5
 
void frame_arch_init(void)
{
zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE-1));
zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0);
}
/kernel/trunk/arch/mips32/src/mm/frame.c
28,11 → 28,7
 
#include <arch/mm/frame.h>
#include <mm/frame.h>
#include <arch/asm/boot.h>
#include <arch/mm/page.h>
#include <config.h>
#include <panic.h>
#include <print.h>
#include <arch/drivers/arc.h>
 
/** Create memory zones
46,6 → 42,6
if (arc_enabled())
arc_frame_init();
else {
zone_create(1, (config.memory_size >> PAGE_WIDTH)-1,1,0);
zone_create(1, (config.memory_size >> FRAME_WIDTH)-1,1,0);
}
}