Subversion Repositories HelenOS

Rev

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

Rev 2927 Rev 4343
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;
44
 
45
 
45
/** Creates memory zones. */
46
/** Creates memory zones. */
46
void frame_arch_init(void)
47
void frame_arch_init(void)
47
{
48
{
48
    /* all memory as one zone */
49
    /* all memory as one zone */
49
    zone_create(0, ADDR2PFN(machine_get_memory_size()),
50
    zone_create(0, ADDR2PFN(machine_get_memory_size()),
50
        BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0);
51
        BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0);
51
    last_frame = machine_get_memory_size();
52
    last_frame = machine_get_memory_size();
-
 
53
    end_frame = last_frame;
52
 
54
   
53
    /* blacklist boot page table */
55
    /* blacklist boot page table */
54
    frame_mark_unavailable(BOOT_PAGE_TABLE_START_FRAME,
56
    frame_mark_unavailable(BOOT_PAGE_TABLE_START_FRAME,
55
        BOOT_PAGE_TABLE_SIZE_IN_FRAMES);
57
        BOOT_PAGE_TABLE_SIZE_IN_FRAMES);
56
}
58
}
57
 
59