Subversion Repositories HelenOS-historic

Rev

Rev 532 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 532 Rev 533
Line 30... Line 30...
30
#include <mm/frame.h>
30
#include <mm/frame.h>
31
#include <arch/asm/boot.h>
31
#include <arch/asm/boot.h>
32
#include <arch/mm/page.h>
32
#include <arch/mm/page.h>
33
#include <config.h>
33
#include <config.h>
34
#include <panic.h>
34
#include <panic.h>
-
 
35
#include <print.h>
35
 
36
 
36
void frame_arch_init(void)
37
void frame_arch_init(void)
37
{
38
{
38
    zone_t *z;
-
 
39
   
-
 
40
    z = zone_create(0, config.memory_size, 0);
-
 
41
    if (!z) {
-
 
42
        panic("Can't allocate zone (%dB).\n", config.memory_size);
-
 
43
    }
-
 
44
    zone_attach(z);
-
 
45
 
-
 
46
    /* Disable Everything until load address */
39
    /* Disable Everything until load address */
47
    frame_region_not_free(0, KA2PA(KERNEL_LOAD_ADDRESS));
40
    frame_region_not_free(0, KA2PA(KERNEL_LOAD_ADDRESS) + FRAME_SIZE);
-
 
41
        zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE-1));
48
}
42
}