Subversion Repositories HelenOS-historic

Rev

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

Rev 813 Rev 815
Line 38... Line 38...
38
#define ROM_BASE    0xa0000
38
#define ROM_BASE    0xa0000
39
#define ROM_SIZE    (384*1024)
39
#define ROM_SIZE    (384*1024)
40
 
40
 
41
void frame_arch_init(void)
41
void frame_arch_init(void)
42
{
42
{
-
 
43
    zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0);
-
 
44
   
-
 
45
 
43
    /*
46
    /*
44
         * Workaround to prevent slab allocator from allocating frame 0.
47
         * Workaround to prevent slab allocator from allocating frame 0.
45
         * Remove the following statement when the kernel is no longer
48
         * Remove the following statement when the kernel is no longer
46
     * identity mapped.
49
     * identity mapped.
47
         */
50
         */
48
    frame_region_not_free(0, FRAME_SIZE);
51
    frame_mark_unavailable(0, 1);
49
 
52
 
50
    /*
53
    /*
51
     * Blacklist ROM regions.
54
     * Blacklist ROM regions.
52
     */
55
     */
53
    frame_region_not_free(ROM_BASE, ROM_SIZE);
56
    frame_mark_unavailable(ADDR2PFN(ROM_BASE), ROM_SIZE >> FRAME_WIDTH);
54
   
-
 
55
    zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE-1));
-
 
56
}
57
}