Rev 724 | Rev 815 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 724 | Rev 814 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | * assume some defaults. |
41 | * assume some defaults. |
42 | * - blacklist first FRAME because there is an exception vector |
42 | * - blacklist first FRAME because there is an exception vector |
43 | */ |
43 | */ |
44 | void frame_arch_init(void) |
44 | void frame_arch_init(void) |
45 | { |
45 | { |
46 | /* Blacklist first 4KB, exception vector */ |
- | |
47 | frame_region_not_free(0, FRAME_SIZE); |
- | |
48 | - | ||
49 | if (arc_enabled()) |
46 | if (arc_enabled()) |
50 | arc_frame_init(); |
47 | arc_frame_init(); |
51 | else |
48 | else { |
52 | zone_create_in_region(KA2PA(KERNEL_LOAD_ADDRESS), |
- | |
53 | (config.memory_size & ~(FRAME_SIZE-1))); |
49 | zone_create(1, (config.memory_size >> PAGE_WIDTH)-1,1,0); |
- | 50 | } |
|
54 | } |
51 | } |