Subversion Repositories HelenOS-historic

Rev

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

Rev 536 Rev 573
Line 31... Line 31...
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
#include <print.h>
-
 
36
#include <arch/drivers/arc.h>
36
 
37
 
-
 
38
/** Create memory zones
-
 
39
 *
-
 
40
 * If ARC is known, read information from ARC, otherwise
-
 
41
 * assume some defaults.
-
 
42
 * - blacklist first FRAME because there is an exception vector
-
 
43
 */
37
void frame_arch_init(void)
44
void frame_arch_init(void)
38
{
45
{
-
 
46
    /* Blacklist first 4KB, exception vector */
-
 
47
    frame_region_not_free(0, FRAME_SIZE);
-
 
48
 
-
 
49
    if (arc_enabled())
-
 
50
        arc_frame_init();
-
 
51
    else
39
        zone_create_in_region(KA2PA(KERNEL_LOAD_ADDRESS), config.memory_size & ~(FRAME_SIZE-1));
52
        zone_create_in_region(KA2PA(KERNEL_LOAD_ADDRESS),
-
 
53
                      config.memory_size & ~(FRAME_SIZE-1));
40
}
54
}