Subversion Repositories HelenOS

Rev

Rev 4343 | Rev 4346 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4343 Rev 4344
Line 39... Line 39...
39
#include <config.h>
39
#include <config.h>
40
#include <arch/debug/print.h>
40
#include <arch/debug/print.h>
41
 
41
 
42
/** Address of the last frame in the memory. */
42
/** Address of the last frame in the memory. */
43
uintptr_t last_frame = 0;
43
uintptr_t last_frame = 0;
44
uintptr_t end_frame = 0;
-
 
45
 
44
 
46
/** Creates memory zones. */
45
/** Creates memory zones. */
47
void frame_arch_init(void)
46
void frame_arch_init(void)
48
{
47
{
49
    /* all memory as one zone */
48
    /* all memory as one zone */
50
    zone_create(0, ADDR2PFN(machine_get_memory_size()),
49
    zone_create(0, ADDR2PFN(machine_get_memory_size()),
51
        BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0);
50
        BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0);
52
    last_frame = machine_get_memory_size();
51
    last_frame = machine_get_memory_size();
53
    end_frame = last_frame;
-
 
54
   
52
   
55
    /* blacklist boot page table */
53
    /* blacklist boot page table */
56
    frame_mark_unavailable(BOOT_PAGE_TABLE_START_FRAME,
54
    frame_mark_unavailable(BOOT_PAGE_TABLE_START_FRAME,
57
        BOOT_PAGE_TABLE_SIZE_IN_FRAMES);
55
        BOOT_PAGE_TABLE_SIZE_IN_FRAMES);
58
}
56
}